diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-08-20 11:32:52 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-08-20 11:32:52 -0300 |
commit | 9afb297ee9ea87061b83fa17d4195946443ed80e (patch) | |
tree | f3e928eb3bdc4ee272deb709a7f6c9d86c0f990a /templates/rsync-check.sh.erb | |
parent | 3bc1d3326b743b11687d78555dca4c9cfa204f52 (diff) | |
download | puppet-backup-9afb297ee9ea87061b83fa17d4195946443ed80e.tar.gz puppet-backup-9afb297ee9ea87061b83fa17d4195946443ed80e.tar.bz2 |
Changes for autoloading
Diffstat (limited to 'templates/rsync-check.sh.erb')
-rw-r--r-- | templates/rsync-check.sh.erb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/rsync-check.sh.erb b/templates/rsync-check.sh.erb index a33606d..6274238 100644 --- a/templates/rsync-check.sh.erb +++ b/templates/rsync-check.sh.erb @@ -3,7 +3,7 @@ # Check rsync backup sets. # -BACKUP_FOLDER="<%= backupdir_remote %>" +BACKUP_FOLDER="<%= scope.lookupvar('backup::params::backupdir_remote') %>" if [ -e "$BACKUP_FOLDER" ]; then cwd="`pwd`" @@ -13,7 +13,7 @@ if [ -e "$BACKUP_FOLDER" ]; then created="`find $set -name 'created' 2> /dev/null | sort`" rotated="`find $set -name 'rotated' 2> /dev/null | sort`" - if [ ! -z "$created" ] || [ -d "$set/<%= backupdir %>/duplicity" ]; then + if [ ! -z "$created" ] || [ -d "$set/<%= scope.lookupvar('backup::params::backupdir') %>/duplicity" ]; then echo " " echo "Checking backup set $set..." echo "======================================================" @@ -38,13 +38,13 @@ if [ -e "$BACKUP_FOLDER" ]; then fi # Check duplicity metadata - if [ -d "$set/<%= backupdir %>/duplicity" ] && [ "$1" != "--short" ]; then - for duplicity in `ls -1 $set/<%= backupdir %>/duplicity | grep -v metadata | xargs`; do + if [ -d "$set/<%= scope.lookupvar('backup::params::backupdir') %>/duplicity" ] && [ "$1" != "--short" ]; then + for duplicity in `ls -1 $set/<%= scope.lookupvar('backup::params::backupdir') %>/duplicity | grep -v metadata | xargs`; do echo " " - echo "Checking duplicity backup found at $set/<%= backupdir %>/duplicity/$duplicity..." + echo "Checking duplicity backup found at $set/<%= scope.lookupvar('backup::params::backupdir') %>/duplicity/$duplicity..." echo "======================================================" echo " " - duplicity collection-status file:///$BACKUP_FOLDER/$set/<%= backupdir %>/duplicity/$duplicity + duplicity collection-status file:///$BACKUP_FOLDER/$set/<%= scope.lookupvar('backup::params::backupdir') %>/duplicity/$duplicity done fi done |