From 06899cb798d35a7bc9205a32a0e50f8623071ed8 Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Mon, 9 Nov 2015 10:09:34 +0000
Subject: [PATCH] Fix some backup issues

---
 unit-files/b-u@.service      | 3 ++-
 unit-files/backup-u@.service | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/unit-files/b-u@.service b/unit-files/b-u@.service
index c8ea592..d9219eb 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 6f399c8..afa4a56 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 \
-- 
GitLab