Skip to content

Commit fc187b3

Browse files
authored
Block backup if current hour is after 6 AM
1 parent 8d4a2c1 commit fc187b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v-backup-user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ is_backup_enabled
3939
# Action #
4040
#----------------------------------------------------------#
4141

42-
# block backup if current hour is after 8 AM
42+
# block backup if current hour is after 6 AM
4343
if pgrep -x "v-backup-users" > /dev/null
4444
then
4545
hour=$(date +"%H");
46-
while [ "$hour" -gt "8" ]; do
46+
while [ "$hour" -gt "6" ]; do
4747
sleep 300
4848
done
4949
fi

0 commit comments

Comments
 (0)