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

    Cannot migrate data to a new device

    Scheduled Pinned Locked Moved Support
    10 Posts 4 Posters 1.2k Views 1 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.
    • J Offline
      jaytee
      last edited by jaytee

      Re: Migrate data from device to device

      Hi all,

      I have a nexus 5 running ubuntu touch 16.04 with some hardware issues (cracked screen and broken headphone jack). I have another nexus 5 in better shape, on which I have successfully installed the same operating system. But I have not been able to migrate my contacts/text message history.

      I have tried two methods (detailed below), to no avail. In both cases the new phone, after a reboot does not find the history data. I can check with adb shell that the /home/phablet/.local/share/history-service/history.sqlite (this is where call and text history are stored, no?) has been migrated. But for some reason it is not being read by the new phone.

      Any advice would be greatly appreciated. Many thanks.

      == Method 1 ==:

      (on old phone)
      adb pull /home/phablet/ $HOME/Backup/

      (on new phone)
      adb push $HOME/Backup/phablet /home/

      == Method 2 ==:

      (on old phone)

      adb root recovery
      adb shell
      # tar -czpv -f /system-data.tgz /data/system-data/ >/system-data.out 2>/system-data.err 
      # tar -czpv -f /user-data.tgz /data/user-data/ --exclude='*data/user-data/phablet/.cache*' >/user-data.out 2>/user-data.err
      # exit
      adb pull /system-data.tgz  $HOME/Backup/
      adb pull /user-data.tgz  $HOME/Backup/
      

      (on new phone)

      adb root recovery
      adb push $HOME/Backup/system-data.tgz /
      adb push $HOME/Backup/user-data.tgz /
      adb shell
      # tar -xzv -f /system-data.tgz
      # tar -xzv -f /user-data.tgz
      # exit
      
      1 Reply Last reply Reply Quote 1
      • KenedaK Offline
        Keneda
        last edited by Keneda

        Method 3 (if you only want to backup contact and MMS/SMS)

        With file manager go to .local\share\evolution and here copy adressbook folder to your document folder, then go to .local\share\ and copy history-service to your document folder.

        Then acces your device via usb with your PC and backup document folder.

        Then do the opposite with your new device.

        2015-2023 : Meizu MX4 ☠️⚰️✝️
        2023-2024 : Nexus 5 ☠️⚰️✝️
        2024-***** : FPOS Fairphone 5
        🇲🇫🇬🇧

        1 Reply Last reply Reply Quote -1
        • J Offline
          jaytee
          last edited by

          Many thanks!

          I can confirm that option 3 successfully (and quickly!) transferred contacts and SMS history to the new phone. Seems trivial to also migrate music, photos, and files. I'm not too worried about apps or settings. So I am good!

          Not urgent, but I am confused as to why the other, heavy-handed, routes failed. Did they not transfer these folders? Was I sending them to the wrong path?

          KenedaK 1 Reply Last reply Reply Quote 0
          • KenedaK Offline
            Keneda @jaytee
            last edited by

            @jaytee said in Cannot migrate data to a new device:

            Not urgent, but I am confused as to why the other, heavy-handed, routes failed. Did they not transfer these folders? Was I sending them to the wrong path?

            Don't know, never used this way, i'm on windows (don't smack me lol).

            2015-2023 : Meizu MX4 ☠️⚰️✝️
            2023-2024 : Nexus 5 ☠️⚰️✝️
            2024-***** : FPOS Fairphone 5
            🇲🇫🇬🇧

            1 Reply Last reply Reply Quote 0
            • J Offline
              jaytee
              last edited by jaytee

              If anyone else has this issue, I think the adb push $HOME/Backup/phablet /home/ hit an error on a read-only folder and stopped before it hit those two crucial files.

              KenedaK AppLeeA 2 Replies Last reply Reply Quote 1
              • KenedaK Offline
                Keneda @jaytee
                last edited by

                @jaytee said in Cannot migrate data to a new device:

                If anyone else has this issue, I think the adb push $HOME/Backup/phablet /home/ hit an error on a read-only folder and stopped before it hit those two crucial files.

                I think you have to be in dev mode to have access to those files.

                2015-2023 : Meizu MX4 ☠️⚰️✝️
                2023-2024 : Nexus 5 ☠️⚰️✝️
                2024-***** : FPOS Fairphone 5
                🇲🇫🇬🇧

                KenedaK 1 Reply Last reply Reply Quote 0
                • KenedaK Offline
                  Keneda @Keneda
                  last edited by Keneda

                  See this topic too https://forums.ubports.com/topic/1498/backup-complete-device/4?_=1586824247414
                  And other topics related to "adb pull /data/system-data" and "adb pull /data/user-data" .

                  2015-2023 : Meizu MX4 ☠️⚰️✝️
                  2023-2024 : Nexus 5 ☠️⚰️✝️
                  2024-***** : FPOS Fairphone 5
                  🇲🇫🇬🇧

                  1 Reply Last reply Reply Quote 0
                  • AppLeeA Offline
                    AppLee @jaytee
                    last edited by

                    @jaytee
                    Well yes, the rootfs is read only.
                    Basically you only have access to /home/phablet/

                    Your method might have worked for user-data and if pushed to the phablet's home directory.
                    You cannot write to / (without messing with the system at least)

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jaytee
                      last edited by

                      @AppLee @Keneda Many thanks - very helpful!

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        DwayneDib
                        last edited by

                        Yep..that does indeed work.Many thanks indeed.It'll also be useful now to know where messages/contacts etc are stored so I can run a regular backup to my home server.My Nexus 5 has just died but I bought another identical one as it was so good.All my history and messages have transferred across with no problems

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post