1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-dirvish synced 2024-11-14 21:34:14 +01:00
ansible-collection-dirvish/roles/dirvish_client/templates/dirvish-pre-client-snapshot.sh.j2
2020-10-31 04:34:41 +01:00

12 lines
270 B
Django/Jinja

#!/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