mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Backup review
This commit is contained in:
parent
e2d75cc8ec
commit
ec23bedb35
1 changed files with 8 additions and 6 deletions
|
@ -27,8 +27,10 @@ ynh_abort_if_errors
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
final_path=$(ynh_app_setting_get $app final_path)
|
final_path=$(ynh_app_setting_get $app final_path)
|
||||||
statedir=$(ynh_app_setting_get $app statedir)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
final_logpath=$(ynh_app_setting_get $app final_logpath)
|
#db_name=$(ynh_app_setting_get $app db_name)
|
||||||
|
config_path=$(ynh_app_setting_get $app config_path)
|
||||||
|
state_path=$(ynh_app_setting_get $app state_path)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD BACKUP STEPS
|
# STANDARD BACKUP STEPS
|
||||||
|
@ -38,11 +40,11 @@ final_logpath=$(ynh_app_setting_get $app final_logpath)
|
||||||
|
|
||||||
ynh_backup "$final_path"
|
ynh_backup "$final_path"
|
||||||
|
|
||||||
# Backup statedir
|
# Backup config
|
||||||
ynh_backup "$statedir"
|
ynh_backup "$config_path"
|
||||||
|
|
||||||
# Backup logs
|
# Backup statedir
|
||||||
ynh_backup "$final_logpath"
|
ynh_backup "$state_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# BACKUP THE NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue