misc/backup_files: Added support for commands executed before / after backup

dehydrated
Felix Stupp 5 years ago
parent 3fb273aaae
commit 6dd5c75e67
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -4,3 +4,6 @@
backup_directory: "{{ global_webservers_directory }}/{{ domain }}" backup_directory: "{{ global_webservers_directory }}/{{ domain }}"
backup_script: "{{ backup_files_scripts_directory }}/{{ domain }}" backup_script: "{{ backup_files_scripts_directory }}/{{ domain }}"
before_backup_command: ""
after_backup_command: ""

@ -1,2 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
{{ before_backup_command }}
{{ global_helper_directory }}/backup_files.sh {{ backup_directory | quote }} {{ domain | quote }} {{ global_helper_directory }}/backup_files.sh {{ backup_directory | quote }} {{ domain | quote }}
{{ after_backup_command }}

Loading…
Cancel
Save