diff options
| author | Kevin Fenzi <kevin@scrye.com> | 2013-07-23 17:26:34 +0000 |
|---|---|---|
| committer | Kevin Fenzi <kevin@scrye.com> | 2013-07-23 17:26:34 +0000 |
| commit | de351bea39ad1925f3f7307e46cb69e50ab8800d (patch) | |
| tree | 96050577b8d5d406895f73364a2d9690322829ea /files/rdiff-backup | |
| parent | 5ae82572f193472c33577763440df18a6a9960df (diff) | |
| download | ansible-de351bea39ad1925f3f7307e46cb69e50ab8800d.tar.gz ansible-de351bea39ad1925f3f7307e46cb69e50ab8800d.tar.xz ansible-de351bea39ad1925f3f7307e46cb69e50ab8800d.zip | |
Very first cut at using ansible to run rdiff backups on backup03
Diffstat (limited to 'files/rdiff-backup')
| -rw-r--r-- | files/rdiff-backup/run-rdiff-backups | 9 | ||||
| -rw-r--r-- | files/rdiff-backup/run-rdiff-backups.cron | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/files/rdiff-backup/run-rdiff-backups b/files/rdiff-backup/run-rdiff-backups new file mode 100644 index 000000000..c2e099ec9 --- /dev/null +++ b/files/rdiff-backup/run-rdiff-backups @@ -0,0 +1,9 @@ +#!/bin/sh + +source /root/sshagent >>/dev/null + +TMPDIR=`mktemp -d /tmp/backups.XXXX` + +cd $TMPDIR +git clone http://infrastructure.fedoraproject.org/ansible.git +ansible-playbook -i ansible/inventory ansible/playbooks/rdiff-backup.yml diff --git a/files/rdiff-backup/run-rdiff-backups.cron b/files/rdiff-backup/run-rdiff-backups.cron new file mode 100644 index 000000000..91bff12a0 --- /dev/null +++ b/files/rdiff-backup/run-rdiff-backups.cron @@ -0,0 +1,3 @@ +# run rdiff backups +MAILTO=kevin@scrye.com +00 22 * * * root /usr/local/bin/lock-wrapper run-rdiff-backups "/usr/local/bin/run-rdiff-backups" |
