Merge "borg-backup-server: wait for lock in verify"

This commit is contained in:
Zuul 2021-10-12 20:11:07 +00:00 committed by Gerrit Code Review
commit cced838bf0

View File

@ -12,7 +12,7 @@ for u in borg-*; do
sudo BORG_RELOCATED_REPO_ACCESS_IS_OK=y BORG_REPO=${BORG_REPO} -u ${u} -s <<'EOF'
echo "$(date) Verifying ${BORG_REPO} ..."
/opt/borg/bin/borg check --verify-data
/opt/borg/bin/borg check --lock-wait=3600 --verify-data
if [[ $? -ne 0 ]]; then
echo "$(date) *** Verification failed"
echo "Inconsistency found in backup ${BORG_REPO} on $(hostname) at $(date)" |