Go Back   Android Forums > Android Discussion > Android Applications > Tasker

test: Reply
 
LinkBack Thread Tools
Old January 17th, 2013, 05:33 AM   #1 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default help with nandroid backup via tasker

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
File Type: zip Nandroid_Daily_Backup_V4.zip (1.8 KB, 22 views)

Advertisements
__________________
Running NeatRom 2.2 for G900F
If i helped you please click the thanks button
silentwitness is offline  
Reply With Quote
sponsored links
Old January 17th, 2013, 11:40 AM   #2 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default Re: help with nandroid backup via tasker

Have you pressed the play button in the task to see where it errors?
SUroot is offline  
Reply With Quote
Old January 17th, 2013, 11:58 AM   #3 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default

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.
silentwitness is offline  
Reply With Quote
Old January 17th, 2013, 12:10 PM   #4 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default Re: help with nandroid backup via tasker

I get an error at the first part
SUroot is offline  
Reply With Quote
Old January 17th, 2013, 12:12 PM   #5 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default

ok i honestly dont understand what the profile is trying to do(coding wise), so i assume its busted and wont work?
silentwitness is offline  
Reply With Quote
Old January 17th, 2013, 12:45 PM   #6 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default Re: help with nandroid backup via tasker

Can't say I know enough about cwm to comment. I have a 16GB s3 so it's not safe to use cwm anyway
SUroot is offline  
Reply With Quote
Old January 17th, 2013, 12:50 PM   #7 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default

why do u say its not safe to use CWM? I also have a 16gb s3.
silentwitness is offline  
Reply With Quote
Old January 17th, 2013, 01:01 PM   #8 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default Re: help with nandroid backup via tasker

Have you not heard of the sudden death issue? Where dodgy firmware on the EMMC for some 16GB versions causes them to completely die?


http://forum.xda-developers.com/showthread.php?t=2091045

[Important] Sudden Death Fix - Are you covered?
SUroot is offline  
Last edited by SUroot; January 17th, 2013 at 01:04 PM.
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
silentwitness (January 17th, 2013)
Old January 17th, 2013, 01:04 PM   #9 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default

yup i have heard about it(had read ure unfortunate article also). Its scared the crap out of me. So CWM causes it?
silentwitness is offline  
Reply With Quote
Old January 17th, 2013, 01:05 PM   #10 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default Re: help with nandroid backup via tasker

Added link above
SUroot is offline  
Reply With Quote
sponsored links
Old January 17th, 2013, 01:20 PM   #11 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default

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?
silentwitness is offline  
Reply With Quote
Old January 17th, 2013, 02:16 PM   #12 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

yup.
SUroot is offline  
Reply With Quote
Old January 17th, 2013, 03:29 PM   #13 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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
SUroot is offline  
Last edited by SUroot; January 17th, 2013 at 04:14 PM.
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
silentwitness (January 18th, 2013)
Old January 17th, 2013, 06:25 PM   #14 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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
SUroot is offline  
Last edited by SUroot; January 18th, 2013 at 05:43 PM.
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
silentwitness (January 18th, 2013)
Old January 18th, 2013, 02:11 AM   #15 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default

thank you very much so the xml file would go in tasker and the sh file would go into clockworkmod folder right?
silentwitness is offline  
Reply With Quote
Old January 18th, 2013, 03:39 AM   #16 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
silentwitness (January 18th, 2013)
Old January 18th, 2013, 05:13 AM   #17 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default

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?
silentwitness is offline  
Reply With Quote
Old January 18th, 2013, 05:37 AM   #18 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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.
SUroot is offline  
Reply With Quote
Old January 18th, 2013, 04:32 PM   #19 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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

Im sorry if you bought Secure settings Pro
SUroot is offline  
Reply With Quote
Old January 18th, 2013, 04:52 PM   #20 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default

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
silentwitness is offline  
Reply With Quote
sponsored links
Old January 18th, 2013, 05:17 PM   #21 (permalink)
Senior Member
Thread Author (OP)
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 1,004
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 261 Times in 221 Posts
Default

also i dunno wtf tasker is doing it's going crazy and restarting my phone to recovery every two mins on it's own
silentwitness is offline  
Reply With Quote
Old January 18th, 2013, 05:24 PM   #22 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default

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.
SUroot is offline  
Last edited by SUroot; January 18th, 2013 at 05:38 PM.
Reply With Quote
Reply


Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:07 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.