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

backup complete device

Scheduled Pinned Locked Moved Support
12 Posts 7 Posters 3.3k Views 3 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.
    • B Offline
      Bastos
      last edited by 27 Jul 2018, 07:04

      I want to prepare myself for the upgrade to 16.04. To make sure that I can restore my old and running daily driver in the case, that some important apps will not be compatible with 16.04 I want to backup it before upgrading.

      • Is there a tool I can use? In former times @Flohack has worked on a script inside the MDT (exept the ubports installer because this is not running on my 16.04 desktop ubuntu)
      • Can I do it manually?In that case, what folders do I have to copy for this?

      Thanks in advance.

      E 1 Reply Last reply 27 Jul 2018, 08:43 Reply Quote 0
      • E Offline
        elastic @Bastos
        last edited by 27 Jul 2018, 08:43

        @bastos flash twrp recovery (flash only recovery!) for your device and do a backup - save it on your computer or external sd and flash back to ubports recovery ... worked for me in every circumstances as twrp is hassle free and reliable ...

        1 Reply Last reply Reply Quote 1
        • B Offline
          Bastos
          last edited by 27 Jul 2018, 10:46

          Sounds complicated. Afaik there are only two folders to backup.

          A L 2 Replies Last reply 27 Jul 2018, 10:55 Reply Quote 0
          • A Offline
            advocatux @Bastos
            last edited by 27 Jul 2018, 10:55

            @bastos just backup the whole ~/home and you'll have all your data there.

            You really don't need ~.cache/ and the like, but you get the idea.

            If you want to backup the whole phone you can set it on recovery mode and adb to it and copy (pull) /data/system-data and /data/user-data

            B 1 Reply Last reply 27 Jul 2018, 11:46 Reply Quote 2
            • L Offline
              Lakotaubp @Bastos
              last edited by Lakotaubp 27 Jul 2018, 11:02

              @bastos I use a very basic copy and paste method from my device to a laptop and back again with it connected by USB cable.
              Just copy them off and paste back again. Only have a few photos, music and very few docs. So easy.
              If you wanted to save apps and their info I have no idea.
              Edit or just see above post : )

              1 Reply Last reply Reply Quote 0
              • B Offline
                Bastos @advocatux
                last edited by 27 Jul 2018, 11:46

                Thank you all for your recommendations.

                @advocatux said in backup complete device:

                If you want to backup the whole phone you can set it on recovery mode and adb to it and copy (pull) /data/system-data and /data/user-data

                This sounds exactly what I want. So it will be adb pull /data/system-data followed by adb pull /data/user-data?

                Am I right with that the data will be safed in the folder where adb has been executed?

                F 1 Reply Last reply 27 Jul 2018, 20:14 Reply Quote 0
                • T Offline
                  tera
                  last edited by tera 27 Jul 2018, 17:53

                  Just an extra 2p, Alan Pope BUDS still works fine i believe in case: https://github.com/popey/buds
                  and finally found back that one at the bottom: https://github.com/mutse/ubuntu-touch-shell πŸ™‚

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    flohack @Bastos
                    last edited by 27 Jul 2018, 20:14

                    @bastos Yes but maybe you need to create those folders and cd into them, I am not sure if adb assumes to cut off one level πŸ˜‰

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

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      Bastos
                      last edited by 7 Sept 2018, 08:02

                      Backup works great this way

                      • shut down my FP2
                      • restarted with volume up and power to recovery mode
                      • connect my FP2 via USB to my ubuntu 16.04 laptop
                      • open terminal on laptop
                      • type adb devices in laptop terminal to check if device is available
                      • cd in folder in laptop the backupt should land
                      • type adb pull /data/system-data in laptop terminal
                        --- pull has started and lasts for feeled hours to get ready---
                      • after finished type adb adb pull /data/user-data in laptop terminal
                        --- wait another hours to get that ready
                      • backup completed πŸ™‚
                      1 Reply Last reply Reply Quote 2
                      • R Offline
                        rom4nb
                        last edited by rom4nb 20 Sept 2020, 15:59

                        Hello together,

                        I want to flash LineageOS shortly on my phone and backup my UT installation to get back to UT easily.

                        I tried to use Bastos strategy to backup system-data and user-data

                        I have two questions:

                        • When I backuped system-data I got an error in the terminal: "no such file or directory" (see attached screenshot). I assume this is due to some encoding problem of the file path? So there is not everything backed up.
                          Bildschirmfoto vom 2020-09-20 17-55-54.png
                          The same happens, when I backup user-data. First, adb is copying files and everything seems fine. Then I get this error:
                          Bildschirmfoto vom 2020-09-20 18-07-36.png
                          What am I doing wrong?

                        • How is actually the procedure to restore a backup made like Bastos described above? Somehow with adb push but how do I say that adb pushes into the correct directories of the UT filesystem on the phone?

                        The other methods BUDS and the terminal message from mutse only work when UT is running on the phone, right? Is there not a conflict to be expected when I want to restore a backup and UT is running? (A backup that cannot be restored is of little use, right? πŸ˜‰ )

                        Thank you for your answer.

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          rom4nb
                          last edited by 20 Sept 2020, 17:24

                          Ok, I managed now to make a backup with the "buds" script from popey.

                          However, I don't know how I can restore the backup? On github, it says that the restore script is still on the "to do" list.

                          Can somebody help me how it would be possible to restore the tgz-file backup after reinstalling UT?

                          (there seems to be a problem with ./ preceeding all paths, see this issue on github: https://github.com/popey/buds/issues/10)

                          R 1 Reply Last reply 27 Nov 2020, 21:01 Reply Quote 0
                          • R Offline
                            rom4nb @rom4nb
                            last edited by 27 Nov 2020, 21:01

                            @rom4nb

                            Actually I solved to restore my backup.

                            Here's how I did it:

                            • install UT on new device
                            • setup SSH between Desktop and UT device (instruction e.g. here (in German): https://wiki.ubuntuusers.de/Ubuntu_Touch/Terminal/#SSH )
                            • create folder to mount UT root with ssh: mkdir ~/UPhone-Home
                            • mount UT via SSH on Desktop: sshfs phablet@IP_ADRESS_PHONE:/ /home/$USER/UPhone-Home/
                            • on Desktop: cd into directory with BUDS backup: cd ~/buds/backup/DATE/
                            • on Desktop: start restore of data with: tar -xf BACKUP.tgz -C /home/$USER/UPhone-Home/home/phablet/

                            It runs through and all data is restored in the correct path. πŸ™‚

                            E.g. when there is a file in the tgz:
                            /./Music/Track1.mp3
                            it will be correctly restored in
                            /home/phablet/Music/Track1.mp3

                            So this issue here seems not to be a problem: https://github.com/popey/buds/issues/10

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