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
3196299df8
commit
1f28f2a2ab
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue