From aa21f60051c4ebe8769db16bb831c9ca4daca5e1 Mon Sep 17 00:00:00 2001 From: Benedikt Tissot Date: Mon, 5 Apr 2021 17:05:23 +0200 Subject: [PATCH] backup correct db --- scripts/backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/backup b/scripts/backup index 27c175a..658a064 100755 --- a/scripts/backup +++ b/scripts/backup @@ -35,7 +35,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) app_service_registration_path=$(ynh_app_setting_get --app=$app --key=app_service_registration_path) # synapse_instance=$(ynh_app_setting_get --app=$app --key=synapse_instance) -# mautrix_bridge_db_name=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_name) +mautrix_bridge_db_name=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_name) # mautrix_bridge_db_user=$app # mautrix_bridge_db_pwd=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_pwd) # mautrix_bridge_db_pwd=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_pwd) @@ -86,7 +86,7 @@ ynh_print_info --message="Backing up the PostgreSQL database..." ### (However, things like MySQL dumps *do* take some time to run, though the ### copy of the generated dump to the archive still happens later) -ynh_psql_dump_db --database="$db_name" > db.sql +ynh_psql_dump_db --database="$mautrix_bridge_db_name" > db.sql #================================================= # END OF SCRIPT