From 64356e5e357e44963c6b9ffb3decbfc831370dae Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 27 Feb 2019 23:13:03 +0100 Subject: [PATCH] Fix backup/restore of the configuration --- scripts/backup | 7 +++++++ scripts/restore | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/scripts/backup b/scripts/backup index 6c30480..ef4feed 100644 --- a/scripts/backup +++ b/scripts/backup @@ -55,6 +55,13 @@ ynh_print_info "Backing up the PostgreSQL database..." ynh_psql_dump_db "$db_name" > db.sql +#================================================= +# SPECIFIC BACKUP +#================================================= +ynh_print_info "Backing up the configuration..." + +ynh_backup "/etc/onlyoffice" + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index 5e84b99..8345b3a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -81,6 +81,13 @@ chown -R $app: $final_path #================================================= # SPECIFIC RESTORATION +#================================================= +# RESTORE THE CONFIGURATION +#================================================= +ynh_print_info "Restoring the configuration..." + +ynh_restore_file "/etc/onlyoffice" + #================================================= # ADD NODEJS REPOSITORY #=================================================