Backup+ Lets You Backup Your App Data on Android Lollipop

Even though Android 5.0 Lollipop hasn’t yet seen its official release, quite … more

TechTalk Compiles All the Android News You Need in One App

If you’re as obsessed with mobile devices as the vast majority of our forum … more

Android App Review: Google Inbox to Improve Your Life – XDA TV

Recently, Google+ exploded with the announcement of Google Inbox, as … more

Damp the LG G3 Thermal Throttling

As our mobile devices grow thinner and more powerfulwith each passing generation, it’s inevitable … more
Post Reply

[UTIL] SkitzBackup

OP bcmobile

24th May 2011, 12:04 PM   |  #1  
bcmobile's Avatar
OP Senior Member
Flag Sydney
Thanks Meter: 93
 
357 posts
Join Date:Joined: Jan 2009
Donate to Me
More
The attached ZIP includes scripts for Windows and Linux to backup your Galaxy Tab.

Linux users will need to install 7zip
Code:
sudo apt-get install p7zip
May also work on OSX but you're on your own with 7zip

You will need adb access to your tab whichever platform you use.

All you need to do to run it is extract the attached archive and run

Windows
Code:
skitzbackup.cmd
Linux / OSX
Code:
chmod a+x <folder where you extracted it>/skitzbackup/skitzbackup.sh
cd <folder where you extracted it>/skitzbackup
./skitzbackup.sh
The script will pull the following partitions and pack them in a 7zip archive for safe keeping:
  • efs
  • recovery
  • boot
  • system
  • radio
  • cache
  • misc

Before you ask, I have no idea what the 'misc' partition is. Haven't had time to explore that yet

I have NOT tested flashing these back as yet, except for boot and recovery so you use this entirely at your own risk.

DOWNLOAD HERE
skitzbackup.zip


Enjoy!
Last edited by bcmobile; 24th May 2011 at 12:09 PM.
The Following 3 Users Say Thank You to bcmobile For This Useful Post: [ View ]
24th May 2011, 12:05 PM   |  #2  
bcmobile's Avatar
OP Senior Member
Flag Sydney
Thanks Meter: 93
 
357 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Code:
alias del=rm

mkdir skitzbackup
cd skitzbackup

adb shell  su -c "dd if=/dev/block/mmcblk0p1 of=/sdcard/efs.img bs=4096"
adb shell  su -c "dd if=/dev/block/mmcblk0p2 of=/sdcard/recovery.img bs=4096"
adb shell  su -c "dd if=/dev/block/mmcblk0p3 of=/sdcard/boot.img bs=4096"
adb shell  su -c "dd if=/dev/block/mmcblk0p4 of=/sdcard/system.img bs=4096"
adb shell  su -c "dd if=/dev/block/mmcblk0p5 of=/sdcard/cache.img bs=4096"
adb shell  su -c "dd if=/dev/block/mmcblk0p6 of=/sdcard/misc.img bs=4096"
adb shell  su -c "dd if=/dev/block/mmcblk0p7 of=/sdcard/radio.img bs=4096"

adb pull /sdcard/efs.img
adb pull /sdcard/recovery.img
adb pull /sdcard/boot.img
adb pull /sdcard/system.img
adb pull /sdcard/cache.img
adb pull /sdcard/misc.img
adb pull /sdcard/radio.img

adb shell rm /sdcard/efs.img
adb shell rm /sdcard/recovery.img
adb shell rm /sdcard/boot.img
adb shell rm /sdcard/system.img
adb shell rm /sdcard/cache.img
adb shell rm /sdcard/misc.img
adb shell rm /sdcard/radio.img

7z a skitzbackup.7z *.img
del *.img
Last edited by bcmobile; 24th May 2011 at 12:07 PM.
24th May 2011, 01:40 PM   |  #3  
Senior Member
Thanks Meter: 1
 
203 posts
Join Date:Joined: Jun 2009
Could this be used to backup apps and app data before unlocking bootloader? I can't see a /data partition
24th May 2011, 05:51 PM   |  #4  
rs125's Avatar
Senior Member
Flag Curinga, Calabria
Thanks Meter: 297
 
1,166 posts
Join Date:Joined: Oct 2007
Donate to Me
More
working perfectly!You're great
25th May 2011, 12:08 AM   |  #5  
bcmobile's Avatar
OP Senior Member
Flag Sydney
Thanks Meter: 93
 
357 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by djmasque

Could this be used to backup apps and app data before unlocking bootloader? I can't see a /data partition

No. Unfortunately, using this method to backup needs to write to the 'sdcard' which is what you want to back up.

Writing a script to back up data is a bit tricky since you can't reference it as a drive in windows and you can't know, for sure what the mount point will be in linux.

My main aim with the first version was to write a script which would work on either Windows or Linux, which it does. I might do seperate scripts to do a data backup.
25th May 2011, 12:58 AM   |  #6  
Senior Member
Thanks Meter: 1
 
203 posts
Join Date:Joined: Jun 2009
Quote:
Originally Posted by bcmobile

No. Unfortunately, using this method to backup needs to write to the 'sdcard' which is what you want to back up.

Writing a script to back up data is a bit tricky since you can't reference it as a drive in windows and you can't know, for sure what the mount point will be in linux.

My main aim with the first version was to write a script which would work on either Windows or Linux, which it does. I might do seperate scripts to do a data backup.

Okay, good work nonetheless
26th May 2011, 01:11 AM   |  #7  
Chainfire's Avatar
Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter: 51,706
 
9,243 posts
Join Date:Joined: Oct 2007
Donate to Me
More
Looks a lot like rotobackup, hehe.
26th May 2011, 10:22 AM   |  #8  
bcmobile's Avatar
OP Senior Member
Flag Sydney
Thanks Meter: 93
 
357 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by Chainfire

Looks a lot like rotobackup, hehe.

Yes, it is based on rotobackup method, but compresses and cleans up too :)

Sent from my GT-P7100 using XDA Premium App
26th May 2011, 10:26 AM   |  #9  
seraphimserapis's Avatar
Senior Member
Flag Berlin
Thanks Meter: 419
 
357 posts
Join Date:Joined: May 2009
Donate to Me
More
Quote:
Originally Posted by bcmobile

Yes, it is based on rotobackup method, but compresses and cleans up too :)

Sent from my GT-P7100 using XDA Premium App

Whats needed now is a kind of automated restore
11th June 2011, 10:42 AM   |  #10  
Member
Thanks Meter: 7
 
50 posts
Join Date:Joined: Jun 2011
More
Quote:
Originally Posted by bcmobile


You will need adb access to your tab whichever platform you use.

All you need to do to run it is extract the attached archive and run

Sorry for the noob question but how do i do this true windows?

Post Reply Subscribe to Thread

Tags
backup, tool, util
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes