yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] samersh72:
i guess nandroid backup made by a tool must be restored by the same tool.

note that when backuping with cwm a md5 file is created, and when restoring, md5 of the backup must match
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Why do you want to take a backup without going into recovery if you don't mind me asking?

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
good suggestion. but i have not done it and probably will not try it considering that i should use the same tool for making and reading backups like samersh72 suggested.

i am glad i asked first before relying on something i might not have use when the need arrives. thanks for pointing that out for me.

no worries. i am glad you asked since i can be doing something i am not supposed to do (I am new to all this stuff).

the answer to your question is that i stumbled upon the possibility of doing the nandroid backups without having to go into recovery mode. plus the convenience of uploading such backups to the cloud and doing them automatically/periodically. both Online nandroid backup or obackup nandroid would help me with those features but then i thought "what if the clockwork mod recovery does not read those files?" that is why i made this topic.

is making an online nandroid backup bad? if it is better to make it inside the recovery fine by me. it does not take that much time either. i guess i just have to get used to make them and not forget.

anyway, looks that those online backups are not usable when in clockwork mod so i will not use those apps.

in the mean time, i have been looking in the rom manager premium app. it is made by clockworkmod.. can that application be used for online nandroid backups? maybe these are the same as those made inside the recovery? if so, i could use this application for the nandroid backups.

regards and happy new year!
[Nexus 5 Q&A, Help & Troubleshooting] andrey.mironov:
You can try to make backups both ways and then ţry to restore the 3 rd party backup with CWM. If failed, you will have the proper CWM backup to restore as well. By the way, original backups are accessible to your device as files and you can simply sync that folder to the prefered cloud service - dropbox, box, drive, etc.

Sony Xperia SP aka C5303
[Nexus 5 Q&A, Help & Troubleshooting] PhilipTD:
That's what I do; every night, automatic backups are made by Rom Toolbox and automatically uploaded to Dropbox by Foldersync.
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
Have you been able to restore a nandroid with to toolbox?
[Nexus 5 Q&A, Help & Troubleshooting] PhilipTD:
Haven't had to. Why? Is there a problem?

Sent from my Nexus 5
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
The reason I asked was I use tasker with recovery to automatically take a nandroid every Saturday when im asleep then upload it to my NAS using foldersync.

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
Don't know, I've never tried it. I just make one in my recovery. Never had any problems with that
[Nexus 5 Q&A, Help & Troubleshooting] PhilipTD:
Well, I have been using RT for years, and have restored plenty of nandroids in the past on other phones/ROMS with it. It always worked great.

Sent from my Nexus 7
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
Do you mind explaining how you do it? I already have Tasker and also have Rom Manager Premium. Need to get Foldersync
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
The method I use will only work with a CWM based recovery. I find Philz best. This is because I am using extended commands, which are proprietary to CWM.

I wont go into detail on the foldersync part. All I will say is you set up a folder pair between your sdcard/clockworkmod/backup folder and your backup location, which could be a NAS, Computer thats always on or a Cloud location. I set mine to delete the backup from local storage before it takes a new backup and also afterwards. I also set within foldersync that they only run on wifi.

I have the 3 following profiles:

1.Nandroid Copy Pre

2.Nandroid Backup

3.Nandroid Copy Post

Pre and Post are identical in that they run the foldersync task. The only difference is the time they run.

I run the 3 profiles at these times on a Saturday:

1. 02:00 - 04:00

2. 04:00

3: 05:00 - 06:00

So basically, that is foldersync to NAS (deleting backup), taking backup, foldersync to NAS (deleting backup). I do this as I am tight on space. On my S3, I used to keep 2 backups locally, deleting the oldest before taking the next one.

So you're probably wondering what happens in the task for profile 2. Both actions are created using the Script > Run shell

1. sh /mnt/sdcard/clockworkmod/nandroid.sh
2. reboot recovery

1. calls a script called nandroid.sh as you can see. The contents are below:

# Set date and time
now=$(date +"%d_%m_%y-%H%M")

# Writes command for cwm based recovery to read
echo 'backup_rom("/data/media/0/clockworkmod/backup/'$now'");' > /cache/recovery/extendedcommand

