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:
parent
b51abe3ba5
commit
691687edbe
@ -400,7 +400,7 @@ def setup_backups(bench_path='.'):
|
|||||||
|
|
||||||
if job_command not in str(system_crontab):
|
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 = 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()
|
system_crontab.write()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user