I understand this was already solved. However, I found a stand-alone Tasker method to accomplish the same thing, so for anyone looking, try this:
I wanted a way to back up my camera pictures, contact files (lost too many contacts because of "trial" address books and of course, ALL my Tasker settings (tasks, profiles, scripts, etc). Since Foldersync doesn't always work for me, I prefer to move files around myself to my different storage areas. This allows me to do that at my convenience.
Since each is contained in it's own folder, I don't have a huge list of files that I don't know what they are / do. Don't delete the back-up folder, just move the contents inside. I found that to be a lot faster...but you can easily modify this to fit your needs.
Profile: Saturday back-up
From 00:00 - 00:02 (can be changed to fit your needs / phone speed)
+
Saturday
Task: Saturday back-up
Create directory
Dir back-up/contacts
Run Shell
Command sh /shcard/tasker/scripts/backup.sh
Copy dir
From Tasker/
To back-up/Tasker
Copy dir
From DCIM/Camera
To back-up
And the backup script
backup.sh (can be created using any text file editor
mv /sdcard/contact*.vcf /sdcard/back-up/Contacts
Automatically runs once a week. Very convenient for me without a lot of extra programs clogging up my phone and draining the battery.
hi, the fact that Tasker, an app priding itself on offering flexibility did not provide much flexibility, itself, within it's backup function is ironic. having to install yet another application (which will also need to be backed up) is ridiculous, imho. so i've been wanting an elegant solution to backing up all the wayward backward directories in internal storage to sd.
I think i like your solution, however I'm not understanding the nitty gritty tech stuff, so if u r still active on this board, I have a few questions for u if u don't mind.
before the questions, I will just say that if your stated solution requires rooting, i won't need answers since I'm not comfortable rooting.
thanks in advance!
1. >> /shcard/tasker/scripts/backups <<
is this line of code correct? did u mean to write /shcard, or did u mean /sdcard?
2. I seem to read it as the first part being the part you setup within tasker (profile/task):
>>
Profile: Saturday back-up
From 00:00 - 00:02 (can be changed to fit your needs / phone speed)
+
Saturday
Task: Saturday back-up
Create directory
Dir back-up/contacts
Run Shell
Command sh /shcard/tasker/scripts/backups <<
and the second part being the wording in the script:
>> Copy dir
From Tasker/
To back-up/Tasker
Copy dir
From DCIM/Camera
To back-up <<
I am assuming you simply left off the last part of the camera backup path (should be "To back-up/DCIM")?
but then the third part of your post is confusing me... you write:
>> And the backup script
backup.sh (can be created using any text file editor
mv /sdcard/contact*.vcf /sdcard/back-up/Contacts <<
is this the backup script, and the other part j thought was the backup script is really done from within a tasker task? or is it is a second script?
3. you reference COPYING the backup files for both Tasker and Photos, but then MOVING the contacts files (i'm assuming "mv" means MOVE). am I mistaken in my assumption or is there a specific reason for this difference?
4. the tasker part of your solution seems to call for creating directories. normally, I would expect a backup solution where I would initially create the backup directories (one for each app) myself and then the backup solution would simply automate copying the files each week to those respective directories.
why does your solution call for creation of directories each time, and what does the folder structure end up being after the solution has run like 3 weeks in a row, since it seems to call for the same directory names being created each time?
wouldn't it error-out because there is already a directory with the same name, or does it automatically create another directory of the same name, but with a "(2)" or "(3)" or "(4)" after it?
5. I assume, since this example references 3 different backups, this solution can handle even more backups at once. i.e. I can backup multiple apps by simply adding and calling extra tasks within the one tasker profile (one profile just seems waay simpler to me). am I correct in this assumption, or do u think there's a limit to how many tasks or scripts can be called from one tasker profile (practically speaking, so as to not crash the system)?