That's it in a nutshell.

If you wanted to, you could run the task 1 before which does a delete of the backup and the sync after (its 2 for redundancy) to just sync without delete, always keeping 1 backup on your device.
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
following this reply, i have been searching more on how to do this on my nexus 5. found some older topics on it, even found some where you also posted.

it will not be easy on my side to do this. at all.
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Where's the problem? Perhaps I can help. Its really easy

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
easy? we surely have different levels of knowledge for sure. but i gladly take your help if you are willing to use the time for it.

lets see if i can sum my difficulties first.

- in your post you mention Philz recovery. so i googled it. i am not sure but is this the "upgrade" for rom manager premium where you can use touch? if so, i do not mind buying that upgrade (because i do not have the touch upgrade, only bought the premium rom manager app).

- i still do not have foldersync but that is probably very easy to configure so only thing left for me is to buy the app. no problems here.

- tasker profiles. never used tasker but already bought it because of its functionality. i tried to make a custom profile on my own and it did not work. been reading help so i can figure out the app and how to program it. it might take a while though

i believe thats it. like you see, i still have a long road ahead of me. if you have patience and want to provide help i will surely be thankful. besides, i am sure a lot of other people out there will find this topic helpful so you will not only be helping me :D

regards
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Its not as long as you think ;)

Philz touch is a cwm based recovery. Its like cwm but much more. Its free and can be found in our nexus 5 "android development" forum here. Should be easy to spot. Thread is posted by me ;) It will still work with rom manager although i prefer to not have rom manager.

Foldersync has a free version too by the way ;)

But let's break it into byte size chunks. Firstly decide if you're willing to flash philz recovery via fastboot or not. You don't have to. Cwm is fine for now.

Next step will be to create profile 2 and task. Let me know when you're ready for that. I can't promise you quick responses but i'll walk you through it.

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
Hello. I have subscribed your thread about philz recovery. I am thinking of installing the zip file from clockwork mod recovery. Do you think it will be OK doing that way?

Why do you think it is better to not have rom manager?

Do not worry about "quick answers" , that way you give me time to read and learn. Going to read your thread on recovery, might learn something there :D

Regards.
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Yep, that way is fine to flash

Personally I feel that apps and tool kits that do things like flashing are detrimental to the user experience. Doing things manually is the best way to learn, ergo the best bet in case you ever need to get yourself out of trouble. The manual steps are good to know so it's always best to be familiar with adb, fastboot and recovery yourself, instead of having apps and kits that manage these crucial steps for you.
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
i understand and agree with you. there is no substitute for knowing how to use those commands (although i only used them once or twice). in case of emergency it is already halfway to the solution.

anyway, i already have philz custom recovery installed.. read the whole topic in the development forum so i already know about the qualcomm date/time bug. no problem for me.

i have installed foldersync free but by reading the description, it seems i will need the paid version so it could be used with tasker.. i am stating this because a few posts back you said there is a free version but since my main goal is to backup my nandroid to dropbox....

paid version for me right?

EDIT: nevermind the philz bug i see there is a time offset in the options :)
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
I am ready. When you can just give me another boost. Cheers
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Task 2 (this is the one backup at a time option).

Create an empty text file and paste the below into it.

# Set date and time
now=$(date +"%d_%m_%y-%H%M")

# Writes command for cwm based recovery to read
echo 'backup_rom("/data/media/0/clockworkmod/backup/'$now'");' > /cache/recovery/extendedcommand

Then save this file as /sdcard/clockworkmod/nandroid.sh

Open Tasker

In profiles tab, lets say you want it to run every saturday at 04:00....

New profile > name it "nandroid backup"

