summaryrefslogtreecommitdiff
path: root/ansible/roles/holywood2
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-09 10:29:34 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-09 10:29:34 +0300
commit7c4694a58054f720e8e94a2d59141ee9b6f1e40f (patch)
tree9d364cc4147ec348b2057e36a54a61d4340ebe21 /ansible/roles/holywood2
parent61b05222618e5fc5eefc34a08b3d6bdadea786bd (diff)
downloadansibleness-7c4694a58054f720e8e94a2d59141ee9b6f1e40f.tar.gz
Add: run borg from cron
Diffstat (limited to 'ansible/roles/holywood2')
-rw-r--r--ansible/roles/holywood2/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/ansible/roles/holywood2/tasks/main.yml b/ansible/roles/holywood2/tasks/main.yml
index a6a7171..730aaf3 100644
--- a/ansible/roles/holywood2/tasks/main.yml
+++ b/ansible/roles/holywood2/tasks/main.yml
@@ -46,3 +46,11 @@
owner: root
group: root
mode: 0600
+
+- name: run borg from cron
+ copy:
+ content: "0 */6 * * * root /root/borg-all"
+ dest: /etc/cron.d/local-backup
+ owner: root
+ group: root
+ mode: 0755