diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-09-08 15:20:48 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-09-08 15:20:48 -0300 |
commit | fcf8243e9c3286d3eb863770da92abd1c1338001 (patch) | |
tree | f48a5a9edf8e29ffb8547837dc584c9c10456e89 | |
parent | be9c94b16da2f3198b1f14206d54cecf3cad66dd (diff) | |
download | puppet-backup-fcf8243e9c3286d3eb863770da92abd1c1338001.tar.gz puppet-backup-fcf8243e9c3286d3eb863770da92abd1c1338001.tar.bz2 |
Duplicity: remove dangling lockfiles
-rw-r--r-- | templates/duplicity.conf.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/duplicity.conf.erb b/templates/duplicity.conf.erb index 6a4f68c..3f2cf9e 100644 --- a/templates/duplicity.conf.erb +++ b/templates/duplicity.conf.erb @@ -33,6 +33,12 @@ if [ "$1" == "--check" ]; then else # cleanup any previous broken backups duplicity cleanup file:///$BACKUP_FOLDER --force + + # remove dangling lockfiles + if [ -z "`pidof duplicity`" ]; then + rm /root/.cache/duplicity/*/lockfile.lock + fi + # it's important to let $EXCLUDE come before $INCLUDE to # have greater precedence; see duplicity(1) for more info duplicity -v6 --full-if-older-than $FULL_IF_OLDER_THAN \ |