From 632c4cc702834db0ac2f063c0a06404ea04e03a4 Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Mon, 26 May 2025 15:05:04 -0400 Subject: [PATCH] fix: Update backup scripts in crontab to correct paths and enhance logging --- .gitignore | 6 +----- crontab/crontab-backups/europa/current-crontab.backup | 5 +++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 53bd944..6e836fe 100644 --- a/.gitignore +++ b/.gitignore @@ -21,13 +21,9 @@ _book # Runtime generated files logs/ # Backup files - ignore most backups but keep current state files -crontab/crontab-backups/* -!crontab/crontab-backups/europa/ -!crontab/crontab-backups/io/ -!crontab/crontab-backups/racknerd/ crontab/crontab-backups/*/archive/ !crontab/crontab-backups/*/current-crontab.backup # Temporary files *.tmp -*.bak +*.backup diff --git a/crontab/crontab-backups/europa/current-crontab.backup b/crontab/crontab-backups/europa/current-crontab.backup index 31d80d6..eccea34 100644 --- a/crontab/crontab-backups/europa/current-crontab.backup +++ b/crontab/crontab-backups/europa/current-crontab.backup @@ -1,5 +1,6 @@ 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/plex/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 7 * * * { echo "Starting Plex backup validation"; /home/acedanger/shell/plex/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 +0 4 * * * /home/acedanger/shell/crontab/crontab-backup-system.sh backup auto --auto-cleanup 2>&1 | logger -t crontab-backup -p user.info +0 8 * * 0 { echo "Starting weekly Plex backup report generation"; /home/acedanger/shell/plex/validate-plex-backups.sh --report; echo "Weekly report generation completed with exit code: $?"; } 2>&1 | logger -t plex-report -p user.info