From f539e0b67ce9ed471257749d412448a6394394b0 Mon Sep 17 00:00:00 2001 From: SpamReceiver Date: Fri, 26 Nov 2021 22:16:54 +0100 Subject: [PATCH 1/2] Solution for #6889 See also: https://github.com/nextcloud/documentation/pull/7046 --- config/config.sample.php | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/config/config.sample.php b/config/config.sample.php index fd25815decea1..6cdb1e429a90d 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -634,25 +634,40 @@ * for when files and folders in the trash bin will be permanently deleted. * The app allows for two settings, a minimum time for trash bin retention, * and a maximum time for trash bin retention. + * * Minimum time is the number of days a file will be kept, after which it - * may be deleted. Maximum time is the number of days at which it is guaranteed - * to be deleted. + * _may be_ deleted. A file may be deleted after the minimum number of days + * is expired if space is needed. The file will not be deleted if space is + * not needed. + * + * Whether "space is needed" depends on whether a user quota is defined or not: + * + * * If no user quota is defined, the available space on the Nextcloud data + * partition sets the limit for the trashbin + * (issues: see https://github.com/nextcloud/server/issues/28451 + * and https://github.com/nextcloud/server/issues/28450). + * * If a user quota is defined, 50% of the user's remaining quota space sets + * the limit for the trashbin. + * + * Maximum time is the number of days at which it is _guaranteed + * to be_ deleted. There is no further depenency on the available space. + * * Both minimum and maximum times can be set together to explicitly define * file and folder deletion. For migration purposes, this setting is installed * initially set to "auto", which is equivalent to the default setting in * Nextcloud. * - * Available values: + * Available values (D1 and D2 are configurable numbers): * * * ``auto`` * default setting. keeps files and folders in the trash bin for 30 days * and automatically deletes anytime after that if space is needed (note: * files may not be deleted if space is not needed). - * * ``D, auto`` - * keeps files and folders in the trash bin for D+ days, delete anytime if + * * ``D1, auto`` + * keeps files and folders in the trash bin for D1+ days, delete anytime if * space needed (note: files may not be deleted if space is not needed) - * * ``auto, D`` - * delete all files in the trash bin that are older than D days + * * ``auto, D2`` + * delete all files in the trash bin that are older than D2 days * automatically, delete other files anytime if space needed * * ``D1, D2`` * keep files and folders in the trash bin for at least D1 days and From f215c41928ead549cfb7c31d4382fb4a8dcde027 Mon Sep 17 00:00:00 2001 From: SpamReceiver Date: Mon, 13 Jun 2022 11:32:17 +0200 Subject: [PATCH 2/2] Removed reference to issue #28450 #28450 has been closed in the meantime. --- config/config.sample.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/config.sample.php b/config/config.sample.php index 1c1ce34cacfc6..b9b2777bb8a54 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -651,8 +651,7 @@ * * * If no user quota is defined, the available space on the Nextcloud data * partition sets the limit for the trashbin - * (issues: see https://github.com/nextcloud/server/issues/28451 - * and https://github.com/nextcloud/server/issues/28450). + * (issues: see https://github.com/nextcloud/server/issues/28451). * * If a user quota is defined, 50% of the user's remaining quota space sets * the limit for the trashbin. *