aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/rsync-check.sh.erb13
1 files changed, 8 insertions, 5 deletions
diff --git a/templates/rsync-check.sh.erb b/templates/rsync-check.sh.erb
index e945b8c..879faaf 100644
--- a/templates/rsync-check.sh.erb
+++ b/templates/rsync-check.sh.erb
@@ -21,12 +21,15 @@ if [ -e "$BACKUP_FOLDER" ]; then
cat $metadata
done
+ # Check duplicity metadata
if [ -d "$set/<%= backupdir %>/duplicity" ]; then
- echo " "
- echo "Checking duplicity backup found at $set/<%= backupdir %>/duplicity..."
- echo "======================================================"
- echo " "
- duplicity collection-status file:///$BACKUP_FOLDER/$set/<%= backupdir %>/duplicity
+ for duplicity in `ls -1 $set/<%= backupdir %>/duplicity | grep -v metadata | xargs`; do
+ echo " "
+ echo "Checking duplicity backup found at $set/<%= backupdir %>/duplicity/$duplicity..."
+ echo "======================================================"
+ echo " "
+ duplicity collection-status file:///$BACKUP_FOLDER/$set/<%= backupdir %>/duplicity/$duplicity
+ done
fi
done