2024-04-15 09:26:23 +02:00
|
|
|
#!/bin/bash
|
2024-03-23 21:20:10 +01:00
|
|
|
|
2021-05-26 07:36:55 +02:00
|
|
|
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
|