Skip to content

Commit

Permalink
change backup and restore time to 5 mins and 6 mins
Browse files Browse the repository at this point in the history
Signed-off-by: Sid Sun <sid@sidsun.com>
  • Loading branch information
Sid-Sun committed Aug 17, 2024
1 parent ae0f9a8 commit f6e1995
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions replicator-snapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ function backupcon {

if [ $REPLICATOR_MODE = 'BACKUP' ]
then
while true; do sleep 60 && backupcon; done # Give uptime-kuma upto 1 minute to start up
while true; do sleep 300 && backupcon; done # Backup every 5 mins
fi

# Give uptime-kuma main instance upto 1 minute 30 secs
# to start up and backup job to backup
while true; do sleep 15 && restorecon; done
# Restore every 6 mins
while true; do sleep 360 && restorecon; done

0 comments on commit f6e1995

Please sign in to comment.