[Tasker Tips & Tricks] CrashOverride93:
Hi again XDA members!

This time I bring you a project to make easier and a little more attractive the task of backing up all our files. All included actions of the whole project were specifically for my phone and me (personalized), but of course you can customize yours.

In short, what it does is, as far as possible, automate all backup tasks you can have to perform on your phone like: WhatsApp, Multimedia, Browser and other kind of files; also you could include not only files but apps settings, APKs... The backing up process is performed by the 'FolderSync' app (plug-in on Tasker), followed by other side plug-ins that provide some extra features.

PROFILES

(x1)

[COLOR="Blue"]Backup Date[/COLOR]
[U]Day[/U]:The 1st or 15th
[U]Time[/U]: From 00:00 To 00:15

TASKS

(x3)

[COLOR="Blue"]Device Backup[/COLOR]
[U]A1[/U]: Vibrate [ Time:1000 ]
[U]A2[/U]: Wait [ MS:250 Seconds:1 Minutes:0 Hours:0 Days:0 ]
[U]A3[/U]: Vibrate [ Time:1000 ]
[U]A4[/U]: Copy File [ From:Tasker/Files/Device Backup/TestFile.txt To:Tasker/Files/Device Backup/TestDir/TestDir Use Root : Off ]
[U]A5[/U]: Run Shell [ Command:settings put global policy_control immersive.status=* Timeout (Seconds):0 Use Root : On Store Output In: Store Errors In: Store Result In: ]
[U]A6[/U]: AutoInput Modes [ Configuration:Gestures: Enable Timeout (Seconds):0 ]
[U]A7[/U]: Show Scene [ Name:Device Backup Display As : Overlay, Blocking, Full Window Horizontal Position:100 Vertical Position:100 Animation:System Show Exit Button : Off Continue Task Immediately : On ]
[U]A8[/U]: Secure Settings [ Configuration:Screen & Keyboard Lights On 1 Second Timeout (Seconds):0 ]
[U]A9[/U]: Variable Set [ Name:%volmultimedia To:%VOLM Do Maths : Off Append : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A10[/U]: Media Volume [ Level:15 Display : Off Sound : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A11[/U]: Say [ Text:The device's backup has started. Do not touch the device until it finishes. Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus : On Network : Off Continue Task Immediately:eek:ff ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A12[/U]: Media Volume [ Level:%volmultimedia Display : Off Sound : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A13[/U]: Perform Task [ Name:Device Backup (list) Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop : Off ]
[U]A14[/U]: Test File [ Type:Size Data:Tasker/Files/Device Backup/TestDir/TestDir Store Result In:%tempresult Use Root : Off ]
[U]A15[/U]: Wait [ MS:0 Seconds:10 Minutes:0 Hours:0 Days:0 ] If [ %tempresult neq 0 ]
[U]A16[/U]: Goto [ Type:Action Number Number:14 Label: ] If [ %tempresult neq 0 ]
[U]A17[/U]: Goto [ Type:Action Number Number:18 Label: ] If [ %tempresult eq 0 ]
[U]A18[/U]: Vibrate [ Time:1000 ]
[U]A19[/U]: Wait [ MS:250 Seconds:1 Minutes:0 Hours:0 Days:0 ]
[U]A20[/U]: Vibrate [ Time:1000 ]
[U]A21[/U]: Show Scene [ Name:Device Backup 2 Display As : Overlay, Blocking, Full Window Horizontal Position:100 Vertical Position:100 Animation:System Show Exit Button : Off Continue Task Immediately : On ]
[U]A22[/U]: Destroy Scene [ Name:Device Backup ]
[U]A23[/U]: Secure Settings [ Configuration:Screen & Keyboard Lights On 1 Second Timeout (Seconds):0 ]
[U]A24[/U]: Variable Set [ Name:%volmultimedia To:%VOLM Do Maths : Off Append : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A25[/U]: Media Volume [ Level:15 Display : Off Sound : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A26[/U]: Say [ Text:Copying files has finished. Starting to compress files. Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus : On Network : Off Continue Task Immediately : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A27[/U]: Media Volume [ Level:%volmultimedia Display : Off Sound : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A28[/U]: Perform Task [ Name:Device Backup (compress) Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop : Off ]
[U]A29[/U]: Vibrate [ Time:1000 ]
[U]A30[/U]: Wait [ MS:250 Seconds:1 Minutes:0 Hours:0 Days:0 ]
[U]A31[/U]: Vibrate [ Time:1000 ]
[U]A32[/U]: Run Shell [ Command:settings put global policy_control immersive.status=null Timeout (Seconds):0 Use Root : On Store Output In: Store Errors In: Store Result In: ]
[U]A33[/U]: AutoInput Modes [ Configuration:Gestures: Disable Timeout (Seconds):0 ]
[U]A34[/U]: Destroy Scene [ Name:Device Backup 2 ]
[U]A35[/U]: Variable Set [ Name:%volmultimedia To:%VOLM Do Maths : Off Append : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A36[/U]: Media Volume [ Level:15 Display : Off Sound : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A37[/U]: Say [ Text:Backup has finished. Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus : On Network : Off Continue Task Immediately : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A38[/U]: Media Volume [ Level:%volmultimedia Display : Off Sound : Off ] If [ %SILENT !~ vibrate & %INTERRUPT !~ none/priority ]
[U]A39[/U]: Stop [ With Error : Off Task: ]

[COLOR="Blue"]Device Backup (list)[/COLOR]
[U]A1[/U]: FolderSync [ Configuration:TestBackupOnly;;;SYNC Timeout (Seconds):0 ]

[COLOR="Blue"]Device Backup (compress)[/COLOR]
[U]A1[/U]: Run Shell [ Command:cd /xxx && tar -cf xxx_%DATE.xxx "$$$" && gzip -x xxx_%DATE.xxx && cd "###" && rm -r * .* ; cd /xxx && mv -f xxx_%DATE.xxx.gz "€€€" Timeout (Seconds):0 Use Root : Off Store Output In: Store Errors In: Store Result In: Continue Task After Error : On ]

SCENES

(x2)

[B]Device Backup[/B]
-----------------------------------------------
No Actions are performed, just displayed info.

[B]Device Backup (2)[/B]
-----------------------------------------------
No Actions are performed, just displayed info.

SCREENSHOTS

DEMOSTRATION

[YOUTUBE]3MdzAM-27Yk[/YOUTUBE]

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _​

ABOUT THE PROJECT

· There are available two ways by you can import the project (profiles, tasks, scenes). One is by just importing it using the file on "projects" folder, it will import the whole project at once; the other, by importing it "part-by-part". The 'Files' folder (if included) have to be ALWAYS copied to Tasker directory.

· All scenes are adjusted to work on 1280x720 device (LG K10). You'll have to resize them to fit it on yours.

· For extra features will be necessary to install these apps/plug-ins too: AutoInput, FolderSync, Secure Settings (or try looking for shell code).

· I use this task to back up my personal info but you can decide what you want to save by your own.

· As the task has a loop process (A14-A16) to be more accurate, I set up the time to 10 seconds but you can change it by your own. (take into account that as low as the number is, the task will be more accurate but will use more CPU power and drain battery faster)

· To give you an example for the action of the task 'Device Buckup (compress)': cd /storage/external_SD/BACKUP && tar -cf CallRecorder_%DATE.rar "Call Recorder" && gzip -6 CallRecorder_%DATE.rar && cd "Call Recorder" && rm -r * .* ; cd /storage/external_SD/BACKUP && mv -f CallRecorder_%DATE.rar.gz "Call Recorder". It works on external storage (SD Card), and backs up the Call Recorder folder.

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _​

My Tasker PROJECTS & TASKS

--> [PROJECT] Android TTS Assistant (interactive & multilingual)

--> [PROJECT] Anti-Theft System

--> [PROJECT] Call Recorder

--> [PROJECT] High temperature warning device

--> [TASK] Auto-Switch Keyboard(s)

--> [TASK] Talking Clock

Tasker Chat Groups

--> Tasker on WhatsApp

--> Tasker on Telegram

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

If you liked the project. . .

. . . and you decide to invite me to a coffee, I would be very greatful to you ;P

Account

: ceedcv@outlook.com