Select first context as Day > Weekday > saturday (press the top left corner "<" icon to "apply"

Select "New task" and name it "backup" or whatever you like

At the task edit screen.... click the + to add then Script > Run shell

In the command box, type:

sh /mnt/sdcard/clockworkmod/nandroid.sh

Then tick the "use root" tick box.

At the task edit screen.... click the + to add then Script > Run shell

In the command box, type:

reboot recovery

Then tick the "use root" tick box.

Press the "<" to apply.

At the main profiles screen, expand your new profile and long press the "saturday" context. Then choose "Add". This will allow you to add a time context too...

That should be it for this profile. see how you get on.
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
Sorry for the late reply since you took your time to let me know this. I have been in a worry these days so I still have not tried it. Will do it this week and will let you know about my progress.

Best regards
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
i have done this. can you gide me through the next step?

regards

SIDENOTE: i am thinking on doing a slight modification on this task but i am not sure how to do it. i want certain conditions to be met before doing the backup. for example, i want to do the automatic nandroid backup only the first saturday of each month and only if battery is over a certain percentage. i also want the tasker to turn wi-fi automatically when the sync to dropbox takes place. is this easy to achieve?
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Yes that's all easy enough I suppose.

Well the first step is to run the task via tasker and see if it takes a backup.

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
when i press play it does not give any errors but it also does not do anything..

do not know why. any suggestions?
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Please give me a screenshot of the task (showing each step) and also give me a screscreenshot from inside each step
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
here you go:

edit: can you see them?
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
You can only hotlink if they're in your public folder in dropbox. I can get to them another way though, so I can see them.

Screenshot 1. "nandroid.sh.txt" whats that? ;) "nandroid.sh"
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
well, maybe I have not understood what I needed to do in the first place.

I copied the code you gave me to my notepad and named it nandroid.sh

That is why it is named .txt

So, what should I do then?
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
rename it to remove the .txt off the end
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
Sure, I did it and it restarted the phone.

but it only took a few seconds on the recovery. it did something so fast i do not know what it was. but from the free storage I still have it did not made the backup.
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Ok so next step is to remove reboot recovery (can just disable it)....

Then run the task. See if /cache/recovery/extendedcommand exists and the contents of it...

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
removed the reboot recovery from tasker. after running the task (no errors but apparently, it did not do anything), there are some files in that folder. do you want to see them? mainly logs and one extendedcommand
[Nexus 5 Q&A, Help & Troubleshooting] rotaryheadrx7:
Just wanted to chime in that I have used both tools and both work. Although I won't recommend obackup since the developer went missing and the app needs some updating and has issues with SuperUser. I have restored through CWM and TWRP using nandroids from online nandroid without any issues at all.
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Yes please.

Which recovery version do you have please?

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
philz_touch_6.07.9_hammerhead custom recovery.

there!

hello, thanks for the clarification. I am now trying to get this to work with automatic backups though (with the help of rootSU). regards
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Sorry, I need the actual files please...

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
I'm sorry [MENTION=5594315]cesar.maranhao[/MENTION] I see what's wrong in the extendedcommand and its a typo I made earlier on in this thread. Please remove the second part of the nandroid.sh as there is a typo. It should be the below instead:

# writes a command for cwm based recovery to read (creates index2 backup)

echo 'backup_rom("/data/media/0/clockworkmod/backup/'$now'");' > /cache/recovery/extendedcommand

Sorry

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
no worries! at all! you are giving me a big help.

i corrected the typo and added the tasker reboot recovery command line I had erased earlier.

tried to run the task but it did not do anything. where should I look?
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
If it did literally nothing (I.e no boot into recovery) then you just need to exit tasker and save.

If it rebooted into recovery but then did nothing, i'd need extendedcommand and lastlog

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] Anderson2:
Could you share the tasker script to do that? I've been wanting to do that but am not yet proficient in using tasker.

I'm rooted, use twrp and have purchased tasker but not really used it for anything.

Thanks.
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
I did.

Won't work with twrp though. You need philz

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
i restarted tasker, even restarted the phone but it does not do anything. when I press play, it says tasker has been grantes admin privileges or something like that but nothing happens.

are you regretting offering your help to this newbie? lol
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Nope. I need to know where its failing though...

What if you set "continue task after errors"?

Also "store errors in"...

Does extended command get created at all?

Please delete everything in cache/recovery and set options above.

Run task then upload text files:

/cache/recovery/extendedcommand & lastlog

The file you set to "store errors"

The nandroid.sh

The tasker task (export it)

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
how do you do to set a file to store errors? do i have to create a file manually?is it a renamed txt like the .sh? i googled it but could not find how to do it after trying some different ways and tasker giving me error.

