Skip to content

Instantly share code, notes, and snippets.

@l0neranger
Last active August 29, 2015 14:06
Show Gist options
  • Save l0neranger/92df4bde0821fde8fabb to your computer and use it in GitHub Desktop.
Save l0neranger/92df4bde0821fde8fabb to your computer and use it in GitHub Desktop.
Bacula restore tests using Ansible
- hosts: bacula
user: user
sudo: True
tasks:
- name: Restore files from bacula for weekly restore tests
shell: /bin/echo "restore before=2013-10-14\ 08:00:00 client={{ item }}-fd restoreclient={{ item }}-fd file=</tmp/{{ item }}-file-list where=/tmp/bacula-restores yes" | /usr/bin/bconsole
with_items:
- hostname1
- hostname2
- hostname3
- hostname4
ignore_errors: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment