Backup home for reinstall

What's better for restoring your home folder to a reinstall of bazzite


A tar backup or a clonezilla backup? And then I just cp -a everything


Which will preserve permissions better? Especially considering there are some root owned folders in my home (distrobox and waydroid)

This is how I'm thinking of formatting the tar command

sudo tar -cvpf /mnt/DATA/homefolder.tar --xattrs --acls --selinux --numeric-owner -I "zstd -3" -C /var/home .  >> tar-home log


This should backup my home folder included the linuxbrew homebrew folder


This way I keep all apps configs and files from my current bazzite install

But I'm worried because even though this tar command is supposed to mantain permissions last time I tried something like this the sudo tar broke permissions


See 🛟bazzite-helptransfer home directroy to another machine (also running bazzite KDE)
Was this page helpful?