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:
parent
1f28f2a2ab
commit
9eecf70ee8
1 changed files with 2 additions and 2 deletions
|
@ -15,6 +15,8 @@ source /usr/share/yunohost/helpers
|
|||
#=================================================
|
||||
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
|
||||
#=================================================
|
||||
|
@ -57,8 +59,6 @@ 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue