Very first cut at using ansible to run rdiff backups on backup03
This commit is contained in:
parent
5ae82572f1
commit
de351bea39
5 changed files with 61 additions and 0 deletions
9
files/rdiff-backup/run-rdiff-backups
Normal file
9
files/rdiff-backup/run-rdiff-backups
Normal 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
|
3
files/rdiff-backup/run-rdiff-backups.cron
Normal file
3
files/rdiff-backup/run-rdiff-backups.cron
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue