How to allow backup process only during the night?

Post Reply
azlanirda
Posts: 25
Joined: Mon Feb 01, 2021 12:30 pm

Hello dpeca

how to configure this one...

Backup will run with lowest priority (to avoid load on server), and can be configured to run only by night (and to stop on the morning and continue next night)

at this moment, myvesta is running backup at lowest priority... but how to configure the second part...

and also, what you suggest.. backup weekly.. as i see from the default setup, you set it to sub on saturday only (for the backup)...

thank you in advanced...

- Azlan
User avatar
myVesta
Site Admin
Posts: 756
Joined: Fri Jun 19, 2020 9:59 am

To allow backup only at night, in SSH, as root, run:

Code: Select all

sed -i '/ALLOW_BACKUP_ANYTIME/d' /usr/local/vesta/conf/vesta.conf
Backup proccess will stop somewhere after 07 AM, and will continue again after 00 AM next day.

If you need to run the backup manually during the day, run the following in your SSH:

Code: Select all

export ALLOW_BACKUP_ANYTIME='yes'
nice -n 19 ionice -c 3 v-backup-user someUsername
User avatar
myVesta
Site Admin
Posts: 756
Joined: Fri Jun 19, 2020 9:59 am

azlanirda wrote: Wed Feb 10, 2021 4:50 am and also, what you suggest.. backup weekly.. as i see from the default setup, you set it to sub on saturday only (for the backup)...
You can easily change that day in CRON section in hosting panel.
You can also put * for everyday.
azlanirda
Posts: 25
Joined: Mon Feb 01, 2021 12:30 pm

okay dpeca... thanks
Post Reply