2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

fix: run backups every 6 hours, rather than every minute per 6 hours

This commit is contained in:
Rohan Bansal 2020-07-01 18:54:41 +05:30
parent b51abe3ba5
commit 691687edbe

View File

@ -400,7 +400,7 @@ def setup_backups(bench_path='.'):
if job_command not in str(system_crontab):
job = system_crontab.new(command=job_command, comment="bench auto backups set for every 6 hours")
job.hour.every(6)
job.every(6).hours()
system_crontab.write()