13 lines
326 B
Bash
13 lines
326 B
Bash
#!/bin/sh
|
|
|
|
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
|