- Created DATABASE_BACKUP_SETUP.md for detailed backup instructions - Implemented backup-databases.sh for automated database backups - Added logrotate configuration for managing backup logs - Developed setup scripts for user-specific backup configurations - Included error handling and logging in backup processes - Established cron job setup for automated backups - Provided examples and troubleshooting tips in documentation
14 lines
690 B
Plaintext
14 lines
690 B
Plaintext
# Logrotate configuration for Database Backups
|
|
# This configuration is for the tilbudgivern database backup logs
|
|
|
|
/mnt/HC_Volume_103713257/tilbudgivern/logs/backups/backup.log {
|
|
daily # Rotate daily
|
|
rotate 30 # Keep 30 days of logs
|
|
compress # Compress rotated logs
|
|
delaycompress # Delay compression to next rotation
|
|
missingok # Don't error if log file is missing
|
|
notifempty # Don't rotate if empty
|
|
create 0640 alex alex # Create new log with these permissions
|
|
sharedscripts # Run scripts only once
|
|
}
|