borgthismachine: add some quotation marks
This commit is contained in:
parent
369214bd45
commit
d2f93cac2f
1 changed files with 6 additions and 6 deletions
|
@ -51,12 +51,12 @@ echo "using repo: $MYREPO snapshot: $SNAPSHOT"
|
||||||
|
|
||||||
echo #### borg backup ####
|
echo #### borg backup ####
|
||||||
if [[ -n "${MAC}" ]] ; then
|
if [[ -n "${MAC}" ]] ; then
|
||||||
if ! ping -c 1 $BORGHOST &> /dev/null ; then
|
if ! ping -c 1 "$BORGHOST" &> /dev/null ; then
|
||||||
wakeonlan $MAC
|
wakeonlan "$MAC"
|
||||||
#wakup may take some time
|
#wakup may take some time
|
||||||
sleep 10
|
sleep 10
|
||||||
else
|
else
|
||||||
echo $BORGHOST is up
|
echo "$BORGHOST is up"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ fi
|
||||||
nice ionice -c 3 borg create --stats \
|
nice ionice -c 3 borg create --stats \
|
||||||
--exclude-caches \
|
--exclude-caches \
|
||||||
--one-file-system \
|
--one-file-system \
|
||||||
${BORG_ARGS} \
|
"${BORG_ARGS[@]}" \
|
||||||
$([[ -n "${BORG_EXCLUDE_PATTERN[*]}" ]] && printf " --exclude \"%s\" " "${BORG_EXCLUDE_PATTERN[@]}" ) \
|
$([[ -n "${BORG_EXCLUDE_PATTERN[*]}" ]] && printf " --exclude \"%s\" " "${BORG_EXCLUDE_PATTERN[@]}" ) \
|
||||||
$([[ -n "$BORG_EXCLUDE_FILE" ]] && printf " --exclude-from \"%s\" " "${BORG_EXCLUDE_FILE}" ) \
|
$([[ -n "$BORG_EXCLUDE_FILE" ]] && printf " --exclude-from \"%s\" " "${BORG_EXCLUDE_FILE}" ) \
|
||||||
--exclude-if-present="$BORG_EXCLUDE_IF_PRESENT" \
|
--exclude-if-present="$BORG_EXCLUDE_IF_PRESENT" \
|
||||||
|
@ -82,8 +82,8 @@ if [[ "${APPENDONLY}" != "YES" ]] ; then
|
||||||
time borg list -v $MYREPO
|
time borg list -v $MYREPO
|
||||||
echo RetVal = $?
|
echo RetVal = $?
|
||||||
else
|
else
|
||||||
echo "#############"
|
echo #############
|
||||||
echo "You should purge the repository from time to time"
|
echo You should purge the repository from time to time
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ##### borg end ######
|
echo ##### borg end ######
|
||||||
|
|
Loading…
Add table
Reference in a new issue