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/rdiff-check.sh.erb | |
parent | 3bc1d3326b743b11687d78555dca4c9cfa204f52 (diff) | |
download | puppet-backup-9afb297ee9ea87061b83fa17d4195946443ed80e.tar.gz puppet-backup-9afb297ee9ea87061b83fa17d4195946443ed80e.tar.bz2 |
Changes for autoloading
Diffstat (limited to 'templates/rdiff-check.sh.erb')
-rw-r--r-- | templates/rdiff-check.sh.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/rdiff-check.sh.erb b/templates/rdiff-check.sh.erb index 947370c..ebd77f7 100644 --- a/templates/rdiff-check.sh.erb +++ b/templates/rdiff-check.sh.erb @@ -3,7 +3,7 @@ # Check rdiff backup sets. # -BACKUP_FOLDER="<%= backupdir_remote %>" +BACKUP_FOLDER="<%= scope.lookupvar('backup::params::backupdir_remote') %>" if [ -e "$BACKUP_FOLDER" ]; then cwd="`pwd`" @@ -17,12 +17,12 @@ if [ -e "$BACKUP_FOLDER" ]; then rdiff-backup --list-increment-sizes $set; - if [ -d "$set/<%= backupdir %>/duplicity" ] && [ "$1" != "--short" ]; then + if [ -d "$set/<%= scope.lookupvar('backup::params::backupdir') %>/duplicity" ] && [ "$1" != "--short" ]; then echo " " - echo "Checking duplicity backup found at $set/<%= backupdir %>/duplicity..." + echo "Checking duplicity backup found at $set/<%= scope.lookupvar('backup::params::backupdir') %>/duplicity..." echo "======================================================" echo " " - duplicity collection-status file:///$BACKUP_FOLDER/$set/<%= backupdir %>/duplicity + duplicity collection-status file:///$BACKUP_FOLDER/$set/<%= scope.lookupvar('backup::params::backupdir') %>/duplicity fi done |