About

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.

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

  • : part of the Android SDK, it provides above described ADB backup
  • : commandline-tool, part of Google's backup system
  • : via ClockworkMod one can create/restore Nandroid backups
  • : recovering lost data you, well, didn't backup in time
  • : See Nandroid above.
  • : this is the opposite direction: get your data back from the backups you've created
  • : an app co-operating with
  • : as described above.

Related questions on Android Enthusiasts

See also the most frequented backup questions for interesting links.

External resources

history | show excerpt | excerpt history