common: backup_mysql_database.sh: Remove --databases so dump does not use database name

Increases portability of backups
dehydrated
Felix Stupp 4 years ago
parent d5077ea553
commit df21870ebe
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -9,7 +9,7 @@ db="$1";
file={{ backups_mysql_database_directory | quote }}"/$db/latest.sql.gpg";
# Execution
mysqldump --opt --databases "$db" |
mysqldump --opt "$db" |
pv --quiet --buffer-size 256M |
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";

Loading…
Cancel
Save