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 13:12:12 +02:00
parent 1f28f2a2ab
commit 9eecf70ee8

View file

@ -15,6 +15,8 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_print_info --message="Declaring files to be backed up..." ynh_print_info --message="Declaring files to be backed up..."
(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console maintenance 1)
#================================================= #=================================================
# BACKUP THE APP MAIN DIR # BACKUP THE APP MAIN DIR
#================================================= #=================================================
@ -57,8 +59,6 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
#================================================= #=================================================
ynh_print_info --message="Backing up the MySQL database..." 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 ynh_mysql_dump_db --database="$db_name" > db.sql
(cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console maintenance 0) (cd $install_dir && ynh_exec_as "$app" php$phpversion bin/console maintenance 0)