1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-dirvish synced 2024-11-15 05:44:15 +01:00
ansible-collection-dirvish/roles/dirvish_client/templates/dirvish-pre-client-snapshot.sh.j2

13 lines
270 B
Text
Raw Normal View History

2020-10-31 04:34:41 +01:00
#!/bin/bash
#
{{ ansible_managed | comment }}
set -e
mkdir -p /var/backup
{% for snapshot_script in dirvish_client_snapshot_scripts %}
{{ dirvish_client_snapshot_directory }}/{{ snapshot_script }}
{% endfor %}
echo $(date +%s) > /var/backup/.dirvish-snapshot-success