From ca5039f8aaaafb0f041fa13120ef3174a35c24a4 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Mon, 13 Apr 2026 18:24:38 +0000 Subject: [PATCH] =?UTF-8?q?switch=20backup=20+=20offsite=20sync=20from=20w?= =?UTF-8?q?eekly=20to=20daily=20=E2=80=94=20RPO=207d=20=E2=86=92=201d=20[c?= =?UTF-8?q?i=20skip]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - weekly-backup.timer: Sun 05:00 → daily 05:00 - offsite-sync-backup.timer: Sun 08:00 → daily 06:00 - Monthly full rsync --delete unchanged (1st-7th of month) - Total daily I/O cost: ~20GB sdc reads, ~3.5GB sda writes, seconds of network - Updated script headers and service descriptions Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/offsite-sync-backup.service | 2 +- scripts/offsite-sync-backup.sh | 2 +- scripts/offsite-sync-backup.timer | 4 ++-- scripts/weekly-backup.service | 2 +- scripts/weekly-backup.sh | 4 ++-- scripts/weekly-backup.timer | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/offsite-sync-backup.service b/scripts/offsite-sync-backup.service index 41c63edc..e795ba92 100644 --- a/scripts/offsite-sync-backup.service +++ b/scripts/offsite-sync-backup.service @@ -1,5 +1,5 @@ [Unit] -Description=Weekly offsite sync: rsync /mnt/backup to Synology NAS +Description=Daily offsite sync: sda + NFS changes to Synology After=network-online.target weekly-backup.service [Service] diff --git a/scripts/offsite-sync-backup.sh b/scripts/offsite-sync-backup.sh index 9095ad13..727ba806 100644 --- a/scripts/offsite-sync-backup.sh +++ b/scripts/offsite-sync-backup.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # offsite-sync-backup — Sync backups to Synology NAS # Deploy to PVE host at /usr/local/bin/offsite-sync-backup -# Schedule: Weekly Sunday 08:00 via systemd timer (After=weekly-backup.service) +# Schedule: Daily 06:00 via systemd timer (After=weekly-backup.service) # # Two sync paths: # Step 1: sda (/mnt/backup) → Synology pve-backup/ (PVC snapshots, pfsense, pve-config, sqlite) diff --git a/scripts/offsite-sync-backup.timer b/scripts/offsite-sync-backup.timer index bcb72813..f0d76838 100644 --- a/scripts/offsite-sync-backup.timer +++ b/scripts/offsite-sync-backup.timer @@ -1,8 +1,8 @@ [Unit] -Description=Weekly offsite sync: rsync /mnt/backup to Synology NAS +Description=Daily offsite sync: sda + NFS changes to Synology [Timer] -OnCalendar=Sun *-*-* 08:00:00 +OnCalendar=*-*-* 06:00:00 Persistent=true RandomizedDelaySec=300 diff --git a/scripts/weekly-backup.service b/scripts/weekly-backup.service index 3fac8346..3321d2c6 100644 --- a/scripts/weekly-backup.service +++ b/scripts/weekly-backup.service @@ -1,5 +1,5 @@ [Unit] -Description=Weekly backup: rsync NFS to sda + prune snapshots +Description=Daily backup: PVC snapshots + SQLite + pfsense to sda After=network-online.target [Service] diff --git a/scripts/weekly-backup.sh b/scripts/weekly-backup.sh index 09580a09..0a324c1d 100644 --- a/scripts/weekly-backup.sh +++ b/scripts/weekly-backup.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -# weekly-backup — 3-2-1 backup: NFS mirror + PVC file copy + pfsense + PVE config +# weekly-backup — 3-2-1 backup: PVC file copy + SQLite + pfsense + PVE config to sda # Deploy to PVE host at /usr/local/bin/weekly-backup -# Schedule: Weekly Sunday 05:00 via systemd timer +# Schedule: Daily 05:00 via systemd timer set -euo pipefail # --- Configuration --- diff --git a/scripts/weekly-backup.timer b/scripts/weekly-backup.timer index 3b69cdc5..26ae6b93 100644 --- a/scripts/weekly-backup.timer +++ b/scripts/weekly-backup.timer @@ -1,8 +1,8 @@ [Unit] -Description=Weekly backup: rsync NFS to sda + prune snapshots +Description=Daily backup: PVC snapshots + SQLite + pfsense to sda [Timer] -OnCalendar=Sun *-*-* 05:00:00 +OnCalendar=*-*-* 05:00:00 Persistent=true RandomizedDelaySec=300