Commit 762a8006108a
Changed files (1)
systems
aion
systems/aion/extra.nix
@@ -189,9 +189,39 @@ in
};
};
- # Restic backup to aix (off-site backup)
+ # Restic backup to aix (off-site backup) - daily for org and documents
+ restic.backups.aix-daily = {
+ user = "vincent";
+ repository = "sftp:vincent@aix.sbr.pm:/data/backup/restic/aion";
+ passwordFile = config.age.secrets."restic-aix-password".path;
+
+ paths = [
+ "/home/vincent/desktop/org" # Org files (<1GB)
+ "/neo/documents" # Personal docs rsynced from rhea (~113GB)
+ ];
+
+ # Daily backup for frequently changing org files
+ timerConfig = {
+ OnCalendar = "daily";
+ Persistent = true;
+ RandomizedDelaySec = "30m";
+ };
+
+ pruneOpts = [
+ "--keep-daily 14" # Last 2 weeks
+ "--keep-weekly 8" # Last 2 months
+ "--keep-monthly 12" # Last year
+ ];
+
+ extraBackupArgs = [
+ "--exclude-caches"
+ "--exclude='.sync-conflict-*'"
+ "--verbose"
+ ];
+ };
+
+ # Restic backup to aix (off-site backup) - weekly for large datasets
# Note: Photos are already rsync'd to aix daily via aix's pull job
- # This backup focuses on critical versioned data only
restic.backups.aix-critical = {
user = "vincent";
repository = "sftp:vincent@aix.sbr.pm:/data/backup/restic/aion";
@@ -201,8 +231,6 @@ in
paths = [
"/neo/pictures/photos/backups" # Immich database dumps only (~100MB, versioned)
- "/home/vincent/desktop/org" # Org files (<1GB)
- "/neo/documents" # Personal docs rsynced from rhea (~113GB)
"/var/lib/lidarr" # Lidarr database and config (~4.6GB)
"/var/lib/audiobookshelf" # Audiobookshelf database and config (~30MB)
];