Page 1 of 1

Change backup interval

Posted: Mon Sep 04, 2023 2:37 pm
by rg66
Hi,

I need to change bandwidth monitor and quota backup interval. I'm getting a lot of power cuts and it's screwing them both up. I want to change it from 4hrs to 1hr or 2 at the most.

I've figured out how to change bandwidth monitor in /etc/init.d/bwmon_gargoyle

Code: Select all

echo "0 0,4,8,12,16,20 * * * $backup_script" >> "$tmp_cron"
But I can't find where to change quotas. I've searched this topic and didn't find anything. Can anyone tell me where/how to change this?

Cheers

Re: Change backup interval

Posted: Mon Sep 04, 2023 6:41 pm
by Lantis

Re: Change backup interval

Posted: Tue Sep 05, 2023 1:31 am
by rg66
That seems to have done it. I had to remove the original gargoyle_firewall_util.sh entry from the crontab.

/etc/crontabs/root after changes

Code: Select all

0,1,11,21,31,41,51 * * * * /usr/bin/set_kernel_timezone >/dev/null 2>&1
0 * * * * /usr/bin/backup_quotas >/dev/null 2>&1
0 * * * * /tmp/bw_backup/do_bw_backup.sh
Many thanks