diff --git a/scripts/backup b/scripts/backup index 1601847..79a75bc 100644 --- a/scripts/backup +++ b/scripts/backup @@ -57,8 +57,12 @@ ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= ynh_print_info --message="Backing up the MySQL database..." +(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console maintenance 1) + ynh_mysql_dump_db --database="$db_name" > db.sql +(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console maintenance 0) + #================================================= # END OF SCRIPT #=================================================