anyway, i was able to make the phone to reboot with tasker into philz recovery but it stayed there without doing anything.

here are the files you asked for (with the exception of the stored errors as i do not know how to do that step).

https://www.dropbox.com/sh/hqie9vxou57lvm6/_51UPocxy_
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
I dont need the errors as it happens. I can see the issue in your extended command. You have a space after the date

backup_rom("/data/media/0/clockworkmod/backup/22_01_14-2229

");

But I can't see where that's coming from in the nandroid.sh as its the same as mine. Ill need to review on computer.

For future reference, here's how you record errors

Edit > I don't get it. Your script is IDENTICAL to mine. No spaces or anything! ...YET, your extendedcommand is clearly representing a space after the date

backup_rom("/data/media/0/clockworkmod/backup/22_01_14-2229<THIS IS A SPACE>");

All I can think of is somehow, the editor editor used to create the script is somehow interoperating it wrong. Other than that, it's beyond me.

Please try using the uploaded (attached) nandroid.sh in place of the one you are using.

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
it worked now! when i set the tasker profile to run it rebooted the phone, it made the backup and restarted by itself (stopped at the sim pin code insertion menu obviously).

i think the problem was with the creation of the .sh file. when i placed yours next to mine, mine showed it as .txt (despite me changing it to .sh) and yours showed as .sh

how did you created your .sh file? i used windows notepad. if it was my error i am deeply sorry for making you go through all the trouble of these last days.

having that said, what is our next step?

EDIT: thanks for the tip on storing errors! already configured it! at least there were no errors!
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Cool. Yes windows notepad can be like that sometimes. On windows I usually use notepad++ however my home computer runs Ubuntu so my main editor is Gedit. I also write scripts on my phone directly....

So now you have the main task. Did you link it to a profile yet? This task needs to be linked to a profile with a day / time context.

Once you've done that, you need 2 other profiles with day / time contexts, both to handle the foldersync aspect. One to just ensure last weeks backup has definitely been sync'd (and deleted) before you take your nandroid and one after your nandroid to sync again. Its your choice if you want it on your phone for a week or delete it after the sync

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
Well. I have it on a profile to run at Saturdays but I have been thinking and doing a backup every week might be too much. I thought of maybe doing one nandroid backup for example the first Saturday of each month.

That would probably be enough and by doing them on Saturdays would be the best day for me. But how to setup tasker to do that?

Can you help me with that task?

As for the sync, I would like tasker to export the backup to a Dropbox folder of my choice. Maybe delete from phone after upload complete is the best to save some space as well.
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Precisely what do you need assistance with on the profile? The context?

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
I have no idea where to start. I described what I want it to do as it is very clear for me what the goal is. However I do not have the knowledge to do it.
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
I just don't understand what you're asking me. If you're asking me how to have a Tasker profile be triggered the first Saturday of every month, I can't tell you. It's easy to have it run on a set date of each month (eg 3rd) but a Specific Day, dunno.
[Nexus 5 Q&A, Help & Troubleshooting] PhilipTD:
I've never tried it, but could the OP perhaps create a Tasker profile based on a repeating calendar event?
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
I don't know? Maybe. With no offence intended to the OP, it's not really something I want to spend time looking into. I don't get much time to myself since I moved home recently (much further from Work).

As long as the OP has profiles that can sync an existing Nandroid backup and then Take a Nandroid backup, I'm happy.
[Nexus 5 Q&A, Help & Troubleshooting] PhilipTD:
Me too.
[Nexus 5 Q&A, Help & Troubleshooting] cesar.maranhao:
I woud be happy with that as well. I asked that because I never thought it would be thatmuch trouble. having that said, lets move on to the profile you have. making it backup at the first saturday of each month is something i can look into later (repeating the calendar event might be a good place to start). for now, lets just finish this one:

- make the backup at a specific day

- export it to dropbox

- erase from phone after the sync is done.

regards and sorry for keeping this topic alive for more than it should probably have been.
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
So you want me to teach you foldersync too?

Set up a folderpair between dropbox and your nandroid folder. Set the "delete source files after sync". Set "sync on wifi only" if you like.

Easy. Done

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
Lmao, easy done my ass