Konfiguriere Backup

This commit is contained in:
phil 2021-05-26 07:36:55 +02:00
parent fa35d7fa68
commit 2c4b2463c4
4 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,11 @@
source /etc/default/automysqlbackup
# available variables:
# strings, i.e. character sequences
echo "$BACKUPDIR"
[ -z "$BACKUPDIR" ] && echo >&2 "Invalid / unknown BACKUPDIR" && exit 1
# Loeschen der alten Backups
find "${BACKUPDIR}/monthly" "${BACKUPDIR}/weekly" "${BACKUPDIR}/daily" -type f -mtime +5 -delete