[Tool][Windows/Linux][4.0+] Holo Backup - Full backup without root!

Search This thread

hbar98

Senior Member
Oct 11, 2010
229
59
Came here to see if anyone had gotten a Moto device to work... Looks like your app is having the same issues as Carbon. Apparently, some Moto phones don't play well with adb backup. I have an OG RAZR, and neither Carbon nor your app works. :(
 

omegavesko

Senior Member
Jun 9, 2012
88
225
Came here to see if anyone had gotten a Moto device to work... Looks like your app is having the same issues as Carbon. Apparently, some Moto phones don't play well with adb backup. I have an OG RAZR, and neither Carbon nor your app works. :(

Sad to hear that. Added to the first post so people know.
 

omegavesko

Senior Member
Jun 9, 2012
88
225
Oh, also, v2.0 is coming along very nicely. Expect a release this weekend.

X6bz4Pl.png
 

hbar98

Senior Member
Oct 11, 2010
229
59
Re: [Tool][Windows/Linux][4.0+]Simple ADB Backup - Full backup without root - BETA

Sad to hear that. Added to the first post so people know.

Glad to help.. :( Was hoping someone had it working. I'll keep looking or eventually replace the phone some day.

Sent from my Nexus 7 using Tapatalk HD
 

sunnychan2012

Member
Jan 30, 2013
47
2
hi,
is it plain simple to run SAB_Windows.exe on a new windows 7?
is there anything to setup and adb?
get following with my tablet

daemon not running. starting it now on port 5037 * * daemon started successfully * adb: unable to connect for backup
any help?
thx
 

omegavesko

Senior Member
Jun 9, 2012
88
225
Re: [Tool][Windows/Linux][4.0+]Simple ADB Backup - Full backup without root - BETA

hi,
is it plain simple to run SAB_Windows.exe on a new windows 7?
is there anything to setup and adb?
get following with my tablet

daemon not running. starting it now on port 5037 * * daemon started successfully * adb: unable to connect for backup
any help?
thx

That should be it. Which tablet do you have? It may need separate drivers of its own for adb to recognize it.

Sent from my Skate using Tapatalk 2
 

madushan92

Senior Member
Aug 16, 2011
235
32
Colombo
Tried on Galaxy S3 (i9300)
When it says "Now unlock your device and confirm backup operation" nothing happens on my device.

I set Desktop Backup password before doing this.
USB debugging active as well
 

Lucas0511

Senior Member
Mar 14, 2006
1,036
73
Backup seems to run just fine on my One X on 4.2.1 AOSP and with Windows 8 64bit. Will use it side-by-side with Titanium until I want to test a restore, thanks for sharing!
 
  • Like
Reactions: omegavesko

sharkcow

Member
Jan 22, 2013
39
4
restore problems!?

A bit earlier I reported that the program seemed to work on a Note 2 but it doesn't.

I decided to do a Factory Reset yesterday because of the 4.1.2. battery drain issue and backed up the Apps & Device Data. The backup seemed to be OK as it created a file of about 155 Mb. After the reset, I tried to restore but that's were things went wrong: it restored nothing...

That's precisely what I observe on my TF700 (see earlier post). Can you try to look inside the backup file to see which files have actually been backuped (google for "unpacking android backups", 3rd hit)? I suspect that on some (many?) devices, although a backup file with a somewhat reasonable size is generated, the restore process won't work! This would be a serious issue, since it suggests a false safety to the user!

So please, everybody who's got the tool working to generate backup files, please test & report whether the restore process also works!
Simplest test: backup one app, delete it on the android and then try to restore it from the backup.

please help to shed some light on this problem!

sharkcow
 

omegavesko

Senior Member
Jun 9, 2012
88
225
That's precisely what I observe on my TF700 (see earlier post). Can you try to look inside the backup file to see which files have actually been backuped (google for "unpacking android backups", 3rd hit)? I suspect that on some (many?) devices, although a backup file with a somewhat reasonable size is generated, the restore process won't work! This would be a serious issue, since it suggests a false safety to the user!

So please, everybody who's got the tool working to generate backup files, please test & report whether the restore process also works!
Simplest test: backup one app, delete it on the android and then try to restore it from the backup.

please help to shed some light on this problem!

sharkcow

I definitely encourage this. I try to do what I can, but adb backup is completely a black box to me, so I can't do anything to control it other than telling it what to back up.

The more people report problems, fewer people get burned by it not working.

I'm thinking of making a Google Docs form to submit reports, so we have a nice spreadsheet of how it works on different devices.

Oh, by the way, 2.0 is coming out today. It's already up on GitHub if you're impatient, but I'll have a proper release up in a few hours.
 

omegavesko

Senior Member
Jun 9, 2012
88
225
v2.0 has been released!

Simple ADB Backup has been renamed to Holo Backup.

Here's the changelog:

  • Most of the code has been rewritten. This doesn't really mean much to users, but the old code was absolutely hideous and I just had to do something about it.
  • The interface has been completely redesigned, hence the new name. I'm quite proud of how it turned out.
  • The app now has a proper icon on the Windows executable.
  • Native support for wireless ADB is now included. That means backups can be done wirelessly (but only if you've rooted your phone), as long as you've enabled wireless ADB on your phone using a root application or a custom ROM feature. Of course, the device and your PC need to be on the same LAN for this to work.
  • Single app backup has been removed. It very rarely worked, so I figured it was doing more harm than good.
  • It uses gksudo to gain root priveleges on Linux now, so you no longer have to manually run it as root - it'll ask for your password with a popup when it needs it. Many people still rightfully don't want to give away root privileges so easily, which brings me to the next feature.
  • The option to use an existing adb install has been included under Linux. The benefit of this is that adb, when properly set up, doesn't require root.
  • You can now back up text messages and call logs! It does this by installing a copy of SMS Backup+ and launching it on your device. You can then use the app to back up and restore texts and calls to a custom label in your Gmail.
  • You can now donate bitcoins using a button in the app itself. This will open a browser window letting you donate using either a CoinBase button, or sending bitcoins to my address directly. I did this more for fun than anything else, I don't expect to make a profit from it. :p

Screenshots:

OSIXf6X.png
 

wisamf

New member
Jan 30, 2013
4
1
I just tried the Linux version.
When I tried to backup my apps it told me to set Desktop backup password in the Developers Options on the phone.
I did that and now I get this message "Now unlock your device and confirm the backup operation." yet there's nothing to confirm on the phone.
 

omegavesko

Senior Member
Jun 9, 2012
88
225
I just tried the Linux version.
When I tried to backup my apps it told me to set Desktop backup password in the Developers Options on the phone.
I did that and now I get this message "Now unlock your device and confirm the backup operation." yet there's nothing to confirm on the phone.

I just tried it and it worked fine.

If you're at the point where you're seeing that message, that means ADB has already been started. ADB is very much a black box from my point of view, so I have no control over it until it finishes.

If ADB is giving you that message, that means it's been started (not the app's problem) and it sees the device (not a driver problem). So I'm confused.

Try running 'adb devices'. What does that give you?
 

shawnseib

New member
Dec 31, 2009
4
0
I'm having issues restoring recently backed up data. Everytime I run the restore it (holobackup) prompts for the name of the backup file which I provide. It then says that it's restoring, but then immediately states that the restore ended. Am I doing something wrong when restoring?
 

omegavesko

Senior Member
Jun 9, 2012
88
225
Re: [Tool][Windows/Linux][4.0+]Holo Backup - Full backup without root!

I'm having issues restoring recently backed up data. Everytime I run the restore it (holobackup) prompts for the name of the backup file which I provide. It then says that it's restoring, but then immediately states that the restore ended. Am I doing something wrong when restoring?

Where does it say the restore ended? In a popup or in the terminal window?

Sent from my Skate using Tapatalk 2
 

heschuzha

New member
Feb 7, 2013
2
0
Hey there!

It's most likely ADB's 'help' text that appears, yes. That would only happen if the command was input incorrectly.

I just checked on my dev system, also Win8 x64. Worked just fine. This is the specific line of code that runs the restore operation:

Code:
os.system("adb restore " + str(backup_location))

I suggest you download it again, the download might be corrupted or something.

You can attempt to do the same thing manually by opening the Windows command prompt, navigating to the directory and running 'adb restore name_of_backup.ab', making sure the backup file is in the same directory as the ADB binary.



hey! i have the same problem, but downloading it again didn't work and I don't understeand what you mean whith the second part....
When i click restore, the command window fills with text and the nexus 4 does nothing. I'm using windows 7 32bit what do I do wrong?
 

omegavesko

Senior Member
Jun 9, 2012
88
225
hey! i have the same problem, but downloading it again didn't work and I don't understeand what you mean whith the second part....
When i click restore, the command window fills with text and the nexus 4 does nothing. I'm using windows 7 32bit what do I do wrong?

Hm. Like I said, that means adb hasn't been given the correct arguments. This is strange.

Try this: Open the folder Holo Backup is in, right click on an empty space while holding shift, and click 'open command window here'. Then type this in and press enter:

Code:
adb restore Backups\backup.ab

Does that do anything?
 

heschuzha

New member
Feb 7, 2013
2
0
Hm. Like I said, that means adb hasn't been given the correct arguments. This is strange.

Try this: Open the folder Holo Backup is in, right click on an empty space while holding shift, and click 'open command window here'. Then type this in and press enter:

Code:
adb restore Backups\backup.ab

Does that do anything?

yes it did thanks!
 

MissRisu

New member
Feb 8, 2013
1
0
Where does it say the restore ended? In a popup or in the terminal window?

Sent from my Skate using Tapatalk 2

I'm having this problem as well, and the "restore ended" is in a pop-up on the phone itself, not the terminal window. The terminal window still just says "Now unlock your device and confirm the restore operation."

I suppose I should have attempted to test this before doing the factory reset, but I figured nothing would happen if the data was all still on the phone.
 

Skei

Member
Feb 13, 2013
5
1
I'm having the same issues as MissRisu and Shawnseib. I backed up my Nexus 7, the file is about four gigabytes in size. When I try to restore it, it prompts me to enter my desktop password on my device, and when I do, it says on the device that restore has begun. About a second later, the device tells me it has finished restoring. Nothing further happens.

Any ideas would be fantastic !
 

Top Liked Posts

  • There are no posts matching your filters.
  • 206
    OSIXf6X.png

    A multiplatform GUI application I coded that uses ADB Backup to make full backups of your phone/tablet.

    Unfortunately, ADB Backup itself is rather buggy so it will often fail on many devices, and may not work at all on some (the HTC One series, Sony phones from 2011, and some Motorola phones are most often reported to not work). All of the things the Ultimate Backup Tool has trouble with also affect this application. Sorry, that's just how it works. Do report devices that don't work though, just so everyone knows about it.

    One of the best uses of ADB Backup is backing up Nexus devices before unlocking the bootloader, which wipes the device. You can then simply restore the backup to have your device in (mostly) the same state as before.

    Tested by myself on Windows 7 and Linux Mint 14. As I've only tested it on my own phone, I'm treating this as an open beta.



    Download
    http://omegavesko.github.com/SimpleADBBackup/ - Contains links to downloads in .tar and .zip formats. Both executables and source are included.

    Usage
    On Windows, simply run HoloBackup.exe.
    On Linux, run HoloBackupLinux. Running the binary as superuser is no longer necessary.

    You can also run it from source on either platform, just move the script for your platform from the /src/ directory into the parent directory.

    Source
    https://github.com/omegavesko/SimpleADBBackup - It's rather messy, I'm not too good at keeping git repos tidy. Should still work, though.

    Changelog
    v2.0 - Huge update. See GitHub page for feature list.

    v1.0 - Initial release.

    Credits
    All credits for the frameworks used do to the teams behind Python, Qt and of course the Android team.
    Also check out Ultimate Backup Tool, which inspired me to do this in the first place.
    6
    Hey thanks,

    I know this is an old post, but so an I..... Lol!

    Here is a Working Link for Win and Linux HERE

    Click on either Win of Linux
    Than just look down that page to....
    "This file has been truncated, but you can view the full file. For Win....
    Click on that working LINK!


    Same Text Link for Linux


    Might help someone!
    4
    ADB backup and restore is plenty of bugs, please recommend clockworkmod instead.

    Related adb backup and restore bugs:
    Issue 28303: adb backup doesn't respect -noshared flag
    Issue 32830: adb restore errors not displayed on device
    Issue 34311: Galaxy Nexus gets stuck when restoring adb backup
    Issue 25780: BackupManager causes reboot when BackupAgent missing
    Issue 40691: ab backup and restore Ski Safari does not restore saved data
    Issue 16286: Restoration of phone not working properly

    I'm aware of the buggy nature of ADB Backup. That's why I put warnings and disclaimers all over the place.

    CWM is obviously better at backup and restore, but you also can't install CWM in the first place without unlocking the bootloader on a lot of devices, which usually wipes the device and defeats the purpose of a non-root backup utility.
    3
    any link please ? i really want to try this

    https://github.com/omegavesko/HoloBackup

    Better do it yourself
    Enable Android ADB Backup
    The Android backup feature using adb backup is only available from Android 4.0+. To use this feature, USB debugging (under Settings -> Developer options) must be enabled on the device.

    Also, this feature does not work on all apps. To enable ADB backup for an app, that app must have set the android:allowbackup attribute to true in the Android Manifest (AndroidManifest.xml) XML file.

    Android Manifest XML File
    <application>
    ...
    android:allowBackup="true"
    ...
    </application>
    1
    2
    3
    4
    5
    <application>
    ...
    android:allowBackup="true"
    ...
    </application>
    Apps like the Google Authenticator have disabled the ADB backup feature to prevent sensitive information from being extracted from the device. ADB backup will not work on such apps. An attempt to perform an ADB backup on such apps will only generate a dummy file with no valid content inside.

    Perform Android ADB Backup
    To perform an ADB backup, you will first need to know the package name of the app in question. For example, if you want to perform a backup of the WhatsApp application, the package name would be “com.whatsapp“.

    You can get a list of the installed packages by running the pm list packages command from the ADB shell.

    $ adb shell pm list packages
    Another easier way is to extract the package name from the app’s Google Play Store web URL. For WhatsApp, the URL is https://play.google.com/store/apps/details?id=com.whatsapp and the package name can be found after the “id=” field.

    To perform a backup, connect the phone to the computer via USB and run the ADB backup command. If you want to backup WhatsApp, run adb like this:

    $ adb backup -f com.whatsapp.ab -noapk com.whatsapp
    This will trigger a confirmation dialog prompting you to authorise the backup on your phone as shown below. Click on the “Back up my data” button without providing a password. The backup will start only after you click on the button.

    Wait for the ADB backup command to complete. It may take a while, depending on the size of the data to be backed up. The backup will be written to the file specified in the “-f” option, in our case, it’s “com.whatsapp.ab“. The “.ab” extension indicates Android Backup. The “-noapk” option means that a backup of the .apk file is disabled and only the contents are backed up.

    Restore / Repack Android ADB Backup
    To restore the original Android Backup archive, run adb like this:

    $ adb restore com.whatsapp.ab

    A nice little helper for preparing ADB backups has landed in from switzerland:
    https://play.google.com/store/apps/details?id=ch.masshardt.adbbackuphelper&hl=en_US

    1. To backup app data along with apk

    Type in this command:

    adb backup -f “D:\myfolder\myapp.ab” -apk <package name>

    -f parameter specifies the file location, -apk specifies to backup apk (and not only app data)

    Once you enter this command on PC you will be prompted to unlock phone screen. Unlock screen and select ‘Back Up Data’ and also enter password if you have set up any previously. This command will store the backup to myapp.ab file on your PC. To restore this back to your phone simply type in:

    adb restore “D:\myfolder\myapp.ab”

    This command will restore entire app back to your phone.

    2. To backup only app data

    To backup only data don’t pass -apk parameter. This will only backup the app data in myapp.ab file. Remember that before you restore this backup the app should already be installed on the phone (From play store or from apk file which you are supposed to have).

    3. To backup multiple apps

    If you need to backup more than one app put in all package names in <package name> parameter with single space between each name. Alternatively if you want to backup all apps on phone you can use:

    adb backup -f “D:\myfolder\myapp.ab” -all -apk -nosystem

    -nosystem parameter is used to exclude system apps from backup, as restoring system apps sometimes causes stability issues.

    4. To backup your personal data only

    adb backup -shared -f “D:\myfolder\mydata.ab”
    -shared does a backup of personal data from the internal SDcard. It used to exclude apps, but should save settings
    3
    Looks like Githib is still under maintenance....

    It just came back up.


    Sent from my HTC One using Tapatalk 4 beta

    **Press the thanks button if I have helped you.