diff --git a/scripts/upgrade b/scripts/upgrade index 0baf101..c03beee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -87,6 +87,9 @@ is_public=$(ynh_app_setting_get "$app" is_public) # Use prior backup and restore on error only if backup feature # exists on installed instance if [ -f "/etc/yunohost/apps/$app/scripts/backup" ] ; then + # Notify the backup process that it should not save the data directory + ynh_app_setting_set $app backup_core_only 1 + ynh_backup_before_upgrade # Backup the current version of the app ynh_clean_setup () { ynh_restore_upgradebackup