Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-12 14:13:45 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-12 14:13:45 +0300
commit326de6f9b4473f68e4c0237f0b6fb43111cda0c5 (patch)
tree1a81bd91892227ac071385c80bda86aea02c8530 /config
parentabd3d5c6a5803827e54f769e5677cdfa7ea4350b (diff)
parentb9f655d8ada528086eb623705adb683fcb951ebe (diff)
Merge pull request #18065 from owncloud/new-trashbin-retention
New trashbin retention
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php38
1 files changed, 28 insertions, 10 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 5c362e94250..047e7ccdd12 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -399,16 +399,34 @@ $CONFIG = array(
*/
/**
- * When the trash bin app is enabled (default), this is the number of days a
- * file will be kept in the trash bin. Default is 30 days.
- */
-'trashbin_retention_obligation' => 30,
-
-/**
- * Disable or enable auto-expiration for the trash bin. By default
- * auto-expiration is enabled.
- */
-'trashbin_auto_expire' => true,
+ * 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.
+ * 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.
+ * 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
+ * ownCloud 8.1 and before.
+ *
+ * Available values:
+ * ``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 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
+ * automatically, delete other files anytime if space needed
+ * * ``D1, D2`` keep files and folders the in trash bin for at least D1 days
+ * and delete when exceeds D2 days
+ * ``disabled`` trash bin auto clean disabled, files and folders will be
+ * kept forever
+ */
+'trashbin_retention_obligation' => 'auto',
/**