diff options
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 |