From 691687edbef00238166cd209717e66cd9fb74944 Mon Sep 17 00:00:00 2001 From: Rohan Bansal Date: Wed, 1 Jul 2020 18:54:41 +0530 Subject: [PATCH] fix: run backups every 6 hours, rather than every minute per 6 hours --- bench/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index d94fc26b..948d62ea 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -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()