diff --git a/README.md b/README.md index 69694d7..052c19e 100644 --- a/README.md +++ b/README.md @@ -49,10 +49,8 @@ some restrictions so it looks something like this: ## Verify backups borgwrapper verify -## Unlock after unclean exit - - borgwrapper unlock -## Remove .checkpoints +## Remove checkpoints +Verify that you have at least one recent complete backup before doing this! borgwrapper delete-checkpoints ## Run other borg commands diff --git a/src/borgwrapper.sh b/src/borgwrapper.sh index 27a6583..72f3144 100755 --- a/src/borgwrapper.sh +++ b/src/borgwrapper.sh @@ -15,7 +15,7 @@ OPTIONS Print version and exit. MODES - init|backup|verify|unlock|delete-checkpoints|exec + init|backup|verify|delete-checkpoints|exec EOF } @@ -104,11 +104,6 @@ borg_delete_checkpoints () { ${BORG} delete "${BORG_REPO}"::% } -borg_unlock () { - # Use if borgbackup is not shut down cleanly and complains about lock files - ${BORG} break-lock "${BORG_REPO}" -} - borg_exec () { export BORG_REPO ${BORG} "$@" @@ -262,8 +257,6 @@ mkdir -p "${LOCKDIR}" exit_verify 0 elif [[ ${MODE} == "delete-checkpoints" ]]; then borg_delete_checkpoints - elif [[ ${MODE} == "unlock" ]]; then - borg_unlock elif [[ ${MODE} == "exec" ]]; then if [[ $# -le 1 ]]; then >&2 echo "ERROR: No borg arguments given"