# Is it enough to restore /data with ClockworkMod? (Maybe changing systems as well

I definitely don't want to restore cache files. Why would I want to restore system files as well? If I understood Izzy's answer here, as a normal user (not a system developer) all I need is to restore the /data folder, right? Should work when changing systems under it.

As I understand, Titanium Backup is also not needed when using Nandroid/ClockworkMod.

By "normal user" I mean that I'm not a developer.

• If that "normal user" didn't use his root power to modify things in /system (and it's left intact and complete, incl. the "root files"), that might be. Or not. Or partly. You need to state the conditions: Restoring to a new device? Or after a factory-reset of the same device? Or after a ROM flash? Or after the device has been returned from repair? Depending on the pre-condition, the answer might be a "yes", "no", or "maybe". // The question you refer to is just about the .apk files, by the way. It's not a complete view on the entire system :) – Izzy Mar 27 '13 at 7:12
• I'm sorry. It's too technical description for me. I don't understand much of it. – superuser Mar 27 '13 at 19:21
• In which case you'd rather stick with the "normal way" instead of developing your own "special solution". I will try to sum up something helpful to explain. – Izzy Mar 27 '13 at 19:44

As explained in my comments on the question itself: a restore is more than just the .apk files. All parts of the system need to fit together, or you might run into trouble (unstable system, things not working as expected, apps crashing, and the like). There are different approaches to backup and restore, and one should not mix them without the required experience.

## 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 partion 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 e.g. would restore 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.

You see, it would not be such a good idea.

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.