Add comment
This commit is contained in:
parent
25ea57ea38
commit
211891c648
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
SLEEP_TIME=${SLEEP_TIME:-1h}
|
||||
|
||||
log_message() {
|
||||
|
|
@ -16,5 +15,7 @@ echo "Starting schedule script at `date`" | log_message
|
|||
while true; do
|
||||
exec /src/backup-wrapper.sh 2>&1 | log_message
|
||||
echo "Sleeping for $SLEEP_TIME" | log_message
|
||||
|
||||
# Using a simple sleep loop to schedule backups instead of cron to avoid concurrency issues
|
||||
sleep "$SLEEP_TIME"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue