diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-08-18 17:48:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-08-18 17:48:55 -0300 |
commit | d594b983a70576a3525956686dce2c46f9a2593d (patch) | |
tree | 646acf8557cd3b80626b7071283741fc65c73100 /templates | |
parent | 4d51b9d64d2449179b4d761c564836eb773d9f03 (diff) | |
download | puppet-backup-d594b983a70576a3525956686dce2c46f9a2593d.tar.gz puppet-backup-d594b983a70576a3525956686dce2c46f9a2593d.tar.bz2 |
Fixing rsync-check
Diffstat (limited to 'templates')
-rw-r--r-- | templates/rsync-check.sh.erb | 13 |
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 |