From 356d2ab6c39f3bcc4f33d1fb06cf38ef0cd3bb82 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Thu, 21 Dec 2017 10:37:05 +0100 Subject: [PATCH] Don't backup data directory during the upgrade process --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) 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