Merge "borg-backup-server: wait for lock in verify"
This commit is contained in:
commit
cced838bf0
@ -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)" |
|
||||
|
Loading…
x
Reference in New Issue
Block a user