Backup your Droid :D
This is a discussion on Backup your Droid :D within the Droid Hacks forums, part of the Droid Hacking category; After seeing Mangadroid disappear from the market I decided it would be a good idea to do a complete backup. So i made a shell-script ...
-
Backup your Droid :D
After seeing Mangadroid disappear from the market I decided it would be a good idea to do a complete backup. So i made a shell-script to do it for me which backs it up to the sdcard (you need to root your phone, have the "su" command, and have busybox cp installed [see http://forum.xda-developers.com/showthread.php?t=442754 and go to "PART 2 - BUSYBOX"]. (note: If you overuse the sdcard too much it will fail eventually so back that up to your pc)
(doesn't copy ram-based directories like /dev, doesn't copy symlinks because the fat32 fs of the sdcard doesn't support it) [ if you want a FULL backup (including symbolic links although still not ram-based directories) you will need to dd the file-systems to files on the sdcard, I will post how later]
here is the script I made:
Code:
mkdir /sdcard/droid_backup
cp -R /sqlite_stmt_journals /sdcard/droid_backup
cp -R /config /sdcard/droid_backup
cp -R /cache /sdcard/droid_backup
cp -R /d /sdcard/droid_backup
cp -R /system /sdcard/droid_backup
cp -R /init.sholes.rc /sdcard/droid_backup
cp -R /init.rc /sdcard/droid_backup
cp -R /init.goldfish.rc /sdcard/droid_backup
cp -R /init /sdcard/droid_backup
cp -R /default.prop /sdcard/droid_backup
cp -R /data /sdcard/droid_backup
cp -R /root /sdcard/droid_backup
Last edited by modmadmikee; 01-17-2010 at 10:19 PM.
-
-
Oh and here is how to run it once you save it to your sdcard as droid_backup.sh:
1. Open a terminal (or use ASE>Interperters>shell).
2. Run these commands:
Code:
su
sh "/sdcard/droid_backup.sh"
-
DD backup script:
Code:
mkdir /sdcard/droid_dd_backup/
dd if=/dev/block/mtdblock4 of=/sdcard/droid_dd_backup/system.img
dd if=/dev/block/mtdblock6 of=/sdcard/droid_dd_backup/data.img
dd if=/dev/block/mtdblock5 of=/sdcard/droid_dd_backup/cache.img
dd if=/dev/block/mtdblock0 of=/sdcard/droid_dd_backup/config.img
Note: if you get an I/O error about "/dev/block/mtdblock5" then you (like me) have corrupted your /cache partition (not caused by dd but by over using your phone). To fix it turn the phone off > press and hold x > turn the phone on while still holding x > continue holding x till you get a picture with a warning sign> press volume up while pressing the camera button > a menu should appear and chose the option to clear the cache partition > chose the reboot now option.
Last edited by modmadmikee; 01-17-2010 at 11:19 PM.
-
-

Originally Posted by
Tyree2
sounds good to me
What are you, a troll? Three posts all saying the same thing.
-
any difference between doing this and using nandroid?
-
We have nandroid and the .sbf file that they use to flash the entire phones image. What do we need this for?
-
nandroid is good enough. In your script I see the reference to sholes and just thought Id point out that not everyone uses sholes. Plus if you want to make a backup of applications/data then use MyBackup Pro. I use it all the time to restore apps and data to my phone after switching roms.. Very handy.
-
sorry for the semi-hijack, but this seems like the relevant topic. does the nandroid backup capture all text messages? i recently did a nandroid backup before applying a new ROM but i have no idea how to get my data back, especially my old text messages. is this recoverable from the nandroid backup i created and if so how do i go about restoring only the messages and not the other stuff?
thanks in advance.
-
No you can't restore individual apps from nandroid. Use something like Titanium or My Backup.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By billyidle in forum Tech Issues, Bug Reports & Suggestions
Replies: 11
Last Post: 01-14-2010, 09:13 PM
-
By corey in forum Droid Applications
Replies: 7
Last Post: 01-12-2010, 08:18 AM
-
By pangler in forum Droid Accessories
Replies: 1
Last Post: 01-08-2010, 12:12 PM
-
By OpalCat in forum Droid General Discussions
Replies: 0
Last Post: 01-06-2010, 10:48 PM
-
By zapper in forum Droid Applications
Replies: 3
Last Post: 01-02-2010, 11:36 AM
Search tags for this page
android backup como usar 2 init
,
android backup dd
,
android backup with dd
,
android dd backup
,
android dd backup directory
,
android dd command
,
android dd copy
,
android full backup dd
,
backup android dd
,
backup android phone with dd
,
backup android ram-based files
,
backup android with dd
,
backup your droid
,
complete backup android using dd
,
dd android backup
,
dd android phone backup
,
dd backup android
,
dd droid
,
droid backup assistant
,
init.goldfish.rc
Click on a term to search our site for related topics.
Tags for this Thread