diff --git a/unit-files/b-u@.service b/unit-files/b-u@.service index c8ea5923e7747e94ab855c0fd8e8acc45842cfed..d9219eb268e96fc38b1a80efa59bb1598accd401 100644 --- a/unit-files/b-u@.service +++ b/unit-files/b-u@.service @@ -17,7 +17,7 @@ ExecStartPre=/bin/bash -euxc ' \ -e PASSPHRASE \ -v /root:/root \ indiepaas/duplicity \ - remove-older-than 10D --force \ + remove-older-than 10D \ sftp://${BACKUP_DESTINATION}//data/%i' ExecStartPre=/bin/bash -euxc '/data/domains/%i/BACKUP' ExecStart=/bin/bash -euxc ' \ @@ -32,6 +32,7 @@ ExecStart=/bin/bash -euxc ' \ -v /root:/root \ -v /data/domains/%i:/backup indiepaas/duplicity \ --volsize 500 \ + --full-if-older-than 7D \ --asynchronous-upload \ --encrypt-key ${ENCRYPT_KEY} \ /backup \ diff --git a/unit-files/backup-u@.service b/unit-files/backup-u@.service index 6f399c8987812340bc7fe506efd40ecb7d91048d..afa4a565458cb8ee53a3fc56827e7f84c7ddf32b 100644 --- a/unit-files/backup-u@.service +++ b/unit-files/backup-u@.service @@ -17,7 +17,7 @@ ExecStartPre=/bin/bash -euxc ' \ -e PASSPHRASE \ -v /root:/root \ indiepaas/duplicity \ - remove-older-than 10D --force \ + remove-older-than 10D \ sftp://${BACKUP_DESTINATION}//data/%i' ExecStartPre=/bin/bash -euxc '/data/domains/%i/BACKUP' ExecStart=/bin/bash -euxc ' \ @@ -33,6 +33,7 @@ ExecStart=/bin/bash -euxc ' \ -v /root:/root \ -v /data/domains/%i:/backup indiepaas/duplicity \ --volsize 500 \ + --full-if-older-than 7D \ --asynchronous-upload \ --encrypt-key ${ENCRYPT_KEY} \ /backup \