From 17466eb108fc5142ead2429f3a524a5e77bcbcc3 Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Mon, 26 May 2025 12:31:45 -0400 Subject: [PATCH] feat: Add crontab backup entries for Plex and Immich backups --- crontab-backups/europa/current-crontab.backup | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 crontab-backups/europa/current-crontab.backup diff --git a/crontab-backups/europa/current-crontab.backup b/crontab-backups/europa/current-crontab.backup new file mode 100644 index 0000000..2fd2558 --- /dev/null +++ b/crontab-backups/europa/current-crontab.backup @@ -0,0 +1,5 @@ +0 1 * * * /home/acedanger/shell/move-backups.sh 2>&1 | logger -t backup-move -p user.info +15 4 * * * { echo "Starting Plex backup"; /home/acedanger/shell/backup-plex.sh --non-interactive --auto-repair; echo "Plex backup completed with exit code: $?"; } 2>&1 | logger -t plex-backup -p user.info +0 7 * * * { echo "Starting Plex backup validation"; /home/acedanger/shell/validate-plex-backups.sh --fix; echo "Validation completed with exit code: $?"; } 2>&1 | logger -t plex-validation -p user.info +0 5 * * 1 { echo "Starting Immich database backup move"; if mv /mnt/share/media/immich/uploads/backups/immich-db-backup* /mnt/share/media/backups/immich 2>/dev/null; then echo "Immich backup move completed successfully"; else echo "No Immich backup files found or move failed"; fi; } 2>&1 | logger -t immich-backup -p user.info +0 8 * * 0 { echo "Starting weekly Plex backup report generation"; /home/acedanger/shell/validate-plex-backups.sh --report; echo "Weekly report generation completed with exit code: $?"; } 2>&1 | logger -t plex-report -p user.info