hey i found an article with steps on how to create a nandroid backup automatically via tasker i downloaded the files and imported them into tasker but they dont seem to work. The profiles have a red exclamation mark next to them. Has anyone created a profile to do this? I have attached the profile that i had imported.
__________________
Running NeatRom with siyah kernel.
thats just it i press the play button it does nothing(at least i dont see anything happening) on the phone. So i dunno if the task works or there is some other issue.
thanks in the custom rom's mentioned neither of the roms im using are mentioned(Omega/NeatRom) i am running XXELLC(NeatRom or Omega rom) and siyah kernel 1.8.7(omega) 1.8.8(Neat Rom) and philz touch recovery. So i should be safe right?
OK Think I have a profile I created to do this for you. Just one drawback, you need SecureSettings and the pro version of it, which in the UK is 95 pence. This is needed to reboot into recovery itself.
Let me just finalise testing.
Edit > OK so this zip contains a folder called clockworkmod. This must replace your existing clockworkmod on your (INTERNAL) sdcard (when unzipped)
Within there you have /backup/auto_backup where your nandroid goes, and 1x archive location currently also set to /backup/auto_archive
What happens is the profile triggers at 4am saturday (when you're asleep). It runs a bash script I wrote.
The script, deletes whatever is in auto_archive and puts auto_backup in archive (this way when you fill up auto_backup in a minute, you always have 1 new and 1 old backup)
Then, the script puts a file that tells recovery what to do. It copies a file to /cache/recovery/extendedcommand which tells recovery what to do when it boots up.
Then heres the slightly annoying bit. The profile then tells securesettings (pro - which you have to pay for) to reboot into recovery.
Recovery reads extended command and does backup, completes and boots back into android.
OK so I didnt figure out how to get the extendedcommand to tell recovery to backup to extSdCard so it backs up to internal.
You CAN change the location of auto_archive from within the nandroid.sh file in the backups folder if you wish. However, the problem here is currently, moving from backup to archive on the internal sd is instant. Changing to external would take a while to move the 3GB or whatever your backup is.
Of course then you have that backup twice too.
Sionvce I bought secure settings pro just to do this, I will probably keep this task too. However, since I have foldersync app syncing my sd card to my NAS anyway, I probably dont need the autobackup.
Anyway zip attached. Enjoy
Last edited by SUroot; January 17th, 2013 at 04:14 PM.
The Following User Says Thank You to SUroot For This Useful Post:
OK I got carried away there and thought of a better way.
If you have folders within clockworkmod/backup, then its not easy to restore them if you need them. You have to move them back into backup first which is a pain.
So I managed to get the foles datestamped whilst still only keeping 2 backups. I feel quite impressed with myself here. Its a little more complicated.
Theres a zip with a bash script and the profile in it. The script MUST go in /sdcard/clockworkmod/
Yep, unzip the zip so you have /sdcard/clockworkmod/nandroid.sh
If you extract the .prf there too. When you open the prf in a file manager, it should ask to open with tasker. Open with tasker and it will say something like "Profile can now be added by the UI".
Then open Tasker, long press the Profile Tab > import and it should be listed to be imported.
One thing though,
If you decide to test it today, be aware your nandroid backups will have the same name. Not sure what this will mean, so if you test the task, do it once, then change the date of the folder to yesterday instead of today and change the file (index1 or 2) contents to match
The Following User Says Thank You to SUroot For This Useful Post:
ok cool so i will require secure settings pro for this to work. But all in all do u think its safe for me to use this profile now or is there a risk of mobo dying?
edit:-
off topic but next to ure nickname it says rom developer, have you made a rom for the s3?
lol i already bought it cost me 82 rupees. The setup does not work anyhow it reboots into recovery but does nothing at all once it gets to the recovery i dont see it making any backup