Backup user data and settings
#1
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
  Reply
#2
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
  Reply
#3
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
  Reply
#4
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
  Reply
#5
If you are using rsync anyways, why not fetch the files directly via rsync instead of tarring them up first?
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Settings are reset after reboot lacriz 5 3,451 08-29-2023, 05:28 PM
Last Post: car46999
Question Always Use Mobile Data DingDangDoong 4 1,827 04-20-2023, 06:18 AM
Last Post: DingDangDoong
  The language I've added on settings doesn't appear Gon 2 1,719 08-15-2022, 01:55 PM
Last Post: Gon
  No Application Data PMOS 21.12.1 Captain1ndustry 4 3,801 08-12-2022, 07:42 AM
Last Post: Gon
  Disable mobile data auto-enable on boot 64_Tesseract 3 2,238 08-11-2022, 02:48 AM
Last Post: 64_Tesseract
  wwan0 (cellular data) ip configuration is POINTTOPOINT not BROADCAST dc2daylight 0 1,039 04-07-2022, 07:16 PM
Last Post: dc2daylight
  Calls don't work on Softbank. Cellular data & SMS work. yasmi 1 1,577 03-24-2022, 04:10 AM
Last Post: yasmi
  mobile data - always in use? someGermanGuy 13 14,968 04-03-2020, 02:32 PM
Last Post: janw

Forum Jump:


Users browsing this thread: 1 Guest(s)