feat: Add log_status function to improve logging in backup script

This commit is contained in:
Peter Wood
2025-12-13 18:49:50 -05:00
parent 7cbd2779a5
commit bb704385fc

View File

@@ -231,6 +231,11 @@ LOG_FILE="${LOG_DIR}/immich-backup.log"
log_message() {
echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" | tee -a "$LOG_FILE"
}
# Function to log status (wrapper for log_message)
log_status() {
log_message "$1"
}
# Create backup directory if it doesn't exist
BACKUP_DIR="$(dirname "$0")/../immich_backups"
mkdir -p "$BACKUP_DIR"