PINE64
Backup user data and settings - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: PostmarketOS on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=124)
+---- Thread: Backup user data and settings (/showthread.php?tid=12154)



Backup user data and settings - kratz00 - 11-14-2020

Hi

As the system is changing constantly at the moment and I often update the image I am looking for a way to backup user data and settings
and restore them once the new image has booted or even before writing the image to the SD card.

E.g. how to backup and restore:

  • WiFi set up via the Posh UI
  • call logs


Thanks and regards
-kratz00


RE: Backup user data and settings - hiimtye - 11-14-2020

most user settings are stored in $HOME in hidden folders i.e. in $HOME/.config or $HOME/.share or etc

I believe networkmanager connections are stored in /etc/networkmanager/ but I could also be wrong


RE: Backup user data and settings - Lousy Fisherman - 11-14-2020

tar czf home_bak.tgz /home/<username>
sudo tar czf etc_bak.tgz /etc

tar xzf when you need them. 99% of the time works without issues, including encryption keys and passwords. The other 1% you are usually aware what the issues will be Smile

HTH
LF


RE: Backup user data and settings - kratz00 - 11-16-2020

Thanks for the feedback!

If I do not want to backup all of /etc and $HOME and need just need to identify the relevant files.
I will flash the OS to the internal eMMC and rsync the backup file to the microSD card.
After an image update I can just rsync them back and reboot.


Regards
-kratz00


RE: Backup user data and settings - kuleszdl - 02-28-2021

If you are using rsync anyways, why not fetch the files directly via rsync instead of tarring them up first?