Snapshot backup host, prune and compact system backups #216
Loading…
Reference in a new issue
No description provided.
Delete branch "backup-snapshots"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Backup clients keep full borg access and now prune (
within=14d, weekly=4, monthly=6, yearly=-1, as lindbergdata-local) and compact after each backup. As a layer the clients can't reach, the backup host keeps weekly read-only snapper snapshots of the backup root for 31 days.PeriodicJobNotSucceedednow compares the last success with the job timer's gap between its last and next trigger (+6h) instead of a fixed 30h. Prometheus retention is raised to 31d to back the lookback.Migration on cyprianspitz (before deploy)
These commands produce the same layout disko creates (
/backupand/backup/.snapshotsas plainbtrfs subvolume createbelow the top-level volume). Run them while no client backup is running (clients start at 07:06):After deploy, tmpfiles sets
.snapshotsto0750 root:root.Checklist
btrfs subvolume list /mnt/datashowsbackupandbackup/.snapshotssystemctl list-timers snapper-timelineshows the next run; after it,snapper -c backup listshows a snapshot andbtrfs property get -ts /mnt/data/backup/.snapshots/<n>/snapshot roisro=trueborgbackup-job-system-*runs succeed with prune + compactsystemd_job_next_execution_gap_secondsis visible in Prometheus for all periodic jobs, and no spuriousPeriodicJobNotSucceededfiresb4eb8b1d53ff96fb342aView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.