Merge pull request #8 from YunoHost/dump-mysql

dump db with helper
This commit is contained in:
Kayou 2020-04-12 17:49:05 +02:00 committed by GitHub
commit 98f0c29026
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -24,5 +24,4 @@ ynh_backup /etc/nginx/conf.d/$domain.d/$app.conf
ynh_backup /etc/importantfile /etc/yoloswag
# Backup db
root_pwd=$(sudo cat /etc/yunohost/mysql)
sudo su -c "mysqldump -u root -p$root_pwd --no-create-db $app > ${backup_dir}/db.sql"
ynh_mysql_dump_db $app > "${backup_dir}/db.sql"

View file

@ -24,5 +24,4 @@ ynh_backup /etc/nginx/conf.d/$domain.d/$app.conf "conf/nginx.conf"
ynh_backup /etc/importantfile "${backup_dir}/importantfile" 1
# Backup db
root_pwd=$(sudo cat /etc/yunohost/mysql)
sudo su -c "mysqldump -u root -p$root_pwd --no-create-db $app > ${backup_dir}/db.sql"
ynh_mysql_dump_db $app > "${backup_dir}/db.sql"