I've generally stuck to Ext4 partitions with various backup strategies over the years, after a mishap with Btrfs years ago. Recently, I've gone back to Btrfs for new builds and am now adding snapshots to my data redundancy & recovery strategy. I was using Timeshift at first, but now I am starting to use Snapper with native btrfs-tools instead, along with btrfs-assistant for GUI managemet.
I was going to write some scripts to handle snapshots for package management, but saw some existing packages to help with this. These are a list of the packages I've found with some links and copypasta. I am curious as to how y'all approach it. Do you use your own scripts, use any of these packages, know of other packages I didn't find, or something else entirely?
I'm trying to decide how I should handle it. I generally run Arch (btw) on my laptops & Debian on my desktops & servers, usually with rEFInd and just Grub for headless installs.
---
- snap-pac — Makes pacman automatically use snapper to create pre/post snapshots like openSUSE's YaST. Uses pacman hooks. [last commit: 4 years ago]
- grub-btrfs — Includes a daemon (grub-btrfsd) that can be enabled via systemctl to look for new snapshots and automatically includes them in the GRUB menu. For that daemon to work you need to install the optional dependency inotify-tools [last commit: 7 months ago]
- snap-pac-grub — Additionally updates GRUB entries for grub-btrfs after snap-pac made the snapshots. Also uses pacman hooks. [last commit: 4 months ago.]
refind-btrfs — Adds entries to rEFInd after snap-pac made the snapshots. [last commit: 11 months ago]
snp — Wraps any shell command in a snapper pre-post snapshot (e.g.
snp pacman -Syu), with better output than the native--commandoption of snapper (see #Pre/post snapshots). [last update: 2 years ago]limine-snapper-sync — Adds snapper entries to Limine boot loader after snap-pac made the snapshots. [last commit: today]
Debain/Ubuntu
- snap-apt - Based on snap-pac by Wes Barnett and apt-btrfs-snapper by xhess. [last commit: last year]
- apt-btrfs-snapper - This tool hooks into the apt install/remove/update process and creates two snapshots. One before and one after the packages have been installed/removed. [last commit: 10 years ago]
- apt-snapper - apt-snapper is a wrapper script to take snapper snapshots from package manager hooks, and annotating the snappshot with the package list differences. In theory it should not only work with apt/dpkg but also with rpm, pacman and pkg. [last commit: 9 years ago]
Suse
- Snapper handles this by default; not sure how they handle grub integration (too lazy to look rn 😅).
[link] [comments]