Files
tilbudgivern/infra/logrotate-backups.conf
alexpolo1 9d1b1917a7 Add comprehensive database backup setup and scripts
- 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
2025-11-16 21:12:29 +00:00

17 lines
759 B
Plaintext

# Logrotate configuration for Database Backups
# Place this file in /etc/logrotate.d/tilbudgivern-backups
/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 root root # Create new log with these permissions
postrotate
# Optional: restart service if needed
# systemctl restart mariadb > /dev/null 2>&1 || true
endscript
}