Exclude all .snapshot dirs from rdiff-backups
This commit is contained in:
parent
d081700166
commit
b959693e2b
1 changed files with 1 additions and 1 deletions
|
@ -25,6 +25,6 @@
|
|||
when: global_backup_targets is defined
|
||||
|
||||
- name: run rdiff-backup hitting all the host targets
|
||||
local_action: "shell rdiff-backup --create-full-path --print-statistics ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}` | mail -r sysadmin-backup-members@fedoraproject.org -s 'rdiff-backup: ${inventory_hostname}:${item}' sysadmin-backup-members@fedoraproject.org"
|
||||
local_action: "shell rdiff-backup --exclude='**.snapshot/' --create-full-path --print-statistics ${inventory_hostname}::${item} /fedora_backups/${inventory_hostname}/`basename ${item}` | mail -r sysadmin-backup-members@fedoraproject.org -s 'rdiff-backup: ${inventory_hostname}:${item}' sysadmin-backup-members@fedoraproject.org"
|
||||
with_items: $host_backup_targets
|
||||
when: host_backup_targets is defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue