Btrfs restore - nutthawit/alpine-dotfile GitHub Wiki

Prerequisite

Btrbk incremental snapshots to external usb

Usage

# copy snapshots from local mounted backup drive
btrfs send /mnt/btr_backup/x509fa/@.20250928T2345 | btrfs receive /mnt/btr_pool/

# move (don't remove) current root subvolume away
mv /mnt/btr_pool/@ /mnt/btr_pool/@.CURRENT

# create read-write subvolume
btrfs subvolume snapshot /mnt/btr_pool/@.20250928T2345 /mnt/btr_pool/@

Reboot a machine

See also

https://github.com/digint/btrbk?tab=readme-ov-file#restoring-backups