fix sql dump syntax

This commit is contained in:
Jeremy D. Berkleef 2021-05-06 22:22:28 -03:00
parent a264b5e34c
commit b2a4a926a2

View File

@ -11,7 +11,7 @@ mysql_pass=YOURPASSWORDHERE
cd $backup_path
# Dump the MariaDB database
mysqldump -u $mysql_user -p $mysql_pass bookstack > bookstack_db.sql
mysqldump -u=$mysql_user -p=$mysql_pass bookstackdb > bookstack_db.sql
# Compress the SQL dump and the BookStack files
tar cvf bookstack_backup_$date.tar.gz bookstack_backup.sql /var/www/BookStack