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:
parent
de22ad7efe
commit
82b96bcd54
|
@ -135,6 +135,7 @@ for item in $(echo "$BACKUP_ITEMS" | tr ',' '\n'); do
|
||||||
echo "Backup failed for $BACKUP_NAME" | tee -a "$LOG_FILE"
|
echo "Backup failed for $BACKUP_NAME" | tee -a "$LOG_FILE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue