mirror of
https://github.com/YunoHost-Apps/zap_ynh.git
synced 2024-09-03 20:36:07 +02:00
Update backup
This commit is contained in:
parent
ea849877c3
commit
e11843c6ae
1 changed files with 4 additions and 4 deletions
|
@ -58,12 +58,12 @@ ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
# BACKUP OF THE DATABASE
|
# BACKUP OF THE DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ $database -eq 1 ]; then
|
if [ $database -eq mysql ]; then
|
||||||
ynh_print_info --message="Backup of the MySQL database..."
|
ynh_print_info --message="Backup of the MySQL database..."
|
||||||
ynh_mysql_dump_db --database="$db_name" > db.sql
|
ynh_mysql_dump_db --database="$db_name" > db.sql
|
||||||
elif [ $database -eq 2 ]; then
|
elif [ $database -eq postgressql ]; then
|
||||||
# Removing postgresSQL database
|
# Removing PostgresSQL database
|
||||||
ynh_print_info --message="Backup of the postgreSQL database..."
|
ynh_print_info --message="Backup of the PostgreSQL database..."
|
||||||
ynh_psql_dump_db --database="$db_name" > db.sql
|
ynh_psql_dump_db --database="$db_name" > db.sql
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue