Very first cut at using ansible to run rdiff backups on backup03

This commit is contained in:
Kevin Fenzi 2013-07-23 17:26:34 +00:00
parent 5ae82572f1
commit de351bea39
5 changed files with 61 additions and 0 deletions

View file

@ -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

View file

@ -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"