aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-04 14:44:43 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-04 14:44:43 -0200
commit7cc3de4e33a9d17c5a52d38adae3bff9b09c4d54 (patch)
tree1aa67d57c15a60cc77de78058deafabea4897fc9 /templates
parent964c31e3e7f89e9dd23274893c277f4762fb7971 (diff)
downloadpuppet-backup-7cc3de4e33a9d17c5a52d38adae3bff9b09c4d54.tar.gz
puppet-backup-7cc3de4e33a9d17c5a52d38adae3bff9b09c4d54.tar.bz2
Excluding $backupdir/restore from backups; adding short mode for rsync and rdiff checks
Diffstat (limited to 'templates')
-rw-r--r--templates/rdiff-check.sh.erb2
-rw-r--r--templates/rsync-check.sh.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/rdiff-check.sh.erb b/templates/rdiff-check.sh.erb
index a2052ff..947370c 100644
--- a/templates/rdiff-check.sh.erb
+++ b/templates/rdiff-check.sh.erb
@@ -17,7 +17,7 @@ if [ -e "$BACKUP_FOLDER" ]; then
rdiff-backup --list-increment-sizes $set;
- if [ -d "$set/<%= backupdir %>/duplicity" ]; then
+ if [ -d "$set/<%= backupdir %>/duplicity" ] && [ "$1" != "--short" ]; then
echo " "
echo "Checking duplicity backup found at $set/<%= backupdir %>/duplicity..."
echo "======================================================"
diff --git a/templates/rsync-check.sh.erb b/templates/rsync-check.sh.erb
index 07eb42d..a33606d 100644
--- a/templates/rsync-check.sh.erb
+++ b/templates/rsync-check.sh.erb
@@ -38,7 +38,7 @@ if [ -e "$BACKUP_FOLDER" ]; then
fi
# Check duplicity metadata
- if [ -d "$set/<%= backupdir %>/duplicity" ]; then
+ if [ -d "$set/<%= backupdir %>/duplicity" ] && [ "$1" != "--short" ]; then
for duplicity in `ls -1 $set/<%= backupdir %>/duplicity | grep -v metadata | xargs`; do
echo " "
echo "Checking duplicity backup found at $set/<%= backupdir %>/duplicity/$duplicity..."