1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

Update backup

This commit is contained in:
Éric Gaspar 2023-08-21 12:44:17 +02:00
parent 3196299df8
commit 1f28f2a2ab

View file

@ -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
#=================================================