Renamed global variable backups_databases_directory to backups_mysql_database_directory

In order to specify and separate backups of different database services
dehydrated
Felix Stupp 5 years ago
parent fdb08f1eaf
commit 4874bc2bbd
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -13,7 +13,7 @@ update_scripts_directory: "/root/update"
backup_gpg_fingerprint: "73D09948B2392D688A45DC8393E1BD26F6B02FB7"
backups_directory: "/backups"
backups_databases_directory: "{{ backups_directory }}/databases"
backups_mysql_database_directory: "{{ backups_directory }}/databases"
backups_files_directory: "{{ backups_directory }}/files"
global_local_user: "{{ lookup('env', 'USER') }}"

@ -52,7 +52,7 @@
mode: "u=rwx,g=rx,o=rx"
loop:
- "{{ backups_directory }}"
- "{{ backups_databases_directory }}"
- "{{ backups_mysql_database_directory }}"
- "{{ backups_files_directory }}"
- name: Flush handlers for role

@ -2,7 +2,7 @@
set -euxo pipefail;
file={{ backups_databases_directory | quote }}"/$1.sql.gpg";
file={{ backups_mysql_database_directory | quote }}"/$1.sql.gpg";
mysqldump --opt --databases "$1" |
pv --quiet --buffer-size 256M |

Loading…
Cancel
Save