PINE64
how to backup user data? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: how to backup user data? (/showthread.php?tid=18663)



how to backup user data? - Uturn - 08-30-2023

if I have installed a distro and I want to switch to semthing else, is there a good way to transfer my user data to the new system?


RE: how to backup user data? - Kevin Kofler - 08-30-2023

You can use SFTP to transfer the data from a running system, or you can backup the whole contents of the eMMC using dd (in the opposite direction you would use to flash a new image, but otherwise following the same instructions, i.e., booting the Phone with a JumpDrive microSD card and connecting it to the computer over USB) and then you can mount the contents of the image on the computer to get at the data (though it is a bit tricky because the image contains multiple partitions, unless you dd just the / partition (e.g. /dev/sdx1) to an image file rather than the whole device (e.g. /dev/sdx)).

As usual on GNU/Linux, you will mainly want to backup the contents of your home directory. Possibly also some stuff under /etc and/or /var.