So i wanna start testing a few source builds to improve my dev skills and i needed to backup everything to my PC and since Titanium backup takes a really huge time to create the backup i thought of using my Ubuntu Desktop for the task.
the command : adb backup -f backup.ab -apk -all -nosystem
leads to a screen with the following text. "Unlock your device and..... "
but there is no prompt on my Redmi.
Any one knows what the problem is?
Related
Looking through the menus in my ICS i've noticed the option to set "Desktop Backup Password" and thought to myself - "Well, How odd... Android does not have any desktop backup solution built in..."
It took some digging since there wasn't a lot of information online - but I ended up stumbling upon this page:
http://www.tested.com/news/feature/...-data-from-your-galaxy-nexusno-root-required/
As it turns out - Google created a mechanism in ICS to create full desktop backups for apps, data and even system apps, without the need to have the device rooted.
Keep in mind this only works on Ice Cream Sandwich... So don't ask me if this will work on GB based ROMS... It WON'T.
Make sure you have a recent version of ADB on your machine, go to the developer menu, set-up a password, and then use adb with the following syntax to create a backup of your system (taken directly from ADB's help):
Code:
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
-f <file> (write an archive of the device's data to <file>. If no -f option is supplied then the data is written to "backup.ab" in the current directory.)
-apk|-noapk enable/disable backup of the .apks themselves in the archive; the default is noapk.)
-shared|-noshared (enable/disable backup of the device's shared storage / SD card contents; the default is noshared.)
-all (means to back up all installed applications. This will include SD-Card backup)
-system|-nosystem (toggles whether -all automatically includes system applications; the default is to include system apps)
<packages...> (is the list of applications to be backed up. If the -all or -shared flags are passed, then the package list is optional. Applications explicitly g
iven on the command line will be included even if -nosystem would ordinarily cause them to be omitted.)
I hope this proves helpful to some of you...
This is awesome i had been wondering if google was going to release a backup tool
Thanks man
Don't have adb yet but I will after reading this, great find.
Sent from my SPH-D710 using XDA
Do you know how you would go about restoring the backup once its created?
apeironer said:
Do you know how you would go about restoring the backup once its created?
Click to expand...
Click to collapse
you would also use adb to restore...
syntax:
adb restore <file>
where <file> is, of course, the name of the backup file...
adb requires root, however
This looks like a neat idea, however installing adb itself, requires root, making this somewhat moot.
Does anyone know of an app or method to do a full Android backup to desktop (Mac, Linux or if necessary Windows) which does not require root in any way, so I can completely factory-wipe my carrier-provided Galaxy Note II and restore it, and be back up in running in minutes?
desrod said:
This looks like a neat idea, however installing adb itself, requires root, making this somewhat moot.
Does anyone know of an app or method to do a full Android backup to desktop (Mac, Linux or if necessary Windows) which does not require root in any way, so I can completely factory-wipe my carrier-provided Galaxy Note II and restore it, and be back up in running in minutes?
Click to expand...
Click to collapse
ADB does NOT require root.
You are limited to the things you can do with ADB when then phone is not rooted - you will not be able to work with the system folders, but you should still be able to create the backup.
Just make sure you go to Settings > Developers Settings, and enable Android Debugging.
Let me know if it works.
Exactly what I was looking for.
Thank You!
for noobs
Just enable developer options, enable USB debug mode, create a desktop full backup password, revoke USB debug authorizations, install ADB on your PC (link below), open CMD and cd to the folder and run "adb start-server" then "adb backup -all"... it will create a backup file in that folder (mine was 200MB) called backup.ab.
https://developer.android.com/studio/releases/platform-tools.html
Anyone using this in 2023? What are the downsides, how does it compare to Google Cloud Backups?
EDIT: okay, that explains why it's not mentioned anymore
% adb backup -all
WARNING: adb backup is deprecated and may be removed in a future release
Now unlock your device and confirm the backup operation...
EDIT2: my backup is only 7MB... doesn't seem right? What's in there?
OK so when I type in adb backup -f C\Backups\gnexbackup.ab -all -nosystem
it looks like it does it's thing and backs up everything, but then when I go to the folder (Backups) I don't see that .ab file... what's up?
I am using takju 4.1.1 unlocked bootloader, but no root
same problem
works, but does not fix broken system apps
start cmd with admin
go to location of adb.exe
C:\>cd C:\adb
check adb
C:\adb>adb devices
List of devices attached
0123456789ABCDEF device
connect only one device!
if "adb devices" returns anything else, something is wrong, try '>adb kill-server' and retry and/or redownload newest adb at thanks Snoop05
C:\adb>adb backup -all
confirm at phone with password, no password leads to failure during restoring process, its a known bug (adb v1.0.32 and below)
file C:\backup.ab will be created
restore with
C:\adb>adb restore backup.ab
confirm at phone with password
wait till done
works for me, all user apps and data are restored, but it did not fix my broken google services and deleted calendar storage (accidents happen )
This function is not reliable. Some apps work, others dont. Only use this if you dont have any other options, e.g. broken phone or some malfunction.
Hi there,
I want to do a full adb backup before I unlock my bootloader and root etc...
My only issue is that it always hangs at a certain point during the backup 'com.android.sharedstoragebackup'...
I was using the command adb backup -apk -shared -all -f C:\backup\backup2012.ab
It kept freezing up so I decided to remove the '-shared' part but when I try to back up it keeps on doing 'com.android.sharedstoragebackup' and freezing...
Has anyone had this issue before?
Thanks,
T-L-H
Did you find a resolution to this? I'm seeing the exact same things (Evo 4G LTE)
just let it run. My .ab file was 12Gb and it 'hung' at com.android.sharedstoragebackup for about 45min. Then it continued
I remember reading that once it hangs, you can stop and remove the shared flag of it to resume. Just do a search, check the HOWTO results, you will find the exact description.
hi
I have installed galaxy nexus toolkit . It has option of backing up my phone and I was going through few posts which allows me to backup via ADB . I have few questions regarding this.
1. Are two methods I mentioned (via toolkit and ADB different?
2. If I backup and then do restoration , will the state of my app will be restored ? Like Game scores or levels passed ?
Thanks
I would advise you to drop the toolkit, and follow this (http://forum.xda-developers.com/showthread.php?t=1830108) guide. It'll require you to install adb and fastboot, so you will be in complete control of your device and will also empower you to fix anything which *may go wrong.
To actually answer your question, 1. yes the toolkit just inputs the adb backup command for you and 2. yes that is usually the meaning of the word backup... (some apps like cut the rope do however check whether it's the same installation, and these will ignore data that have been copied directly)
But please take the time to install adb yourself and get comfortable with the commands yourself, that way you will also be able to fix any problems that may arise yourself.
Drop the toolkit.
and there is a nandroid function on the toolkit, will be a better option......................................
And once again, drop the toolkit..
http://forum.xda-developers.com/showthread.php?t=1812959
re
adb backup -apk -noshared -all -nosystem
I am trying this command to backup my app data . But it is not working it just list all the commands available. My Adb is installed perfectly . Because SD card PULL command worked
adithyavr said:
adb backup -apk -noshared -all -nosystem
I am trying this command to backup my app data . But it is not working it just list all the commands available. My Adb is installed perfectly . Because SD card PULL command worked
Click to expand...
Click to collapse
you forgot to name your backup file, which is done by the paramater -f
Code:
adb backup -f C:\name_of_your_backup.ab -apk -noshared -all -nosystem
you can name the output anything you like and put it to any folder you desire. just specify those after "-f" . don't forget to enable usb debug in your phone and i would recommend to check "stay awake" as well during the procedure.
i tried with the exact code "adb backup -f C:\name_of_your_backup.ab -apk -noshared -all -nosystem" but it still just lists all the commands there. For some reason it is not recognizing the command . It did for pull .
Funny thing is in that complete listing I cannot see backup command anywhere ? this might help but I installed adb AIO which was available . Can that cause problem ?
adithyavr said:
i tried with the exact code "adb backup -f C:\name_of_your_backup.ab -apk -noshared -all -nosystem" but it still just lists all the commands there. For some reason it is not recognizing the command . It did for pull .
Funny thing is in that complete listing I cannot see backup command anywhere ? this might help but I installed adb AIO which was available . Can that cause problem ?
Click to expand...
Click to collapse
what version of adb do you have? check with command "adb version". you need adb version 1.0.29 or newer to have adb backup and restore function.
btw, if you have the toolkit from mskip, adb has been renamed to adb-toolkit and that one is at least 1.0.29 as i recall.
oh mine is adb 1.0.26 . Can you guide me to the proper adb download . Also if I install android sdk , will I get the adb ?
adithyavr said:
oh mine is adb 1.0.26 . Can you guide me to the proper adb download . Also if I install android sdk , will I get the adb ?
Click to expand...
Click to collapse
you can grab the latest version from google. it's a big download (~390Mb) so if you only need adb or fastbook then i would just use those bundled with the galaxy nexus toolkit. unzip the downloaded file to anywhere you like, and the adb command can be found in sub-folder "platform-tools". that's all you need.
adb backup -f C:\backone.ab -apk -noshared -all -nosystem
I downloaded the latest ADB it did back up perfectly .but in C:\ there is no file called backone.ab
adithyavr said:
adb backup -f C:\backone.ab -apk -noshared -all -nosystem
I downloaded the latest ADB it did back up perfectly .but in C:\ there is no file called backone.ab
Click to expand...
Click to collapse
nothing comes up if you type the following in your computer?
Code:
dir c:\ /a:h
i can only speculate that windows recognise ".ab" file as system file and hide it. you can name your backup with any extension you like, and people often use ".bak" instead. output your backup to a folder instead of the root direction may also help (-f c:\backup\whatever_name_you_called.bak, for example).
I searched my system and found out that it is stored in Local/AppData i wonder why. Btw , I just unlocked my device . It said said it will wipe my data out . But surprisingly my device is still with same theme and apps . Had no factory reset done !. I have double checked in the fast boot and it shows my phone status as unclocked
Latest ADB and fastboot, sort of, at least i know the one i included supports adb backup..
https://www.dropbox.com/sh/p1wn5ywy6bd14hb/MvP3wpoNfx?m
adithyavr said:
Btw , I just unlocked my device . It said said it will wipe my data out . But surprisingly my device is still with same theme and apps . Had no factory reset done !. I have double checked in the fast boot and it shows my phone status as unclocked
Click to expand...
Click to collapse
This is known to happen with devices bought directly from the Google Play Store. To the best of my knowledge no one ever figured out why.
LOL
Sent from my i9250
bk201doesntexist said:
LOL
Sent from my i9250
Click to expand...
Click to collapse
Why lol ? What's so amusing ?
Sent from my Galaxy Nexus using xda app-developers app
bk201doesntexist said:
LOL
Sent from my i9250
Click to expand...
Click to collapse
I LOL'd
I'm trying to use ADB Backup and Restore, but when I try it I receive " Now unlock your device and confirm the backup operation."...however, nothing shows on the screen. Normally, a confirmation window displays on my phone, but nothing on the firestick.
I've tried single and double quotes, but nothing:
adb backup appname.ab -f com.app.com
adb backup 'appname.ab -f com.app.com'
adb backup "appname.ab -f com.app.com"
I'm trying to backup some app data and add it to another firestick, but running into some trouble. It isn't Kodi, but it is from a sideloaded app if that helps with more information.
Any ideas would be greatly appreciated! Thanks