With the new TWRP update, I was excited to finally be able to stream Nandroid backups straight to my desktop instead of putting them on my flash drive and moving them after. Unfortunately, this feature does not seem to be working properly.
These are my steps:
1) Flash TWRP 3.1.0-0
2) Boot to TWRP
3) Verify that ADB recognizes the device
4) Run "adb backup --twrp" from a command prompt
5) Choose my partitions from the TWRP prompt on the phone (system, data, boot)
TWRP shows the terminal for a second then closes out to the main screen. I am left with a 0kb backup.ab file in the directory I ran the command. I have tried changing which partitions to backup but always get the same error, even when selecting none.
My log output is:
Code:
Updating partition details...
...done
[COLOR="Red"]Unable to mount storage[/COLOR]
Anyone else running into this issue and/or have a fix? Any help is appreciated!
So I immediately found the solution. Turns out, the backup destination in TWRP must be set to internal storage, not OTG. The option to change backup destination is not there after running the "adb backup", so it must be set beforehand. Mine is defaulted to OTG as I find it easier to backup straight to my thumb drive and often do not have enough space to save the backup to phone itself (what I get for buying a 16gb version)
Hope my idiocy can be of help to someone else
Thanks.
Glavon said:
So I immediately found the solution. Turns out, the backup destination in TWRP must be set to internal storage, not OTG. The option to change backup destination is not there after running the "adb backup", so it must be set beforehand. Mine is defaulted to OTG as I find it easier to backup straight to my thumb drive and often do not have enough space to save the backup to phone itself (what I get for buying a 16gb version)
Hope my idiocy can be of help to someone else
Click to expand...
Click to collapse
Your idiocy was most helpful to us fellow idiots.
Related
PLEASE READ THE ENTIRE POST BEFORE REPLYING. IF YOU DON'T I'LL JUST REPORT YOU FOR SPAM.
just spent an hour trying to find a way to do this and no such luck. i've read that clockworkmod recovery, when doing a factory wipe does not wipe the /sdcard but i still would like to be able to make a backup.
I've tried simply doing a copy/paste but windows refuses to even attempt it. even trying to do one folder at a time gives me issues. i've resorted to using airdroid for all my file transferring needs.
But using airdroid, even trying to do a backup, it eventually goes so slow that it fails. I have 4Gb of data i want to backup, and eventually it just stops transferring. i could do it one file at a time but honestly i don't feel like spending hours.
so does anyone know of any program, or possible easy way, that won't take days, to backup the /sdcard
You could always use cloud storage. Sugarsync gives you 5GB for free. Also, you could try running an FTP server app on your phone and then connect to it from your computer. I've used FTPServer in the past and it has been pretty quick to transfer lots of data.(https://market.android.com/details?...t#?t=W251bGwsMSwxLDEsImx1dGV5LkZUUFNlcnZlciJd)
yeah, i've thought of that, my internet at home isn't that great though. 6Mbps down, 1Mbps up. so cloud storage hasn't worked that great for me in the past, but maybe i'll give that ftpserver a shot.
BTW, i would like absolute confirmation that if i choose Wipe data/factory reset in CWMR Touch 5.504 beta 3 it won't erase any of the data on /sdcard.
as i've read, any CWMR won't erase the sdcard partition, but doing that through ICS, will.
Isn't CWMR 5.5.0.4 the non-touch version? I was using 5.5.0.4 and I can confirm that "Wipe Data/Factory Reset" does NOT erase anything on /sdcard, but I haven't actually done it in any other versions.
Hmm... what about using terminal/adb shell to build a .tar(.gz) of /sdcard and just copy that over to your PC?
codesplice said:
Hmm... what about using terminal/adb shell to build a .tar(.gz) of /sdcard and just copy that over to your PC?
Click to expand...
Click to collapse
sounds like a good idea if possible. correct me if i'm wrong, but wouldn't that allow you to use adb to restore all of your sd contents as well?
palisaide said:
Isn't CWMR 5.5.0.4 the non-touch version? I was using 5.5.0.4 and I can confirm that "Wipe Data/Factory Reset" does NOT erase anything on /sdcard, but I haven't actually done it in any other versions.
Click to expand...
Click to collapse
idk, mine has touch. not sure when/how i updated to it though. good to know that it doesn't though. thank you.
rsync backup for Android
http://forum.xda-developers.com/showthread.php?t=871307
Since you're on Windows, you would need to setup an SSH server. People in that thread have done this. A Linux desktop would make things a tad easier though.
This is how I backup the microSD on all my phones.
neok44 said:
sounds like a good idea if possible. correct me if i'm wrong, but wouldn't that allow you to use adb to restore all of your sd contents as well?
Click to expand...
Click to collapse
I believe so. You'd of course have to find some other folder on your internal storage (not /sdcard) to store the tarball while it's being created.
Or heck, adb should be able to do it all for you:
Code:
adb backup -shared -noapk -nosystem
*should* (according to adb help output) backup your /sdcard to "backup.ab" in the current directory
Code:
adb restore backup.ab
*should* then restore it.
Also, checkout "adb backup"
http://forum.xda-developers.com/showthread.php?t=1420351
Allows you to set a flag to include shared content (the microSD). You could probably get it to backup just shared content.
so i've gone through my whole sd card trying to figure out exactly how much data really needs to be backed up, and it's not much. biggest thing ist he 1.5GB CWM backup. everything else is pretty tiny.
so i'm thinking of giving the cloud a try.
are there any that anyone can recommend? I'm hoping for one that i'll be able to choose what folders to backup and have it automatically do it at a time that i set.
neok44 said:
so i've gone through my whole sd card trying to figure out exactly how much data really needs to be backed up, and it's not much. biggest thing ist he 1.5GB CWM backup. everything else is pretty tiny.
so i'm thinking of giving the cloud a try.
are there any that anyone can recommend? I'm hoping for one that i'll be able to choose what folders to backup and have it automatically do it at a time that i set.
Click to expand...
Click to collapse
I like dropbox + the DropSync app - best two-way cloud sync I've found yet.
Assuming you can get an MTP connection with your pc then try copying across the sdcard folders 1 at a time to back them up. First time I tried to back up the entire contents in a single go it seemed like it was stalled but it was actually just trying to work out how long it would take before starting and probably would have succeeded if left long enough. Copying the android folder and sometimes stall a copy so do that last.
Alternatively if you dont want to use cloud storage (which would take quite some time depending on upload speeds) you could try the backup option in my ToolKit which uses the latest version of adb and will give you an option to include internal storage in the backup file. Just make sure to check the backup file size after it completes as that function is a bit buggy in adb and has been known not to restore everything such as pictures and music so copy across what you can before starting.
Mark.
Thanks to both of you. I was able to do files one at a time and get them over. and luckily nothing was that big, except for the CWM backups. freaking 1.5GB, that alone is the reason why i wish i had a 32GB phone.
good to know that the toolkit has that option. i'll be sure to use that if i ever need to do a full backup in a hurry.
The dropbox dropsync solution sounds interesting and i'm gonna give that a try. basically i'm just trying to make sure my backup files from apps that don't use cloud syncing will be secure in case something ever goes wrong. with having only 13Gb in the phone i'm keeping most of my big stuff like movies in a 32gb microsd that i'm connecting with an OTG cable.
Although I don't think the tone of the first line of your OP is conducive to soliciting help, I'll thought in my two cents anyway.
The contents of your sdcard is located in /data/media. If you connect your phone to your PC, and open a command prompt in the same directory as your ADB.exe file, the following command will copy everything from your sdcard to your PC in a folder called sdcard_backup:
adb pull /data/media /sdcard_backup
Although not speedy by any means, I've successfully backed up over 8GB this way.
hey guys
I'm completely desperate. Here's what happened the last two days:
Yesterday my Fairphone suddenly became very slowly and then wouldn't boot no more. Since then every time I try to start my phone, I get the message "process system doesn't react" or something like that. The only thing thats working is the recovery mode.
Today I wanted to make a complete backup so that I can make a hard reset afterwards. But then I had to realize, that the recovery mode isn't able (or I'm not able to see how) to make a backup on an external sd card but only on the internal storage (which is also called sd card which confused me about an hour).
The problem now is that I have a backup but I can't get it on my computer or on my external sd card and so it will be deleted too if I make a hard reset.
I searched the internet for hours and found out, that it is possible to somehow remote control the phone via adb. I read that the phone has to be in "usb debugging mode". I can just put my phone into adb sideload mode or however its called by choosing "update with adb" in the recovery menu.
Is this the reason why my "adb pull" command isn't working? It just says "error: closed". Or is it because I haven't wrote right the path of the backup file? (I used: /mnt/sdcard/userdata_20130801_134656.backup)
Please help me! I have tried so much already, my brain is sizzling:silly:
I'm working on a Mac and have installed sdk.
Thanks in advance!!!
------------------------------------------------------------------------------------------------------------------------------------------------------------
EDIT:
Just to close this topic and maybe help other people with the same issue:
I finally managed to pull the /data folder using adb. What I didn't know was that the backup file (and all pictures, videos, music and so on too) is stored on the internal sd card which isn't affected by the factory reset in the recovery menu. What I also found out was that the backup file (that I had created during the "bootloop" or whatever it was) was corrupted. So the backup logically broke my FP again after I restored from it.
So the solution, as mentioned above, was to pull the /data folder which contains all important user data such as wifi passwords, contacts, messages and so on
I hope it helps
peace
SC
So I'm looking to do some playing around with my G3, it's a Sprint Variant, has been stump rooted; nothing else. I run Ubuntu 14.04 LTS, have installed adb/fastboot, and it sees the device as being connected.
I can't shell / dd the twrp file as it mentions being able to do manually in the thread from my PC (under terminal); denies me permission, despite the file being in the main directory of the Internal storage (or does it need to be in the physical 'root' directory? This wasn't clear for me on the Bump! TWRP Thread).
I did however pass the hiddenmenu tag for disabling ota updates directly through terminal emulator on the device itself, so I do have access to be able to do it that way.
Long and short, can I make a back up of everything as it is now on the device (firmware, radio, baseband and all associated files)? Without having to get them here on xda?
I will read instructions; I've gotten this far by reading, I just can't find the information I'm looking for.
Thanks in advance, hopefully I can get some solid instructions.
If you have the proper twrp image for your phone loaded at the root of your internal SD, you can install it using the terminal emulator app right on your g3.
You just input the three command lines starting with the "su" line.
After you do that, you can launch into recovery (I like the Quick Boot app for that), then use twrp to do a backup. In my case I reformatted my external SD card to fat32, from twrp, so that card would be usable by both normal android and twrp (backup the external SD to your PC or a flash drive before reformatting, then copy the files back in after it is done)
There is one last chunk of stuff to backup. See http://forum.xda-developers.com/showthread.php?t=2907329
Good luck!
markfm said:
If you have the proper twrp image for your phone loaded at the root of your internal SD, you can install it using the terminal emulator app right on your g3.
You just input the three command lines starting with the "su" line.
After you do that, you can launch into recovery (I like the Quick Boot app for that), then use twrp to do a backup. In my case I reformatted my external SD card to fat32, from twrp, so that card would be usable by both normal android and twrp (backup the external SD to your PC or a flash drive before reformatting, then copy the files back in after it is done)
There is one last chunk of stuff to backup. See http://forum.xda-developers.com/showthread.php?t=2907329
Good luck!
Click to expand...
Click to collapse
I already dd'ed the EFS files in question through terminal emulator, and I'm sure I can install TWRP just fine through there as well.
To clear this up, I don't want to install TWRP right away. I want to back up my device's recovery files, baseband, radio, and all the vitals, and basically make a personal .tot or .kdz for it to restore to (that I don't have to source online) under, say, the flashtool.
Hopefully this helps clear this up and someone has the answers I'm really looking for.
Hey,
I'm new in this kind of stuff but need help as fast as possible. So I tried to root the phone but let me tell you something else. When I enter TWRT (boot into) and try to install the .zip file it shows weird folder names that I can't see on the computer. I have Win10 if this matters and Android 8.0 or 8.0.1. The folders are:
acct
boot
cache
config
cust
data
license
mnt
and it goes like that. The problem is that about 85 or 90% of these folders aren't visible on my computer when I plug in my phone... The System is mounted in TWRP and everything is mounted. I tried wiping all the data. I have unlocked bootloader. Also when I go to some of these folders I see REALLY strange folder names like: 671hnsuh1b%nqjus Or something like. I've found out that it's encrypted but I just want to root the phone and find the .zip file. Also can someone explain me these acct, boot, license, vendor, version and other folders that aren't visible on my PC? Please help. I'm so confused, not clue what's going on...
You need to use the format data option to decrypt the internal storage. Better use SD card or USB OTG to flash the root file. Anyway don't wipe the oeminfo or vendor partition in any case and take a backup of all partition beforehand.
kksnis said:
You need to use the format data option to decrypt the internal storage. Better use SD card or USB OTG to flash the root file. Anyway don't wipe the oeminfo or vendor partition in any case and take a backup of all partition beforehand.
Click to expand...
Click to collapse
Well, I already used this option. The format data option and it's still the same. Maybe the version of my twrp helps: 3.1.1-1
Aspect13 said:
Well, I already used this option. The format data option and it's still the same. Maybe the version of my twrp helps: 3.1.1-1
Click to expand...
Click to collapse
Strange. What is the android version?Did you had any lock screen set before formatting? Can you please share a screenshot or log during formatting, if you have any. Anyway you can use adb sideload to flash the .zip file.Cheers
kksnis said:
Strange. What is the android version?Did you had any lock screen set before formatting? Can you please share a screenshot or log during formatting, if you have any. Anyway you can use adb sideload to flash the .zip file.Cheers
Click to expand...
Click to collapse
My android version is 8.0 so it's oreo. I've also noticed that the 3.1.1-1 version of twrp is the only one from what I tried that I can install the newer versions gave me an error. I had lock screen and it was code not a fingerprint but I wasn't prompt for a code after booting into twrp. Adb sideload seems to fail all the time so I can't do it :/.
The logs from wiping data are:
Updating partition details...
..done
Full SELinux support is present.
MTP Enabled
Starting ADB Sideload feature...
Starting ADB Sideload feature... (And it failed now wipe logs.):
Fomatting Data using mkfs.f2fs...
Done.
You may need to reboot recovery to be able to use /data again.
Updating partition details...
...done
So yea I'm so sad tbh with this... I'll try to install new twrp after the wipe if the wipe didn't help and will tell you if I get an error when I try to boot into NEW twrp.
EDIT: Ye still an error.
Maybe you have a link to the newest working twrp?
Nevermind got it. Downloaded the modded twrp by TEAM MT I guess from here: https://forum.xda-developers.com/honor-8-pro/development/wip-twrp-3-1-1-0-duk-t3625798 Works perfectly and SOLVED!
hello
as title is showing i want to take to take full backup with TWRP or any other method and restore whenever i want it if something happens
like
rom with data for example contains
installed apps,contacts,photos...etc
thanks
I don't have TWRP so I backup my data using Migrate.
owais16 said:
hello
as title is showing i want to take to take full backup with TWRP or any other method and restore whenever i want it if something happens
like
rom with data for example contains
installed apps,contacts,photos...etc
thanks
Click to expand...
Click to collapse
Google back-up is integrated on the phone and does a great job.
Stores app list + app data to be restored on a later date.
Sync contacts, calling lists and messages in your cloud.
Photos are getting stored in the cloud also, you just need to make sure you selected the right settings in the Photos app.
I have a paid subscription to Google for just 10 euros per month and I have 60gb of storage on their cloud, more than I need, and all the data from the phone is going there. If for some reason I change even brands, my data will migrate to the new device without any worries.
Also, with TWRP is pretty damn straight forward. Get TWRP, click back-up, select storage for the back-up and wait. You can select what partitions you want to back-up and that's it. But note that, this back-up is only for your device and that's about it. Also installing TWRP tampers with your system and may affect OTAs.
I use a combination of titanium backup and rsync for off-device backup of apps and data. Very custom. It's not complete but it's close enough for me. Takes about an hour to put everything back when I break the phone.
Because of the encryption, you can't do a 'nandroid' (raw) backup of the data partition and restore it later. You'll need some extra partitions for the encryption keys, and that's assuming there isn't an on-SoC flash chip involved.
I suspect it would be feasible to just tarball the decrypted data partition and restore that afterwards, though that would be a bit non-trivial to restore.
Complete RAW Storage Backup/Restore using TWRP & ADB
EDIT: Apologies, confirmed as per @a1291762 above that it complains about encryption after restoring the backup image, even if encryption was turned off before backing up.
You can do a raw dump of the entire storage, but the output file will be the total size of your storage (e.g. 32GB - which you could zip on your PC to save space).
You can also then restore that raw image back to the phone. I've confirmed this works with my older Redmi 2. Haven't yet confirmed the restore process on my Mi A2 Lite, but it does back up fine.
Connect phone to PC with USB and reboot to bootloader
Boot into TWRP using "fastboot boot [twrp-xxxx.img]" (e.g. "fastboot boot twrp-3.3.1-dees_troy-daisy.img")
Confirm phone is available in recovery mode using "adb devices" command (it'll show serial # and "recovery")
[To Back Up] Type in "adb pull /dev/block/mmcblk0 backup.img"
[To Restore] Type in "adb push backup.img /dev/block/mmcblk0"
Reboot to System from TWRP menu
I suggest running your CMD window (or Minimal ADB and Fastboot) as Admin to avoid write issues to that folder.
The backup image (backup.img) can be opened/extracted with 7zip, as well as some contained partition images.