UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    UT data migration to Nexus 6P

    Scheduled Pinned Locked Moved Google Nexus 6P
    4 Posts 3 Posters 475 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • C Offline
        circ
        last edited by circ

        I'm working on upgrading from an N5 to a 6P from @Flohack's recommendations here.

        Given current ADB status, I'm worried about my tar -x in a live UT on the target. Any thoughts on this flow before I break something?

        # SOURCE DEVICE (N5)
        adb root
        adb reboot recovery
        adb shell
        tar -czpv -f /system-data.tgz /data/system-data/ >/system-data.out 2>/system
        -data.er && \
        tar -czpv -f /user-data.tgz /data/user-data/ >/user-data.out 2>/user-data.er
        
        # TARGET DEVICE (N6p)
        # adb shell not possible on N6p
        # only shell is through sshd on running UT
        scp ./system-data.tgz n6:
        scp ./user-data.tgz n6:
        ssh n6 
        tar -xzv -f ./system-data.tgz # YIKES?!
        tar -xzv -f ./user-data.tgz # YIKES ?!
        
        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi @circ
          last edited by

          @circ I can't comment much on your scripts but I think user-data is enough for transferring your files. When I restore my data, I don't do the full user-data but instead just the .local, and .config and those things work fine restoring in live sesssion.

          C 1 Reply Last reply Reply Quote 1
          • C Offline
            circ @kugiigi
            last edited by

            @kugiigi said in UT data migration to Nexus 6P:

            just the .local, and .config and those things work fine restoring in live sesssion.

            thanks @kugiigi, that's good to know.

            1 Reply Last reply Reply Quote 0
            • flohackF Offline
              flohack
              last edited by

              I would recommend to tar up user-data and system-data in recovery, then adb pull that stuff, drop it into the new device and unpack it there (after removing both folders that were there to avoid merges).

              My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

              1 Reply Last reply Reply Quote 0
              • First post
                Last post