From 46ace6557309f85a7efeb0b877225053c5bb1552 Mon Sep 17 00:00:00 2001
From: intrigeri <intrigeri@boum.org>
Date: Mon, 10 May 2010 22:18:49 +0200
Subject: [PATCH] Added /var/cache/backupninja/duplicity to default excludes.

... for rdiff.helper, dup.helper, example.dup and example.rdiff.
---
 examples/example.dup     | 1 +
 examples/example.rdiff   | 1 +
 handlers/dup.helper.in   | 2 +-
 handlers/rdiff.helper.in | 2 +-
 4 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/examples/example.dup b/examples/example.dup
index f260d3a5..0ed5b2a8 100644
--- a/examples/example.dup
+++ b/examples/example.dup
@@ -135,6 +135,7 @@ include = /var/lib/dpkg/status-old
 
 # files to exclude from the backup
 exclude = /home/*/.gnupg
+exclude = /var/cache/backupninja/duplicity
 
 ######################################################
 ## destination section
diff --git a/examples/example.rdiff b/examples/example.rdiff
index 08e88696..5adecd8e 100644
--- a/examples/example.rdiff
+++ b/examples/example.rdiff
@@ -122,6 +122,7 @@ include = /var/lib/dpkg/status-old
 
 ## files to exclude from the backup
 exclude = /home/*/.gnupg
+exclude = /var/cache/backupninja/duplicity
 
 ######################################################
 ## destination section
diff --git a/handlers/dup.helper.in b/handlers/dup.helper.in
index ea278444..e985c5e7 100644
--- a/handlers/dup.helper.in
+++ b/handlers/dup.helper.in
@@ -552,7 +552,7 @@ dup_wizard() {
    # Global variables whose '*' shall not be expanded
    set -o noglob
    dup_default_includes="/var/spool/cron/crontabs /var/backups /etc /root /home /usr/local/*bin /var/lib/dpkg/status*"
-   dup_default_excludes="/home/*/.gnupg /home/*/.local/share/Trash /home/*/.Trash /home/*/.thumbnails /home/*/.beagle /home/*/.aMule /home/*/gtk-gnutella-downloads"
+   dup_default_excludes="/home/*/.gnupg /home/*/.local/share/Trash /home/*/.Trash /home/*/.thumbnails /home/*/.beagle /home/*/.aMule /home/*/gtk-gnutella-downloads /var/cache/backupninja/duplicity"
    set +o noglob
 
    dup_main_menu
diff --git a/handlers/rdiff.helper.in b/handlers/rdiff.helper.in
index e35d6297..b5bb8bba 100644
--- a/handlers/rdiff.helper.in
+++ b/handlers/rdiff.helper.in
@@ -415,7 +415,7 @@ rdiff_wizard() {
    # Global variables whose '*' shall not be expanded
    set -o noglob
    rdiff_includes=(/var/spool/cron/crontabs /var/backups /etc /root /home /usr/local/*bin /var/lib/dpkg/status*)
-   rdiff_excludes=(/home/*/.gnupg /home/*/.local/share/Trash /home/*/.Trash /home/*/.thumbnails /home/*/.beagle /home/*/.aMule /home/*/gtk-gnutella-downloads)
+   rdiff_excludes=(/home/*/.gnupg /home/*/.local/share/Trash /home/*/.Trash /home/*/.thumbnails /home/*/.beagle /home/*/.aMule /home/*/gtk-gnutella-downloads /var/cache/backupninja/duplicity)
    rdiff_vsincludes=
    set +o noglob
 
-- 
GitLab