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 ####
|
||||
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 ######
|
||||
|
|
Loading…
Add table
Reference in a new issue