|
|
@ -5,7 +5,7 @@ set -euxo pipefail;
|
|
|
|
file={{ backups_databases_directory | quote }}"/$1.sql.gpg";
|
|
|
|
file={{ backups_databases_directory | quote }}"/$1.sql.gpg";
|
|
|
|
|
|
|
|
|
|
|
|
mysqldump --opt --databases "$1" |
|
|
|
|
mysqldump --opt --databases "$1" |
|
|
|
|
buffer -m 128M -s 128K |
|
|
|
|
pv --quiet --buffer-size 256M |
|
|
|
|
gpg --quiet --no-verbose --encrypt --recipient {{ backup_gpg_fingerprint | quote }} --trust-model always > "$file";
|
|
|
|
gpg --quiet --no-verbose --encrypt --recipient {{ backup_gpg_fingerprint | quote }} --trust-model always > "$file";
|
|
|
|
chmod u+r-wx,g+r-wx,o+r-wx "$file";
|
|
|
|
chmod u+r-wx,g+r-wx,o+r-wx "$file";
|
|
|
|
{{ global_helper_directory | quote }}/backup_rename.sh "$file";
|
|
|
|
{{ global_helper_directory | quote }}/backup_rename.sh "$file";
|
|
|
|