Konfiguriere Backup
This commit is contained in:
parent
fa35d7fa68
commit
2c4b2463c4
4 changed files with 30 additions and 0 deletions
11
files/automysqlbackup_post_script
Normal file
11
files/automysqlbackup_post_script
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue