View Single Post
Old January 25th, 2009, 05:07 PM   #1 (permalink)
devolio
Member
 
devolio's Avatar
 
Join Date: Oct 2008
Location: Michigan
Posts: 339
 
Device(s):
Thanks: 0
Thanked 33 Times in 11 Posts
Send a message via AIM to devolio
Default Back up and Restore applications (nearly automatic)

Disclaimer: As usual, I am not responsible for any damage done to you or your device by these scripts. They're simply what I use to do my own stuff.

What it does

Copies the application installers to the SD card into a folder, and makes a list of installed applications that can be used to generate an auto-installer for them.


Prerequisites

A rooted phone with Busybox (any JesusFreke modified update) and the Android SDK Tools (specifically adb).


Installation
Copy the included file onto the SD card.

Download it here


Usage
Make sure you're unmounted and unplugged so that you can access the SD card.

Open up the Terminal emulator

cd /sdcard

Get root
su


Backing up Applications

sh backupapps.sh

Once you've run the script, you'll have two things on your SD card: the applications folder (/sdcard/app-apks) and the application list (/sdcard/applist.txt)


To generate a restore script

(Windows batch or Linux shell script) go here.

As long as adb is running and connects fine with your phone (check with adb devices), you can give that page your SDK folder location and where you stored your application backup (on your computer) and it will generate an auto-installer for your applications. Save it, run it, and it will reinstall all your applications.

Easy. I'll make a new restore script generator a little later, I just whipped this up to have it done.


Caveats
If you're going to back up your applications more than once, make sure you move the first backup off of the phone first, otherwise it nests the folders. I don't want to delete a directory off the phone if it's used already.
__________________
Guides
FAQ | Rooting | Installing SDK/Eclipse

My Stuff
Twitter | Apper | Yz | Yz Donation
devolio is offline  
Last edited by devolio; January 25th, 2009 at 05:12 PM.
Reply With Quote