|
@@ -19,7 +19,7 @@ ynh_abort_if_errors
|
|
|
#=================================================
|
|
#=================================================
|
|
|
# LOAD SETTINGS
|
|
# LOAD SETTINGS
|
|
|
#=================================================
|
|
#=================================================
|
|
|
-ynh_script_progression --message="Loading installation settings..."
|
|
|
|
|
|
|
+ynh_print_info --message="Loading installation settings..."
|
|
|
|
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
|
|
|
@@ -30,7 +30,6 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|
|
#=================================================
|
|
#=================================================
|
|
|
# BACKUP THE APP MAIN DIR
|
|
# BACKUP THE APP MAIN DIR
|
|
|
#=================================================
|
|
#=================================================
|
|
|
-ynh_script_progression --message="Backing up the main app directory..."
|
|
|
|
|
|
|
|
|
|
ynh_backup --src_path="$final_path"
|
|
ynh_backup --src_path="$final_path"
|
|
|
|
|
|
|
@@ -39,14 +38,12 @@ ynh_backup --src_path="$final_path"
|
|
|
#=================================================
|
|
#=================================================
|
|
|
# BACKUP LOGROTATE
|
|
# BACKUP LOGROTATE
|
|
|
#=================================================
|
|
#=================================================
|
|
|
-ynh_script_progression --message="Backing up logrotate configuration..."
|
|
|
|
|
|
|
|
|
|
ynh_backup --src_path="/etc/logrotate.d/$app"
|
|
ynh_backup --src_path="/etc/logrotate.d/$app"
|
|
|
|
|
|
|
|
#=================================================
|
|
#=================================================
|
|
|
# BACKUP THE CRON FILE
|
|
# BACKUP THE CRON FILE
|
|
|
#=================================================
|
|
#=================================================
|
|
|
-ynh_script_progression --message="Backing up cron file..."
|
|
|
|
|
|
|
|
|
|
ynh_backup --src_path="/etc/cron.d/$app"
|
|
ynh_backup --src_path="/etc/cron.d/$app"
|
|
|
|
|
|
|
@@ -54,4 +51,4 @@ ynh_backup --src_path="/etc/cron.d/$app"
|
|
|
# END OF SCRIPT
|
|
# END OF SCRIPT
|
|
|
#=================================================
|
|
#=================================================
|
|
|
|
|
|
|
|
-ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last
|
|
|
|
|
|
|
+ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|