borgthismachine: add some quotation marks

This commit is contained in:
layman 2021-07-08 15:52:59 +02:00
parent 369214bd45
commit d2f93cac2f
No known key found for this signature in database
GPG key ID: 92D2BF778E1308C0

View file

@ -51,12 +51,12 @@ echo "using repo: $MYREPO snapshot: $SNAPSHOT"
echo #### borg backup ####
if [[ -n "${MAC}" ]] ; then
if ! ping -c 1 $BORGHOST &> /dev/null ; then
wakeonlan $MAC
if ! ping -c 1 "$BORGHOST" &> /dev/null ; then
wakeonlan "$MAC"
#wakup may take some time
sleep 10
else
echo $BORGHOST is up
echo "$BORGHOST is up"
fi
fi
@ -65,7 +65,7 @@ fi
nice ionice -c 3 borg create --stats \
--exclude-caches \
--one-file-system \
${BORG_ARGS} \
"${BORG_ARGS[@]}" \
$([[ -n "${BORG_EXCLUDE_PATTERN[*]}" ]] && printf " --exclude \"%s\" " "${BORG_EXCLUDE_PATTERN[@]}" ) \
$([[ -n "$BORG_EXCLUDE_FILE" ]] && printf " --exclude-from \"%s\" " "${BORG_EXCLUDE_FILE}" ) \
--exclude-if-present="$BORG_EXCLUDE_IF_PRESENT" \
@ -82,8 +82,8 @@ if [[ "${APPENDONLY}" != "YES" ]] ; then
time borg list -v $MYREPO
echo RetVal = $?
else
echo "#############"
echo "You should purge the repository from time to time"
echo #############
echo You should purge the repository from time to time
fi
echo ##### borg end ######