aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-06-08 17:01:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-06-08 17:01:09 -0300
commita81422ab32e2b62cb488fd9af7c15132ce9162bf (patch)
tree458764433a7ebc19fe9a48f42d19e47df91d6667
parente299532edfa2c841d309aa19788b48fa4d0a4a86 (diff)
downloadpuppet-backup-a81422ab32e2b62cb488fd9af7c15132ce9162bf.tar.gz
puppet-backup-a81422ab32e2b62cb488fd9af7c15132ce9162bf.tar.bz2
Checking duplicity backups packaged into rdiff backups
-rw-r--r--templates/rdiff-check.sh.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/rdiff-check.sh.erb b/templates/rdiff-check.sh.erb
index f79b235..229aced 100644
--- a/templates/rdiff-check.sh.erb
+++ b/templates/rdiff-check.sh.erb
@@ -12,6 +12,11 @@ if [ -e "$BACKUP_FOLDER" ]; then
for set in `find -maxdepth 2 -name 'rdiff'`; do
echo "Checking backup set $set..."
rdiff-backup --list-increment-sizes $set;
+
+ if [ -d "$set/<%= backupdir %>/duplicity" ]; then
+ echo "Checking duplicity backup found at $set/<%= backupdir %>/duplicity..."
+ duplicity collection-status file:///$BACKUP_FOLDER/$set/<%= backupdir %>/duplicity
+ fi
done
cd $cwd