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

    Backup and restore (TWRP-style)

    Scheduled Pinned Locked Moved Unsolved Support
    17 Posts 5 Posters 311 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.
      • Vlad NirkyV Offline
        Vlad Nirky @Charly
        last edited by

        @Charly
        rsync is back in the latest 24.04-2.x

        1 Reply Last reply Reply Quote 1
        • Vlad NirkyV Offline
          Vlad Nirky @Charly
          last edited by Vlad Nirky

          @Charly

          rsync -rtvP --delete --modify-window=5 --delete /home/phablet/ /media/phablet/STICK/phablet/

          or

          rsync aP --delete /home/phablet/ /media/STICK/phablet

          Did this preserve the Waydroid directory and its rights?

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            Charly @Vlad Nirky
            last edited by Charly

            @Vlad-Nirky

            The first one is for fat32 fs because it has no rights.

            If you want copy the rights you need a linux file system like ext4 as target.

            If you copy to an ext4 usb stick and use rsync with sudo, all different rights should be applied correctly.

            Thanks for the info of the return of rsync.

            Will it be possible to have ext4 on the internal micro SD card in the future?

            Greetings
            Charly

            Greetings
            Charly

            UT 24.04 on Volla X23

            G 1 Reply Last reply Reply Quote 1
            • G Offline
              GooglyBear @Charly
              last edited by

              @Charly Hmm that sounds like a good question for Ubports Core, SD cards still remain immensely helpful for storage - let us know if you happen to find out more about it!

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Charly @GooglyBear
                last edited by

                @GooglyBear

                Hello,
                I'm not really well informed. When I put the micro SD card into my cell phone, only fat32 was possible as a file system. Unfortunately, that's not so good because of the lack of a rights system and the limitation to file sizes of a maximum of 4GB.

                I hope ext4 will be possible at some point.

                Best regards
                Charly

                Greetings
                Charly

                UT 24.04 on Volla X23

                G 1 Reply Last reply Reply Quote 1
                • G Offline
                  GooglyBear @Charly
                  last edited by GooglyBear

                  @Charly I see, could this be a device-specific issue? It seems to have been done before here for example: https://xdaforums.com/t/tutorial-howto-convert-your-external-sd-card-from-fat-exfat-to-ext4-3-ways.2480963/

                  Or did you mean Ubuntu Touch specifically is unable to deal with ext4-formatted SDs?

                  Vlad NirkyV 1 Reply Last reply Reply Quote 0
                  • Vlad NirkyV Offline
                    Vlad Nirky @GooglyBear
                    last edited by Vlad Nirky

                    @GooglyBear
                    Hello.
                    On my Xiaomi Redmi Note 9 Pro (24.04-2.x), I inserted a 64GB SD card formatted in ext4 by my Fedora 43 desktop.
                    The card is visible in FileManager+, I was able to add a file to it, and I imagine it would be usable for your rsync...
                    I run this one as root and it's look good
                    rsync -avh --size-only --checksum --ignore-times /home/phablet/ /media/phablet/f6466442-e8e6-46bb-b918-89996720569e/phablet-backup/

                    C 1 Reply Last reply Reply Quote 1
                    • C Offline
                      Charly @Vlad Nirky
                      last edited by

                      Hello forum,

                      I have had the micro SD card in my x23 cell phone for 3 years. I think back then only fat32 was possible. I don't know if anything has changed.

                      I will try out whether an ext4 formatted memory card is possible.

                      Best regards
                      Charly

                      Greetings
                      Charly

                      UT 24.04 on Volla X23

                      Vlad NirkyV 1 Reply Last reply Reply Quote 0
                      • Vlad NirkyV Offline
                        Vlad Nirky @Charly
                        last edited by

                        @Charly
                        Hello.
                        If I understood correctly, UT formats the SD card in FAT, but on my phone, it was able to use ext4 without any issues. Let me know if it works for you too.

                        G 1 Reply Last reply Reply Quote 1
                        • G Online
                          gpatel-fr @Vlad Nirky
                          last edited by

                          @Vlad-Nirky said in Backup and restore (TWRP-style):

                          UT formats the SD card in FAT

                          I'd think that using a command line tool it could be possible to use other formats.

                          Vlad NirkyV 1 Reply Last reply Reply Quote 0
                          • Vlad NirkyV Offline
                            Vlad Nirky @gpatel-fr
                            last edited by

                            @gpatel-fr
                            Yes, I was thinking to the SD app present in Lomiri panel.

                            G 1 Reply Last reply Reply Quote 0
                            • G Online
                              gpatel-fr @Vlad Nirky
                              last edited by

                              @Vlad-Nirky

                              looking at the 'ciborium' code, it is hardcoding only exfat at one point, when checking on dynamic insertion of a sdcard. I will not be able to do any tests on that since my phone can't accept a new sdcard without removing the battery.

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