add 3-2-1 backup pipeline: weekly PVC file copy, NFS mirror, pfsense, offsite sync
- weekly-backup.sh: mounts LVM thin snapshots ro, rsyncs files to /mnt/backup/pvc-data with --link-dest versioning (4 weeks). Also mirrors NFS backup dirs from TrueNAS, backs up pfsense (config.xml + full tar), PVE host config, and prunes >7d snapshots. - offsite-sync-backup.sh: rsync --files-from manifest to Synology (no full dir walk). Monthly full --delete sync on 1st Sunday. After=weekly-backup.service dependency. - lvm-pvc-snapshot.timer: changed to daily 03:00 (was 2x daily) - Prometheus alerts: WeeklyBackupStale, WeeklyBackupFailing, PfsenseBackupStale, OffsiteBackupSyncStale, BackupDiskFull. LVMSnapshotStale threshold 24h→48h.
This commit is contained in:
parent
09b4bad958
commit
d009f9a0f2
8 changed files with 422 additions and 2 deletions
11
scripts/weekly-backup.service
Normal file
11
scripts/weekly-backup.service
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Weekly backup: rsync NFS to sda + prune snapshots
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/weekly-backup
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=weekly-backup
|
||||
TimeoutStartSec=3600
|
||||
Loading…
Add table
Add a link
Reference in a new issue