ZIP your Save/Restore backup (homebrew) | webOS Nation
 
 

ZIP your Save/Restore backup (homebrew) 9

by Adam Marks Mon, 02 Jul 2012 2:33 pm EDT

Save Restore ZIP CreationThe WebOS Internals' homebrew app Save/Restore is great to backup your important application data in case you ever need to webOS Doctor you device, swap it out with a new device, or even transfer data between a phone and TouchPad. When Save/Restore runs, it created individual folders and files for each app it backs up and stores them in the /saverestore folder on the USB drive. However, there are two drawbacks to this type of backup. First, there is no easy way to quickly backup all those files in the cloud using a service like dropbox or box.net. And second it only saves the most recent backups so if you needed to go back more than just a day or two in backups, you can't. One way to combat this is to create a single archive of the entire /saverestore with all its subforlders. 

While you can now use an app like Archive Manager to ZIP up those files, there is also a little easter egg within Save/Restore that will allow you to do just that, which will then make it easy to upload a single file to a cloud storage service. All you need to do is copy the "ZIP creation" script to the Save/Restore script repository and then run the script whenever you want to create the backup archive. The easiest way to accomplish this is to use Internalz Pro, by Jason Robatille, which is available in both Preware or webOS Quick Install. 

  1. Open Internalz Pro
  2. Navigate to /media/cryptofs/apps/usr/palm/applications/org.webosinternals.saverestore/contrib 
  3. Tap on the "org.webosinternals.saverestore" script and select "Copy". Find "/var/svc/org.webosinternals.saverestore", highlight it and then choose "Select" to copy it.
  4. Now, you can open up the Save/Restore app, wait for the data to load and choose "Save Application Data". Scroll all the way to the bottom and you will find "ZZZ Save Restore Zip Creation". It has the "ZZZ" in the name so this will be the very last script that is run if you "save all"

Once you run that script, a file called saverestore-99999999.zip will be created in your root USB directory (/media/internal/), with the 99999999 being replaced by the current date and timestamp.  Depending on the size of your archive and what apps you have installed, this file can get rather large, so be aware of how many of these files are on our device and clean them up if you no longer need them

Unfortunately, this zip creations script will not run automatically if you have set up Save/Restore to auto-save every day. Luckily there is a work-around for this, but you will need to wait for our next Tip of the Day for those instructions

4
Your rating: None Average: 4 (1 vote)
Category:

9 Comments

Awesome app worth a donation !!! Saves my a$$ many times when I had to doctor or send my Pre- and Touchpad back to HP !!!! Thanks a lot guys :) Homebrew you make webOS what it is !!!!

Good tip. I'm going to migrate from my Veer to my Pre³; if I do this, once I've log in my HP/Palm account, will it create duplicates (contacts, notes, and other apps data)?

It shouldn't. You can refer to our backup guide here when migrating: http://www.webosnation.com/backup to help

Great! Thanks.

Correct me if I am wrong, but isn't the reason it does not archive so that it can quickly just sync what has changed? Same goes for dumping that information somewhere else. Use rsync. Moving to an archive file entirely defeats the purpose. You are dumping everything, all the time, rather than just the things that have changed.

I guess the windoze culture is just far too strong here.

I couldn't get to org.webosinternals/saverestore/contrib on my TP as it doesn't seem top seem to exist on it. Might I have my InternalzPro settings set wrong so I can't get to this file?

that was because I had a typo in there. it has been corrected to org.webosinternals.saverestore/contrib