diff --git a/manifest.toml b/manifest.toml index cc86077..b7d196b 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ website = "https://code.ffdn.org/FFDN/coin" code = "https://code.ffdn.org/ffdn/coin" [integration] -yunohost = ">= 11.2.13" +yunohost = ">= 11.2.20" architectures = "all" multi_instance = false ldap = false @@ -28,11 +28,9 @@ ram.runtime = "50M" [install] [install.domain] - # this is a generic question - ask strings are automatically handled by Yunohost's core type = "domain" [install.admin] - # this is a generic question - ask strings are automatically handled by Yunohost's core type = "user" [install.email] diff --git a/scripts/backup b/scripts/backup index a79e87e..b89e87d 100644 --- a/scripts/backup +++ b/scripts/backup @@ -9,11 +9,24 @@ source /usr/share/yunohost/helpers #================================================= ynh_print_info --message="Declaring files to be backed up..." +#================================================= +# BACKUP THE APP MAIN DIR +#================================================= + ynh_backup --src_path="$install_dir" + +#================================================= +# SYSTEM CONFIGURATION +#================================================= + ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/systemd/system/$app.service" +#================================================= +# BACKUP THE DATABASE +#================================================= ynh_print_info --message="Backing up the PostgreSQL database..." + ynh_psql_dump_db --database="$db_name" > db.sql #=================================================