From 10b3deeec87048f4627ff57bc50d36c5d79a7404 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 21 Mar 2021 22:15:35 +0100 Subject: [PATCH 1/3] [fix] This dir could be in giga --- scripts/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index 71939c6..941ad87 100755 --- a/scripts/backup +++ b/scripts/backup @@ -42,7 +42,7 @@ ynh_backup --src_path="$final_path" # BACKUP THE APP DATA #================================================= -ynh_backup --src_path="/home/yunohost.app/$app" +ynh_backup --src_path="/home/yunohost.app/$app" --is_big #================================================= # BACKUP THE NGINX CONFIGURATION From b09591eb5ed3036c3ac3c43a4e38be6b03464642 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 21 Mar 2021 22:18:19 +0100 Subject: [PATCH 2/3] [fix] AVoid to delete data --- scripts/remove | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 26aa613..783d0d0 100755 --- a/scripts/remove +++ b/scripts/remove @@ -58,7 +58,8 @@ ynh_script_progression --message="Removing $app main directory..." --weight=6 # Remove the app directory securely ynh_secure_remove --file="$final_path" -ynh_secure_remove --file="/home/yunohost.app/$app" +# We don't delete this dir as it is marked as is-big +# ynh_secure_remove --file="/home/yunohost.app/$app" #================================================= # REMOVE NGINX CONFIGURATION From 46630b05a50de97a021bdfa69ba6b0f2f95d6daf Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 21 Mar 2021 23:06:11 +0100 Subject: [PATCH 3/3] [fix] Add not mandatory for data --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index b0dcec2..6ece5f9 100644 --- a/scripts/restore +++ b/scripts/restore @@ -70,7 +70,7 @@ ynh_system_user_create --username=$app # RESTORE THE APP DATA #================================================= -ynh_restore_file --origin_path="/home/yunohost.app/$app" +ynh_restore_file --origin_path="/home/yunohost.app/$app" --not_mandatory chown -R $app: "/home/yunohost.app/$app" #=================================================