mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-02-17 09:23:56 +00:00
Do not run spearate prune, but let the user use --prune in RESTIC_FORGET_ARGS
This commit is contained in:
11
backup.sh
11
backup.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user