adb back up - One (M7) Q&A, Help & Troubleshooting

adb backup -apk -all -f backup.ab
where does that command land the backup on one computer?
User folder

Related

backup all phone

This is a simple hack to backup all phone (everything)
you need:
space on sd
adb
start adb:
Code:
adb shell rm /sdcard/andboot/androidinstall.tgz (if present)
adb shell tar zcvpf /sdcard/andboot/androidinstall.tgz /system /data
if you want to reinstall, go to boot menu reinstall system and clean data (you can also do it with atools)

[Q] copy efs using adb

hey guys i'm trying to copy my efs partition using adb shell using ramads code
"cd c:/your_ADB_directory_name/platform-tools (Use cd c:/your_ADB_directory_name/tools if you are using an older ADK versions)
adb shell
su
cp -r /efs /sdcard/efs
exit
exit"
I get to the *cp -r /efs /sdcard/efs* and it spits out a million and one errors saying it can't create any of the files due to there being no space.
my phone storage has 1.65gb and my SD has 8.3gb free of space so i'm quite puzzled by why it's saying this.
Check my thread to see if it helps...
http://forum.xda-developers.com/showthread.php?t=859914
Cheers!

[UTIL] SkitzBackup

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
View attachment skitzbackup.zip
Enjoy!
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
Could this be used to backup apps and app data before unlocking bootloader? I can't see a /data partition
working perfectly!You're great
djmasque said:
Could this be used to backup apps and app data before unlocking bootloader? I can't see a /data partition
Click to expand...
Click to collapse
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.
bcmobile said:
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.
Click to expand...
Click to collapse
Okay, good work nonetheless
Looks a lot like rotobackup, hehe.
Chainfire said:
Looks a lot like rotobackup, hehe.
Click to expand...
Click to collapse
Yes, it is based on rotobackup method, but compresses and cleans up too
Sent from my GT-P7100 using XDA Premium App
bcmobile said:
Yes, it is based on rotobackup method, but compresses and cleans up too
Sent from my GT-P7100 using XDA Premium App
Click to expand...
Click to collapse
Whats needed now is a kind of automated restore
bcmobile said:
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
Click to expand...
Click to collapse
Sorry for the noob question but how do i do this true windows?
Will this work for me?
Hi bcmobile,
This looks excellent.
I'm currently running a P7100 (10.1v) with ISI-Galaxy 1.2.5v (HC3.2) but my baseband/modem is still P7100BUKE2.
I would like to get the GSM working (for sending USSD commands) but I would need to flash my modem, and I would like to backup the modem before I flash it with the P7500 modem.bin, if something goes wrong, I can always go back to the old one.
In your script, is radio.img the modem.bin?
Also is the "/dev/block/" always the same on all the different versions of the tablet? (in other words if I have a 10.1v will this backup my modem).
Thanks so much. You help is much appreciated.
seraphimserapis said:
Whats needed now is a kind of automated restore
Click to expand...
Click to collapse
/!\ IN THEORY /!\ you'd just have to copy the .img files back to the tab and switch the command line arguments for dd. (e.g. dd if=/path/to/file.img of=/path/to/directory)
soo i know this is kind of old but does this work for any device? if so what am i doing wrong? its stuck on deamon started successfully...

I need help, SD-Card accidentally formatted

I was not paying attention and the complete formatted SD memory ...
On the PC I have a nandroid backup of the stock ROM,
the device is rooted,
I come into the recovery too.
I need urgent help please!
I feel realy bad :crying:
If you have a nandroid and want to restore it, then you can push it on sd, but need to create folders first via adb
First check whether you have adb access with:
adb devices
Your device numbers shows, all good. If not try flashing another boot.img for yor ROM base, that has adb enabled. I trust you had USB debugging enabled on your device...
1. New folders (I name your nandroid folder stockbackup, name it how you like)
adb shell
mkdir /sdcard/clockworkmod
mkdir /sdcard/clockworkmod/backup
mkdir /sdcard/clockworkmod/backup/stockbackup
Part 2 - pushing Nandroid to sd
These commands not inside adb shell
adb push boot.img /sdcard/clockworkmod/backup/stockbackup
adb push cache.ext4.tar /sdcard/clockworkmod/backup/stockbackup
adb push cache.ext4.tar.a /sdcard/clockworkmod/backup/stockbackup
adb push data.ext4.tar /sdcard/clockworkmod/backup/stockbackup
adb push data.ext4.tar.a /sdcard/clockworkmod/backup/stockbackup
adb push data.ext4.tar.b /sdcard/clockworkmod/backup/stockbackup
adb push nandroid.md5 /sdcard/clockworkmod/backup/stockbackup
adb push recovery.img /sdcard/clockworkmod/backup/stockbackup
adb push system.ext4.tar /sdcard/clockworkmod/backup/stockbackup
adb push system.ext4.tar.a /sdcard/clockworkmod/backup/stockbackup
adb push system.ext4.tar.b /sdcard/clockworkmod/backup/stockbackup
Now your nandroid is on sdcard/clockworkmod/backup/stockbackup
If everything worked, restore your nandroid as usual.
Alternatively just download a custom ROM like for example TrickDroid and push this to your sd and install.
adb push TrickDroid_2.1.0.zip /sdcard/
Hello,
thank you for your effort
I've never done this before,
can you tell me where I need to enter the path of the backup on PC,
Here, for example:
adb push boot.img /sdcard/clockworkmod/backup/stockbackup
resolved
Managed to install the AIO Kit by sideload the TrickDroid ...
Accidentally discovered!:laugh:

How To Guide Backup all possible data from phone without root

adb backup and adb restore
Bash:
adb backup -apk -shared -all -f out.ab
Backing up all application, app data, and all shared files in storage.
Pulled the backup file from phone.
and restore
Bash:
adb restore out.ab

Categories

Resources