45

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 the whole file system on the phone somewhere (to SD-card, online or wirelessly - doesn't matter which?)

(Samsung Galaxy S9000)

Izzy
  • 91,166
  • 73
  • 343
  • 943
Joerg W.
  • 551
  • 1
  • 4
  • 3

3 Answers3

9

As far as I know, you can only make a full/complete backup of the phone with root. Because you need root in order to run Titanium Backup (which only backs up apps and their data) or you need root in order to flash ClockWork Recovery which lets you perform a Nandroid backup (full image backup of the entire device).

Bryan Denny
  • 21,906
  • 20
  • 78
  • 98
  • 3
    Can you not backup anything? Apps? Data? Nothing can be backed up before rooting? If you screw up rooting are you completely ruined? – Alex B Feb 05 '11 at 17:33
  • 2
    @AlexB That's the thing. You can't do a full backup without root. Your contacts, email, calendar, etc. are synced to the cloud. You can use SMS Backup to backup your texts. Market will auto download your apps. Your pictures are on the SD card. But if you just want to pull everything off the /system /data, you need admin access (root). – Bryan Denny Feb 05 '11 at 17:41
  • 2
    Context to the comment above: whatever is in /system and /data isnt that (subjective, ofcourse) important. It's only stuff like wireless access points, your accounts, and so on. Mails and contacts should be in the cloud. Apps that save stuff to /sdcard (TitaniumBackup is one) will come right back after a clean install because /sdcard is not wiped in a factory reset, only the system partitions. So yeah, bite the bullet and get root now so you can get full backups in the future. – pzkpfw Sep 28 '12 at 10:18
  • you don't need root to flash CWM. – jiggunjer Jan 29 '16 at 12:32
9

You need root for a full backup because the system partition (among other areas) cannot be accessed with user permissions.

adb shell will allow you to browse /system/ though not /system/app/ and other areas. adb pull will let you pull /system/app/ though other files will fail with permissions errors.

Backing that up is essentially useless without root, however, because you can't restore the files! /system/ is read-only and cannot be remounted as RW without root.

Matthew Read
  • 50,567
  • 30
  • 145
  • 273
  • In my not-rooted phone I was able to pull (through adb) all the system folder. What I wasn't able to pull was data folder. – Diego Aug 30 '11 at 16:27
  • @Diego I just tried it with mixed results, I'll update my answer. – Matthew Read Aug 30 '11 at 19:34
  • @MatthewRead what about CWM and its Nandroid backup? Some state CWM can be installed/flashed on non-rooted phones, as long as the bootloader isn't locked. Any experience with that? – Izzy Aug 25 '12 at 17:30
  • I can confirm adb pull doesn't work with system. Even on a rooted phone, probably because the adb daemon can not run as root. I will try again after changing permissions as root. – jiggunjer Jan 29 '16 at 12:13
  • @jiggunjer Yeah, I think it will depend both on your ROM and version of Android. Some manufacturers seem a little more lax. I think the end conclusion holds regardless though :) – Matthew Read Jan 29 '16 at 22:41
5

If you're running 4.0 or above you can use adb backup. Follow the instructions here.
After you're rooted, Titanium Backup Pro can restore the data that you need from that file.

  • 1
    It's extremely important to note that you must run adb backup with the --nosystem flag (or similar), because otherwise it will try to backup /system and it will fail. It won't be a complete backup without root, period. – pzkpfw Sep 28 '12 at 10:21
  • @bigbadonk420 It doesn't say so in Ryan's answer that I've linked. Why does it fail? (Also why would you want to back up /system?) –  Sep 28 '12 at 10:38
  • 1
    See http://android.stackexchange.com/questions/29635/how-do-i-know-when-adb-backup-is-finished/29855#29855 - as for your question why you would want to back up system, I'm a bit confused. There's some pretty obvious reasons why you would want to. – pzkpfw Sep 28 '12 at 11:00
  • Obviously it's not so obvious as I don't get it. If you're rooting you probably don't want to restore that and factory images are available on forums. Also your comment would be more useful here as that's where the actual instructions are. It's not a good idea to have tiny bits of information spread around. –  Sep 28 '12 at 12:43
  • Look up what stuff is actually stored on /system and then you'll see why it's obvious that some people in some situations might want to keep it. Wifi keys, to name one thing. – pzkpfw Sep 28 '12 at 12:55
  • WiFi keys? You're the one who should look at it. System is mounted read-only. –  Sep 28 '12 at 13:08
  • So where do you propose Wifi keys are stored? Also, it being mounted read-only is irrelevant in regard to backing up without root, it still wont work. – pzkpfw Sep 28 '12 at 13:12
  • 1
    If I'm not mistaken it's stored in /data/misc/wifi/wpa_supplicant.conf. I'm sure about the filename, but not about the path as I don't have a phone with me. But it's definitely on /data

    You're right that system being mounted as ro is irrelevant for backup not so for adding information during run time.

    –  Sep 28 '12 at 13:21
  • So, can you backup /data without root? Because if not, I don't see what you're on about. If you can, great, but if you want a nandroid backup you still want /system for it to be a complete backup, so tl;dr no complete backup without root. – pzkpfw Sep 28 '12 at 13:23
  • YES YOU CAN!!! Have you actually read the answer that I've linked to? I didn't mention nandroid anywhere at all. System is totally irrelevant as it doesn't contain any user data. The question was for data that you can back up with TB, and that doesn't include system. –  Sep 28 '12 at 13:29
  • God you're obnoxious. No, the question was about not using TB. – pzkpfw Sep 29 '12 at 12:02
  • Thank you for name calling. The question ask for something because TB requires root. –  Sep 29 '12 at 14:51
  • Richard, I think the question was asking how to "perform a full" and "complete backup", of "the whole filesystem". I do not think that your link provides such an answer. – Sepero Nov 18 '12 at 10:07
  • @Sepero ADB backup allows you to back up all your data. –  Nov 18 '12 at 10:23
  • I think you meant to say, "ADB backup allows you to back up only your data". But yes, you can back up all of the data too. I don't know what would prevent you from downloading one portion of data and allow another portion. It would seem an odd point to make. I just think it's just too bad adb backup can't "perform a full" and "complete backup", which would include the /system. – Sepero Nov 18 '12 at 10:41