Backup and restore (TWRP-style)
-
What do Ubuntu Touch users choose if they want a simple and reliable way to backup and restore their phone, preserving the exact state of the OS so that they can 'roll back' if necessary (eg. bricked phone)?
I haven't really seen a satisfying post about this, so I thought I might as well start the conversation: I'm happy to experiment with different tools and report my findings here as this is a very important feature to me.
-
@GooglyBear I don't know how TWRP does it.
I would do the following:- copy the entire home directory to the Downloads directory
- use a cable to transfer that copied home directory to my laptop
- if I need to restore, use the cable again to transfer it to the phone. I've not tried that part, I think.
So I'm not sure yet on how to restore but I do know how to backup. Halfway there?
-
Hello forum,
before 24.04 noble I always mounted a USB stick in my cell phone and synchronized the folder /home/phablet to the USB stick using:rsync -rtvP --delete --modify-window=5 --delete /home/phablet/ /media/phablet/STICK/phablet/
or
rsync aP --delete /home/phablet/ /media/STICK/phablet
Unfortunately this doesn't work with 24.04 because rsync has been removed from ubuntu touch.
Best regards
Charly -
I have seen one post seeming to say that it was restored in the most bleeding edge version, I can't vouch for it as I use stable, however if you install crackle you can use nix immediately and you can get the nix version of rsync (more up-to-date than the Ubuntu 24.04 version).
https://gitlab.com/tuxecure/crackle-apt/crackle
https://gitlab.com/EricHeintzmann/ubuntu-touch/xiaomi-surya/-/wikis/Install-with-crackleOnce you have crackle running, run 'crackle install rsync' and you are there
