help with nandroid backup via tasker


  1. silentwitness

    silentwitness Well-Known Member

    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.

    Attached Files:


    Advertisement
  2. SUroot

    SUroot Well-Known Member Developer

    Have you pressed the play button in the task to see where it errors?
  3. silentwitness

    silentwitness Well-Known Member

    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.
  4. SUroot

    SUroot Well-Known Member Developer

    I get an error at the first part
  5. silentwitness

    silentwitness Well-Known Member

    ok i honestly dont understand what the profile is trying to do(coding wise), so i assume its busted and wont work?
  6. SUroot

    SUroot Well-Known Member Developer

    Can't say I know enough about cwm to comment. I have a 16GB s3 so it's not safe to use cwm anyway
  7. silentwitness

    silentwitness Well-Known Member

    why do u say its not safe to use CWM? I also have a 16gb s3.
  8. SUroot

    SUroot Well-Known Member Developer

    silentwitness likes this.
  9. silentwitness

    silentwitness Well-Known Member

    yup i have heard about it(had read ure unfortunate article also). Its scared the crap out of me. So CWM causes it?
  10. SUroot

    SUroot Well-Known Member Developer

    Added link above
  11. silentwitness

    silentwitness Well-Known Member

    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?
  12. SUroot

    SUroot Well-Known Member Developer

  13. SUroot

    SUroot Well-Known Member Developer

    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
    silentwitness likes this.
  14. SUroot

    SUroot Well-Known Member Developer

    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/

    EDIT> Doesnt need Secure settings pro any more :(

    http://androidforums.com/tasker/678204-profile-root-auto-nandroid-backup.html
    silentwitness likes this.
  15. silentwitness

    silentwitness Well-Known Member

    thank you very much so the xml file would go in tasker and the sh file would go into clockworkmod folder right?
  16. SUroot

    SUroot Well-Known Member Developer

    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
    silentwitness likes this.
  17. silentwitness

    silentwitness Well-Known Member

    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?
  18. SUroot

    SUroot Well-Known Member Developer

    Hiya, So long as you have Philz recovery, it has the fixes released by Samsung in it. The profile works with Philz fine. I use it now too.

    Not developed for the S3. No point. I developed for the HTC Desire.
  19. SUroot

    SUroot Well-Known Member Developer

    Gah. I just realised that you can reboot recovery from terminal commands :(

    Im sorry if you bought Secure settings Pro :(
  20. silentwitness

    silentwitness Well-Known Member

    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
  21. silentwitness

    silentwitness Well-Known Member

    also i dunno wtf tasker is doing it's going crazy and restarting my phone to recovery every two mins on it's own
  22. SUroot

    SUroot Well-Known Member Developer

    Is it 4am there by any chance?

    Edit Bah...its because the profile says "from" 4am....

    You have to get into tasker really quick and change it to with a "to" time too.

Share This Page