Page 1 of 1

How to allow backup process only during the night?

Posted: Wed Feb 10, 2021 4:50 am
by azlanirda
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

Re: configure backup

Posted: Wed Feb 10, 2021 12:21 pm
by myVesta
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

Re: configure backup

Posted: Wed Feb 10, 2021 12:22 pm
by myVesta
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.

Re: configure backup

Posted: Wed Feb 10, 2021 12:24 pm
by azlanirda
okay dpeca... thanks