mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
commit
98f0c29026
2 changed files with 2 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue