1. Are you ready for the Galaxy S20? Here is everything we know so far!

How do I adb pull (backup) root directories (like "/" or "/system"?)

Discussion in 'Android Lounge' started by kwest12, Jun 28, 2017.

  1. kwest12

    kwest12 Android Enthusiast
    Thread Starter

    Hi there, I'm trying to pull root directories like /system and /data without any luck. My purpose it to have them on my PC as a backup, and be able to browse them to pull out apps and pieces of data as necessary if it ever becomes necessary.

    Device: Nexus 6P (North American version)
    ROM: Stock 6.0.1 Rooted, using Wugfresh Nexus Root Toolkit and SuperSU
    PC OS: Windows 7 PC (64 bit)

    Adb is working properly and I can easily pull non-root directories like "/sdcard" and so on. I'd like to be able to backup the entire root directory ("/") or at least the child directories (like "/system" and "/data", etc.) Unfortunately, when I try
    Code (Text):
    1. adb pull -p "/system" "C:\somewhere"
    it skips a bunch of files, so I need to come up with a better method.

    I've tried
    Code (Text):
    1. adb root
    and it tells me it's already running in root mode.

    I try
    Code (Text):
    1. adb remount
    and it does this properly, but doesn't change the effects of all the commands I've tried.

    When I run
    Code (Text):
    1. adb shell
    it enters shell and gives me # by default, so seemingly it is giving me su permission by default?

    *** Oddly, when I enter "su" while in shell, it tells me "/sbin/sh: su: not found" which seems odd to me. I think it's possibly that SuperSU is installed as systemless root, or there's something else screwy here, so I guess I'm not sure how to proceed. Still, if that were case, why would adb already be running as root, and why would shell automatically give me the #?

    Any help is appreciated!!

    Thanks!
     



    1. Download the Forums for Android™ app!


      Download

       
  2. DaisFlaque

    DaisFlaque Android Expert

    Have you tried pulling from a terminal emulator app on the device? This has worked for me on many occasions when my pc was down.
     
  3. DaisFlaque

    DaisFlaque Android Expert

Loading...
Similar Threads - adb pull backup
  1. GRVTY
    Replies:
    0
    Views:
    670
  2. watchintv
    Replies:
    2
    Views:
    993
  3. GeneralGhest
    Replies:
    24
    Views:
    1,440
  4. DerHans448
    Replies:
    2
    Views:
    672
  5. ilus4
    Replies:
    4
    Views:
    832
  6. slicendice
    Replies:
    3
    Views:
    2,582
  7. chaimtg
    Replies:
    9
    Views:
    1,667
  8. Boowho
    Replies:
    5
    Views:
    1,032
  9. Søren Tarp
    Replies:
    2
    Views:
    2,657
  10. kumaranil13k
    Replies:
    0
    Views:
    1,059

Share This Page

Loading...