diff options
author | Olivier Mehani <shtrom@ssji.net> | 2017-05-29 03:20:55 +0200 |
---|---|---|
committer | Olivier Mehani <shtrom@ssji.net> | 2017-07-22 13:11:52 +0200 |
commit | dc63dfeba076396f0c5e0eb82db3edb6e5a4bb6e (patch) | |
tree | 01ecbf0586ad1913802710e30311f64601bdf0be | |
parent | 67d75f8be5fb70a6cef2ef3b9b8318e768ba23f1 (diff) |
[backup.sh] Force cleanup
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rwxr-xr-x | openbsd/backup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsd/backup.sh b/openbsd/backup.sh index 91bc3e8..35bd795 100755 --- a/openbsd/backup.sh +++ b/openbsd/backup.sh @@ -74,13 +74,13 @@ for DIR in ${DIRS}; do done /usr/local/bin/rdiff-backup --create-full-path ${REMOTESCHEMA:+--remote-schema "${REMOTESCHEMA}"} ${TMPSUBDIR:+--tempdir ${BACKUPDIR}${TMPSUBDIR}} ${TMPSUBDIRxxxDISABLED:+--remote-tempdir /share/homes/`hostname -s`${TMPSUBDIR}} ${EXCLS} ${DIR} ${EFFECTIVEBACKUPDIR}${DIR} done +echo "." if [ -n "${BACKUPHORIZON}" ]; then echo -n "Cleaning up backups older than ${BACKUPHORIZON} from ${EFFECTIVEBACKUPDIR}:" for DIR in ${DIRS}; do echo -n " ${DIR}" - /usr/local/bin/rdiff-backup --remove-older-than ${BACKUPHORIZON} ${REMOTESCHEMA:+--remote-schema "${REMOTESCHEMA}"} ${EFFECTIVEBACKUPDIR}${DIR} + /usr/local/bin/rdiff-backup --force --remove-older-than ${BACKUPHORIZON} ${REMOTESCHEMA:+--remote-schema "${REMOTESCHEMA}"} ${EFFECTIVEBACKUPDIR}${DIR} >/dev/null done + echo "." fi - -echo "." |