Questions tagged [backup]

Use this tag if you have issues with backups (of apps, settings, documents) on your Android device. As this is a quite generic tag, please use a more specific tag if applicable, for example 'nandroid', 'titanium-backup', 'clockwork-mod'. For restoring your backups, 'restore' is the more appropriate tag. Check the full tag wiki for more details and hints.

What is a backup?

In information technology, a backup or the process of backing up is making copies of data which may be used to restore the original after a data loss event. In Android, this affects applications, settings and documents.

Which types of backups do we have for Android?

Basically, we can distinguish three types:

Nandroid

A Nandroid backup (as it's done by e.g. ClockworkMod) basically creates full images of all your device's partitions, without any abstraction. This does not necessarily mean one could not pick single items out of a Nandroid backup, but its not that trivial. If you restore a single partition only (such as /data), it must fit the other parts of the system. The /data partition also holds the /data/dalvik-cache, for example, which consists of the byte-code for all installed apps, optimized for the ROM which created it. If you would restore only the /data partition from a backup of ROM-X to a device with ROM-Y, those DEX (Dalvik EXecutables) would not fit. Also ROM-Y might use different directory structures for several things, which are not reflected here. As a result, you might have a unstable system (which might not even be able to complete its process), see apps crashing, and the like.

Doing this would not be such a good idea. So for the average user, a Nandroid restore is rather an all-or-nothing: Either restore it completely, or not at all. Unless you know exactly what you're doing, of course.

ADB Backups

Backups created with the adb backup command are a different case: they are "abstracted". If you look into such an archive, you will not find the directory structure reflected. Thus, at least in theory, an app backup (including the apps' data) created on ROM-X should restore fine on ROM-Y, as the ADB daemon on the device should take care of what belongs where.

Note however that apps can "protect" themselves from participating in such backups, which usually results in 41-byte-files when you backup them separately. If your device is rooted, you can work around that using the with the Backup All Apps module. Also uncovered by this backup are your SMS/MMS and, on most devices, your contacts.

App-based backups

There are several apps available for Android that create backups of apps, their data, or both. Some only cover system data available via so-called "data providers" (contacts, call logs, bookmarks, SMS/MMS, and the like). Others can capture/extract the .apk app installation archives. A few can backup apps, their data, and even system data—which before Android 4.0 required root permissions. Two of the powerful apps shall be mentioned here:

  • Titanium Backup is one of the best-known, most-powerful, and most recommended Backup solutions. It is able to backup apps, their data, data available via data-providers, system data, and more. And it can read (and restore) things from Nandroid and ADB backups as well. But it requires your device to be rooted.
  • Helium - App Sync and Backup (previously called Carbon) creates backups compatible with ADB backups (in fact, it is a front-end to the adb backup and adb restore commands). It can backup apps and their data, plus some other system data and stuff available via some data-providers. More to come, we hope. Helium Backup does not require root.

Related tags

Related questions on Android Enthusiasts

See also the most frequented backup questions for interesting links. Moreover, those of our tag might be of interest as well.

External resources

1243 questions
377
votes
8 answers

How to fully backup non-rooted devices?

I know I'm asking for the close-to-impossible -- as a real full-backup certainly requires root permissions. But still there are many folks around not wanting to root their devices -- afraid of voiding their warranties or bricking their devices, or…
Izzy
  • 91,536
  • 76
  • 351
  • 968
157
votes
16 answers

How do I back up Google Authenticator?

I'm starting to use Google Authenticator for more and more things now, but I've just realized that if I lose my phone, or if I need to wipe and restore it to install new firmware, I will lose all of my codes. Is there anyway to back them up please?…
Nick
  • 1,693
  • 3
  • 12
  • 11
149
votes
10 answers

How do you extract an Android app's data from a full backup made through "adb backup"?

I have been backing up my Nexus 7 with adb backup to back up all files into an encrypted backup. I see that you can restore from a backup with adb restore, but that would wipe all my existing data on the device. How exactly would I extract one…
user11553
77
votes
6 answers

How to backup an Android device?

Can anyone recommend a good way to backup Android devices? Ideally I would like to do this wirelessly and, not only backup my data, but also my user settings. Is it possible to backup an image of an Android device - so that one doesn't even need to…
ninjaPixel
  • 1,531
  • 2
  • 14
  • 22
60
votes
1 answer

What all does ADB backup and how do I restore part of it?

I am soon going to unlock bootloader and root my Nexus 5, but I didn't wanted to wipe all the data so I thought of using the ADB backup function to restore after rooting is done. adb backup [-f ] [-apk|-noapk] [-shared|-noshared] [-all]…
Akshat Mittal
  • 725
  • 1
  • 7
  • 8
53
votes
5 answers

Google Backup: Multiple devices using the same account - what happens on Restore?

It is nothing new that one can use multiple Android devices with a single Google account. Switching on a new device for the first time asks whether one wants to store one's data with Google, which then would always sync "some stuff" to the Google…
Izzy
  • 91,536
  • 76
  • 351
  • 968
53
votes
4 answers

Is there a way to look inside and modify an adb backup created file?

I created a backup of my Galaxy Nexus with adb backup. The resulting file is named backup.db and it's somehow encrypted. I wanted to restore the backup, but it stops when it comes to restoring com.android.providers.contacts. I used adb logcat to…
ingorichter
  • 633
  • 1
  • 6
  • 6
51
votes
10 answers

ADB backup creates 0-byte file; prompts for current backup password even though I never set one; "Failed to set password" for Desktop backup password

The problem: Every time I run ADB backup, I get a message near the bottom of the home screen saying Backup starting..., followed by a message saying Backup finished a few seconds later despite the fact that I'm using 17 GB of device memory, and the…
Adi Inbar
  • 1,413
  • 2
  • 11
  • 23
51
votes
5 answers

How do I backup and restore SMS Messages?

How do I backup and restore SMS Messages?
Drake
  • 2,351
  • 5
  • 26
  • 35
46
votes
2 answers

Can fastboot be used to backup device?

Many people say that fastboot can be used to flash an image on one of the partitions. Is the reverse also possible, that is to take a binary snapshot and store it as a zip file containing the exact binary representation of the partition to be backed…
humanityANDpeace
  • 807
  • 1
  • 10
  • 16
45
votes
3 answers

How do I perform a full pre-rooting backup of an Android phone?

The question arises because the best-rated backup application (Titanium Backup) requires root. So what would one use instead when getting a really complete backup is essential? Is there a file manager-type application available that enables copying…
Joerg W.
  • 551
  • 1
  • 4
  • 3
42
votes
1 answer

Google Photos Auto-Backup Exclude folder

I have Auto Backup enabled in Google Now for Photos. I also have Local Folders enabled so that photos produced by apps other than the camera get backed up too. However, this then includes photos and videos from folders that I don't want to backup. …
Paul
  • 635
  • 1
  • 5
  • 14
42
votes
5 answers

How to backup Angry Birds saves/data?

I need to reinstall my Android ROM but before I would like to backup my Angry Birds savegame/data/scores. Do you have any idea how can I do it?
Drake
  • 2,351
  • 5
  • 26
  • 35
34
votes
7 answers

Backup and restore Android Settings and Application through ADB

I would like to ask if it possible to backup and restore all Android Settings and applications through ADB. I tried: adb backup -all adb: unable to connect for backup It is not working, while all other commands are working. Is it possible to use…
glarkou
  • 451
  • 1
  • 4
  • 3
31
votes
8 answers

How do I backup data (SMS/contacts) from a device with a broken screen?

I just broke the screen of my (unrooted) Galaxy S. How do I get back my SMS and contacts? PS: I tried Kies but it won't detect my phone for some reason. (Kies works fine with another Galaxy I possess but not this one)
kn330
  • 518
  • 1
  • 5
  • 13
1
2 3
82 83