diff options
author | Olivier Mehani <shtrom@ssji.net> | 2017-05-29 03:20:55 +0200 |
---|---|---|
committer | Olivier Mehani <shtrom@ssji.net> | 2017-05-29 03:20:55 +0200 |
commit | 91a521f9e153a791379a24c952ef4a2004a9f46d (patch) | |
tree | 1b6fdb096b5a4f5b939db3b63bb2048f6062d6e8 | |
parent | 90b0b63645368e13c7952abced0a4c04e84858c7 (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 "." |