1
0
Fork 0
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:
ericgaspar 2021-02-15 17:38:02 +01:00
parent ea849877c3
commit e11843c6ae
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

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