STEP 1 - CONFIGURE AUTOMATIC BACKUPS IN TASKER
- Open Tasker and tap the menu button on the top right corner
- Select Preferences
- Select the Misc tab
- Tap the selection under Local Auto-Backup Max Age and make sure that anything other than "No Auto-Backups" is selected
- Back out of the Preferences and then out of Tasker to save the settings
This step allows Tasker to create a backup file every time you back out from Tasker.
STEP 2 - AUTOWEB DROPBOX API AUTHENTICATION
- Open AutoWeb and select Browse Web Services
- Search for Dropbox and select Import API
- Wait for the toast stating Dropbox was imported and back out to the main screen
- Select Your Web Services
- Long press on Dropbox and select Edit API Config
- Make sure that Auth With Chrome Tab is checked and select OK
- Long press on Dropbox and select Re-authenticate
- Follow the instructions provided until you see a message stating Authenticated successfully and back out into the main screen
Once this is complete, you will be able to access the API endpoints within Tasker. We will now test out the Dropbox API.
STEP 3 - DROPBOX API TEST
- Select the Dropbox
- Long press Account info and Generate Output
- Select Output then Select All
- Select the check mark at the top to accept
- If done correctly, you should see the menu above and select OK
Now that the API works we can start with the Profile.
If you get a notification saying that you've made changes to the API and if you'd like to share them select DON'T SHARE.
STEP 4 - FILE MODIFIED EVENT CONTEXT
- Open Tasker and create a new profile
- Use the File Modified event condition
This will trigger the profile every time there's a change in the Auto-Backups folder, meaning every time a new auto-backup is created when you back out of Tasker.
STEP 5 - INITIAL BACKUP NOTIFICATION
- Add an AutoNotification Action
- Fill in the values as shown in the photo above
This notification is only for the user to know that the task has begun
STEP 6 - LIST AND LOCATE TASKER MADE AUTO-BACKUP
- Add a List Files action, locate the directory: Tasker/configs/auto, and use the variable %files
- Add an Array Process action for the variable %files and use type Sort Alpha, Reverse
- Add another List Files action, use the variable %files1 as the directory, and use the variable %backup
- Add a Variable Set action with %backupfile in the "Name" field and %backup1 in the "TO" field
- For testing purposes add a Flash action with the variable %backupfile
- Press the Run button to test
Tasker Auto-Backups are created as folders with a very long filename containing the date and time. These few actions will locate the latest backup folder (most recent) listed and extract the file within that folder. That file is your Auto-Backup XML file. The flash action is just for testing purposes to make sure it contains the correct information. It should be deleted for this tutorial.
STEP 7 - GET CURRENT DATE
- Add an AutoTools Time action
- Select Add Time, then Date, then check Use Now
- Back out one screen and select Output Format
- In the field, enter: yyyyMMdd and select OK
AutoTools is a separate AutoApp and the action will output the date we've formatted as a variable %atcalculateddate, which we will use shortly.
STEP 8 - UPLOAD DROPBOX API FILE ACTION
- Add an AutoWeb Action
- Select the Dropbox API and the Upload A File action
- Select Output, then Select All, and back out
- Select Overwite Existing to be true
- In the Dropbox Path type: /taskerbackup/%DEVMOD/%atcalculateddate.xml
- In the File field, select the tag icon and select %backupfile
The Dropbox API upload file action will create a folder titled "taskerbackup" in the root directory of your dropbox page, another folder with the device model i.e. "Nexus+6", (the plus sign is for the space), and finally the xml file with today's date as the filename.
STEP 9 - CONVERT FILE SIZE
- Add a Variable Convert action
- for Name, select the tag icon and choose %file_size
- Make sure Bytes to Kilobytes is selected under Function
- Leave the Store Results In field blank to keep the variable name the same
Now we will have the variable %file_size in the correct units.
STEP 10 - FINAL USER NOTIFICATION
- Add an AutoNotification Action
- Fill in the values as shown in the photo above
If performed correctly, the notification in step 11 below should appear and the backup XML file should be in your Dropbox account.
STEP 11 - BACKUP COMPLETE NOTIFICATION
The final product of the Tasker Cloud Backup will produce this notification containing the location of the file in your Dropbox account, and the file size in kB.
STEP 12 - BACKUP FILE INSIDE DROPBOX
You can now verify that the file was placed in your Dropbox account by opening the app or logging on from a browser.

Tasker Cloud Backup To Dropbox 1.0
Backup Tasker to your Dropbox account every time you save