aboutsummaryrefslogtreecommitdiff
path: root/templates/rsync-check.sh.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/rsync-check.sh.erb')
-rw-r--r--templates/rsync-check.sh.erb12
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