Add in a pile of other machines to rdiff-backup. It's going to take it many days. ;)
This commit is contained in:
parent
7f8431a0d1
commit
c53359f4fa
8 changed files with 24 additions and 3 deletions
2
inventory/host_vars/collab04.vpn.fedoraproject.org
Normal file
2
inventory/host_vars/collab04.vpn.fedoraproject.org
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
host_backup_targets: ['/srv']
|
2
inventory/host_vars/db01.phx2.fedoraproject.org
Normal file
2
inventory/host_vars/db01.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
host_backup_targets: ['/backups']
|
2
inventory/host_vars/hosted-lists01.vpn.fedoraproject.org
Normal file
2
inventory/host_vars/hosted-lists01.vpn.fedoraproject.org
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
host_backup_targets: ['/srv']
|
2
inventory/host_vars/hosted04.vpn.fedoraproject.org
Normal file
2
inventory/host_vars/hosted04.vpn.fedoraproject.org
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
host_backup_targets: ['/srv']
|
2
inventory/host_vars/log02.phx2.fedoraproject.org
Normal file
2
inventory/host_vars/log02.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
host_backup_targets: ['/var/log']
|
2
inventory/host_vars/pkgs01.phx2.fedoraproject.org
Normal file
2
inventory/host_vars/pkgs01.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
host_backup_targets: ['/srv']
|
|
@ -47,9 +47,18 @@ ask01.stg.phx2.fedoraproject.org
|
|||
backup02.fedoraproject.org
|
||||
backup03.phx2.fedoraproject.org
|
||||
|
||||
#
|
||||
# This is the list of clients we backup with rdiff-backup.
|
||||
#
|
||||
[backup_clients]
|
||||
people03.vpn.fedoraproject.org
|
||||
collab04.vpn.fedoraproject.org
|
||||
db01.phx2.fedoraproject.org
|
||||
hosted04.vpn.fedoraproject.org
|
||||
hosted-lists01.vpn.fedoraproject.org
|
||||
lockbox01.phx2.fedoraproject.org
|
||||
people03.vpn.fedoraproject.org
|
||||
pkgs01.phx2.fedoraproject.org
|
||||
log02.phx2.fedoraproject.org
|
||||
|
||||
[badges-backend]
|
||||
badges-backend01.phx2.fedoraproject.org
|
||||
|
|
|
@ -20,11 +20,11 @@
|
|||
|
||||
tasks:
|
||||
- name: run rdiff-backup hitting all the global targets
|
||||
local_action: "shell rdiff-backup ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}`"
|
||||
local_action: "shell rdiff-backup --create-full-path --print-statistics ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}`"
|
||||
with_items: $global_backup_targets
|
||||
when: global_backup_targets is defined
|
||||
|
||||
- name: run rdiff-backup hitting all the host targets
|
||||
local_action: "shell rdiff-backup ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}`"
|
||||
local_action: "shell rdiff-backup --create-full-path --print-statistics ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}`"
|
||||
with_items: $host_backup_targets
|
||||
when: host_backup_targets is defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue