diff options
-rwxr-xr-x | borger | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -154,9 +154,11 @@ function borger_create { backup_exit=$? - #if [ "$backup_exit" != "0" ]; then - # fatal "Error creating snapshot" - #fi + if [ "$backup_exit" != "0" ]; then + info "Error pruning repository" + info "Trying to break the lockfile..." + borg break-lock $BORG_REPO + fi } # Use the `prune` subcommand to maintain daily, weekly and monthly archives. |