From 1f28f2a2abcb79317fd54cef97cee2ecc4a1e5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:44:17 +0200 Subject: [PATCH] Update backup --- scripts/backup | 4 ++++ 1 file changed, 4 insertions(+) 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 #=================================================