ignore warnings due to changed files
This commit is contained in:
parent
67dfcf5f7a
commit
949fefaf35
1 changed files with 10 additions and 1 deletions
|
@ -62,6 +62,7 @@ if [[ -n "${MAC}" ]] ; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set +e
|
||||||
#wordsplitting is needed for arguments
|
#wordsplitting is needed for arguments
|
||||||
#shellcheck disable=SC2046
|
#shellcheck disable=SC2046
|
||||||
nice ionice -c 3 borg create --stats \
|
nice ionice -c 3 borg create --stats \
|
||||||
|
@ -75,7 +76,15 @@ nice ionice -c 3 borg create --stats \
|
||||||
"${MYREPO}::${SNAPSHOT}" \
|
"${MYREPO}::${SNAPSHOT}" \
|
||||||
"${BORG_BACKUP_DIRS[@]}"
|
"${BORG_BACKUP_DIRS[@]}"
|
||||||
|
|
||||||
echo RetVal = $?
|
RetVal=$?
|
||||||
|
|
||||||
|
echo "RetVal = $RetVal"
|
||||||
|
|
||||||
|
if [[ $RetVal != "0" && $RetVal != "1" ]] ; then
|
||||||
|
exit "$RetVal"
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [[ "${APPENDONLY}" != "YES" ]] ; then
|
if [[ "${APPENDONLY}" != "YES" ]] ; then
|
||||||
time borg prune -v "$MYREPO" "${BORG_PRUNEARG[@]}"
|
time borg prune -v "$MYREPO" "${BORG_PRUNEARG[@]}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue