浏览代码

tarsnap: Only run cron job once per day.

The old action would generate a crontab job for `* 3 * * *`, which means every minute at 3am, so 60 times per day.
Henrik Hodne 11 年前
父节点
当前提交
a844401d7c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      roles/common/tasks/tarsnap.yml

+ 1
- 1
roles/common/tasks/tarsnap.yml 查看文件

@@ -25,4 +25,4 @@
25 25
   file: state=directory path=/usr/tarsnap-cache
26 26
 
27 27
 - name: Install nightly Tarsnap cronjob
28
-  cron: name="Tarsnap backup" hour="3" job="tarsnap --cachedir /usr/tarsnap-cache --keyfile /root/tarsnap.key -c -f backup-`date +\%Y\%m\%d` /home /root /decrypted-mail /var/www /var/log /var/lib/mysql > /dev/null"
28
+  cron: name="Tarsnap backup" hour="3" minute="0" job="tarsnap --cachedir /usr/tarsnap-cache --keyfile /root/tarsnap.key -c -f backup-`date +\%Y\%m\%d` /home /root /decrypted-mail /var/www /var/log /var/lib/mysql > /dev/null"

正在加载...
取消
保存