I use btrfs on all my linux pc’s and RPI 4’s. As such I have investigated tools like snapper and timeshift. It seems a lot of the advice out there says you only need to snapshot / and not /home.
I’ve noticed that if I install an application and something goes wrong, if I restore / to a “before” snapshot the application is gone, but there are remnants of that app installation with files in ~/.config and maybe other /home related directories.
So for me I think /home snapshots that match the / snapshots are critical. To that end I have updated /etc/snap-pac.ini to include /home snapshots.
Anyone agree with this or are there downsides to this?
First thing that comes to mind is that restoring a snapshot of home would overwrite the personal files and possible loss of some data and also the loss of any changes that have been done to the configs in the time between the taking of the snapshot and its restoration.
I would always take snapshots of /home. I think it is fairly crazy not to do so.
However, I wouldn’t restore a snapshot of /home along with a / snapshot in most cases because it may overwrite user data.
For me, snapshots of my user data are far more valuable than snapshots of /.
Personally, I would use timeline snapshots for this. There is no relationship between important data in your /home and pacman. What if you don’t install/update any packages for a week? There are probably still important changes in your /home.
I agree with you.
For me, I am using BTRFS Assistant to snapshot home.
Furthermore, just to be on the safe side I am using kopia (https://aur.archlinux.org/packages/kopia) and I configured to take snapshots of my data to an external USB drive.
So far it is doing great.
Usually when I need a snapshot I know almost immediately after a system update or application install that was a bad mistake. So I would not have updated any personal files or settings prior to the snapshot.
I’ve struggled with the external backups of snapshots. When I first built a server with btrfs it booted from an SSD and had a RAID 1 mirror that served as my home NAS, all in BTRFS. This was all on Ubuntu 22.04 and I only used btrfs cli commands in scripts to do the daily snapshots and then weekly btrfs send/receive of incremental backups of my / and /home to a subvolume on my NAS mirror.
The problem with this is that when you loose the boot SSD due hardware failure you have to install a base OS and then send/receive your external backup back to /mnt on your new SSD and then edit your UUIDs to match you new OS install prior to restoring the backup snapshots.
I’ve done this for real and it required a few shots of bourbon to steady my nerves while I did it.
It’s certainly is not as easy a clonezilla, I just want something that works as good a Snapper but had a simpler external restore to new hardware component
This is why I am using kopia.
All what I need is to just remember the name of the repo and the password.
By the way, I am using as well Resilio, where I installed it on this laptop, an old laptop (running EndeavourOS) and an old iPad. So I get my data synced real time to all Plus I can access the data from my iPhone while outside. (I know some will frown at me because it is not open source).
May I add, I am using some cloud services for some documents just in case.