aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xborger8
1 files changed, 5 insertions, 3 deletions
diff --git a/borger b/borger
index 1ba6389..4992bcf 100755
--- a/borger
+++ b/borger
@@ -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.