Automatically delete old backup files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|# Use this script to automatically delete old backup files.|
|declare -i max_age|
|# Number of days to keep backup files.|
|# Location of backup files.|
|for file in $(find $backups_dir -mtime +$max_age); do|