User Tools

Site Tools


nndocs:btrfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

nndocs:btrfs [2025/07/15 17:41] – created naptasticnndocs:btrfs [2026/07/17 18:30] (current) – add backups information naptastic
Line 5: Line 5:
  
   btrfs property set -ts /path/to/snapshot ro (true|false)   btrfs property set -ts /path/to/snapshot ro (true|false)
 +
 +===Backups===
 +https://btrfs.wiki.kernel.org/index.php/Incremental_Backup
 +
 +  btrfs subvolume snapshot -r /mnt/snapshots/@rootfs /mnt/snapshots/$(hostname)-$(date +%Y-%m-%d)
 +
 +# WRONG: This pushes backups to the backup server. We must pull from the host
 +# to the backup server!
 +  btrfs send -p /home/BACKUP-date /home/BACKUP | \
 +    ssh root@backups.narf.rocks \
 +    btrfs receive /backup/hostname.narf.rocks-date --
 +
 +# UNTESTED
 +  btrfs receive /backup/$hostname-$date < \
 +    ssh root@$hostname \
 +    btrfs-send -p /backup/$hostname-$last_backup_date /backup/$hostname-$date
nndocs/btrfs.txt · Last modified: 2026/07/17 18:30 by naptastic