Displaying 1 result from an estimated 1 matches for "keep_day1".
Did you mean:
keep_days
2018 Apr 13
1
backup-script/backup_samba4
Hi!
i am testing Louis van Belle backup script. it works quite well. Thank
you for sharing this!
https://github.com/thctlo/samba4/blob/master/backup-script/backup_samba4
but i think there is an error in the KEEP_DAYS code as the string
'\-$KEEP_DAY1\-|\-$KEEP_DAY2-'
is not interpolated so the egrep does exclude anything from rm call. So
no files older than $DAYS are kept...
# Remove any files over $DAYS days old from backup dir, keep the
$KEEP_DAY1 and $KEEP_DAY2 of the month.
if [ ${KEEP_DAYS} = "yes" ]; then
${DEBUG} &q...