mirror of
https://github.com/YunoHost-Apps/kresus_ynh.git
synced 2024-09-03 19:36:10 +02:00
Add progression messages in backup script
This commit is contained in:
parent
dc3dcde013
commit
e9ee51e6f1
1 changed files with 5 additions and 0 deletions
|
@ -33,18 +33,21 @@ db_name="$app"
|
||||||
# BACKUP THE APP MAIN DIR
|
# BACKUP THE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
ynh_script_progression --message="Backing up the main directory..."
|
||||||
ynh_backup "$final_path"
|
ynh_backup "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# BACKUP THE NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
ynh_script_progression --message="Backing up nginx config..."
|
||||||
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE POSTGRESQL DATABASE
|
# BACKUP THE POSTGRESQL DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
ynh_script_progression --message="Backing up database..."
|
||||||
ynh_psql_dump_db --database="$db_name" > ${YNH_CWD}/dump.sql
|
ynh_psql_dump_db --database="$db_name" > ${YNH_CWD}/dump.sql
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -53,5 +56,7 @@ ynh_psql_dump_db --database="$db_name" > ${YNH_CWD}/dump.sql
|
||||||
# BACKUP SYSTEMD
|
# BACKUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
ynh_script_progression --message="Backing up systemd service..."
|
||||||
ynh_backup "/etc/systemd/system/$app.service"
|
ynh_backup "/etc/systemd/system/$app.service"
|
||||||
|
|
||||||
|
ynh_script_progression --message="Backup of $app completed" --last
|
Loading…
Reference in a new issue