From 9e36cca92afb98203bed9159476090eba3cd6102 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 11 Sep 2024 11:53:24 -0700 Subject: [PATCH] fix(admin): Add note on trashbin cleanup when quota is exceeded Signed-off-by: Christopher Ng --- .../configuration_files/trashbin_configuration.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/admin_manual/configuration_files/trashbin_configuration.rst b/admin_manual/configuration_files/trashbin_configuration.rst index 7d199ebce..2b71abdc5 100644 --- a/admin_manual/configuration_files/trashbin_configuration.rst +++ b/admin_manual/configuration_files/trashbin_configuration.rst @@ -5,6 +5,12 @@ Deleted Items (trash bin) If the trash bin app is enabled (default), this setting defines the policy for when files and folders in the trash bin will be permanently deleted. +.. note:: + + If the user quota limit is exceeded due to deleted files in the trash bin, + retention settings will be ignored and files will be cleaned up until + the quota requirements are met. + 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 @@ -15,7 +21,7 @@ file and folder deletion. For migration purposes, this setting is installed initially set to "auto", which is equivalent to the default setting in Nextcloud. -You may alter the default pattern in ``config.php``. The default setting is +You may alter the default pattern in ``config.php``. The default setting is ``auto``, which sets the default pattern:: 'trashbin_retention_obligation' => 'auto', @@ -41,11 +47,11 @@ Available values: Background job -------------- -To permanently delete files a background jobs runs every 30 minutes. +To permanently delete files a background jobs runs every 30 minutes. It's possible to deactivate the background job and setup a (system) cron to expire the versions via occ. Deactivate background job: ``occ config:app:set --value=no files_trashbin background_job_expire_trash`` Activate background job: ``occ config:app:delete files_trashbin background_job_expire_trash`` -Expire versions: ``occ trashbin:expire`` or ``occ trashbin:expire --quiet`` (without the progress bar) \ No newline at end of file +Expire versions: ``occ trashbin:expire`` or ``occ trashbin:expire --quiet`` (without the progress bar)