Refs #8359: 8359-Backup_node_PVE - Final Script - Adding a sleep command in the for loop to prevent bugs caused by the loop running too quickly.

This commit is contained in:
Xavi Lleó 2025-01-09 09:41:41 +01:00
parent de22ad7efe
commit 82b96bcd54
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ for item in $(echo "$BACKUP_ITEMS" | tr ',' '\n'); do
echo "Backup failed for $BACKUP_NAME" | tee -a "$LOG_FILE"
exit 1
fi
sleep 5
done
if [ $? -eq 0 ]; then