mirror of
https://github.com/acedanger/shell.git
synced 2026-03-27 06:16:09 -07:00
fix(backup-log-monitor): add karakeep tag, fix health check script and dir paths
This commit is contained in:
@@ -23,7 +23,7 @@ HOSTNAME=$(hostname)
|
|||||||
mkdir -p "$LOG_DIR" "$REPORT_DIR"
|
mkdir -p "$LOG_DIR" "$REPORT_DIR"
|
||||||
|
|
||||||
# Backup service tags for monitoring
|
# Backup service tags for monitoring
|
||||||
BACKUP_TAGS=("plex-backup" "backup-move" "plex-validation" "immich-backup" "plex-report" "crontab-backup")
|
BACKUP_TAGS=("plex-backup" "backup-move" "plex-validation" "immich-backup" "plex-report" "crontab-backup" "karakeep-backup")
|
||||||
|
|
||||||
log_message() {
|
log_message() {
|
||||||
echo -e "$(date '+%H:%M:%S') $1"
|
echo -e "$(date '+%H:%M:%S') $1"
|
||||||
@@ -207,10 +207,11 @@ check_backup_health() {
|
|||||||
|
|
||||||
# Check if backup scripts exist
|
# Check if backup scripts exist
|
||||||
local backup_scripts=(
|
local backup_scripts=(
|
||||||
"/home/acedanger/shell/backup-plex.sh"
|
"/home/acedanger/shell/backup-karakeep.sh"
|
||||||
"/home/acedanger/shell/move-backups.sh"
|
"/home/acedanger/shell/backup-gitea.sh"
|
||||||
"/home/acedanger/shell/validate-plex-backups.sh"
|
"/home/acedanger/shell/backup-docker.sh"
|
||||||
"/home/acedanger/shell/crontab/crontab-backup-system.sh"
|
"/home/acedanger/shell/backup-media.sh"
|
||||||
|
"/home/acedanger/shell/backup-env-files.sh"
|
||||||
)
|
)
|
||||||
|
|
||||||
for script in "${backup_scripts[@]}"; do
|
for script in "${backup_scripts[@]}"; do
|
||||||
@@ -225,9 +226,9 @@ check_backup_health() {
|
|||||||
|
|
||||||
# Check if backup directories exist
|
# Check if backup directories exist
|
||||||
local backup_dirs=(
|
local backup_dirs=(
|
||||||
"/mnt/share/media/backups/plex"
|
"/mnt/share/media/backups/karakeep"
|
||||||
"/mnt/share/media/backups/docker-data"
|
|
||||||
"/mnt/share/media/backups/immich"
|
"/mnt/share/media/backups/immich"
|
||||||
|
"/mnt/share/media/backups/logs"
|
||||||
)
|
)
|
||||||
|
|
||||||
for dir in "${backup_dirs[@]}"; do
|
for dir in "${backup_dirs[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user