Do not run spearate prune, but let the user use --prune in RESTIC_FORGET_ARGS

This commit is contained in:
lobaro-demo
2017-04-03 13:21:57 +00:00
parent 0490f182d5
commit 8ba9fb4a8f
2 changed files with 1 additions and 12 deletions

View File

@@ -38,17 +38,6 @@ if [ -n "${RESTIC_FORGET_ARGS}" ]; then
logLast "Finished forget at $(date)"
if [[ $rc == 0 ]]; then
echo "Forget Successfull"
echo "Prune obsolete data"
restic prune >> ${lastLogfile} 2>&1
rc=$?
logLast "Finished prune at $(date)"
if [[ $rc == 0 ]]; then
echo "Prune Successfull"
else
echo "Prune Failed with Status ${rc}"
restic unlock
copyErrorLog
fi
else
echo "Forget Failed with Status ${rc}"
restic unlock