Backup and restore (TWRP-style)
-
@Charly said in Backup and restore (TWRP-style):
If you copy to an ext4 usb stick and use rsync with sudo, all different rights should be applied correctly.
This might help I suppose, and there's probably a way to configure
rsyncto work via cable. We'll see... -
@GooglyBear
I'll try...
Hum. No, the pull don't have access to waydroid data folder.adb pull /home/phablet/.local/share/waydroid
/home/phablet/.local/share/waydroid/: 0 files pulled, 0 skipped. -
@Vlad-Nirky Did you run
adb rootbeforehand? -
@GooglyBear
No, only the commands mentioned above.
Let's try again.
It seems that adb root is disabled by default.
You need to add a module to be able to use it.
Is that correct? -
@Vlad-Nirky Hmm, not sure. Running
adb rootfor me gives error messageadb: unable to connect for root: closed, but I can usesudoinsideadb shell: using that would probably let me get a step closer, by allowing me to copy data to an SD card for instance. The problem is my computer isn't anadbclient so I can't just use my phone as a host and runadb rooton it.Going back to the module installation, I should definitely look into that (or whatever procedure I need to enable
adb root), as it sounds better than the whole hassle of the SD card (which funnily enough is one of TWRP's limitations).[UPDATE]
I've been told by an admin of UT's Telegram group that
adb rootsimply hasn't been added to UT. This shouldn't be a problem, as utilities likersyncandscp, which are meant to work over a network, can be set up to work over for exampleUSB(or maybe even Ethernet, don't know which would be faster or in what scenario).I may test backing up and restoring a Waydroid container with SD card, SSD and PC (using
sudoon UT so that I have the priviledges to save all kinds of rights).I've been told by the same admin this works: therefore, all that's left is finding the right command for the job, so that it restores a Waydroid container to a working state (although this procdeure should be applicable to any app or user data or configuration).
-
@Vlad-Nirky What phone and version did you try it on? On Fairphone 5
24.04-1.1I can't get the SD to appear.Interestingly enough, when I have an SD card insertd on my phone and I run
dmesg | grep ciboriumI repeatedly getudisks2.go:322: Issues while processing /org/freedesktop/UDisks2/block_devices/loop6: interface org.freedesktop.UDisks2.Block not found, while when I don't have it inserted the output is empty.I can read/write to a USB I had though: I hopped onto my Pi 5 running Ubuntu 24.04 and ran these commands:
sudo umount /dev/sda sudo mkfs.ext4 /dev/sdaThis formatted the drive to
ext4, and with an adapter the drive was recognised.This is what it looks like on the GUI (the very bottom icon is the USB drive, which wouldn't show up if it weren't correctly connected (ie. in such a way to make read/write operations possible):

After performing the same formatting process on an SD card and using an external adapter, it also allowed read/write operations.
I also formatted another SD to FAT format, so UT can handle a variety of formats (probably ExFAT as well for example): it wasn't reading it before, but my other devices weren't either, so it ended up being a problem with the SD (fixable with reformatting in this case) rather than the phone.
It also works with my Samsung T7 SSD, without any need for
sudothere for whatever reason. -
@GooglyBear
I have two Xiaomi Redmi Note 9 Pro phones and I transfer files from one to the other.
For the SD card, I used the external storage app in the panel.
ext4 is usable but cannot be formatted via this app.
Without sudo,,you won't access to the waydroid folder (if you use it).