summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-07-30 22:31:18 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-10 20:40:43 +0200
commit4ef26157880f5cd5d5bd27abe0a6991d7c8a415a (patch)
treeb5ca833cb5f26b4097ff0653f70be284a328f618 /config
parentc2856c05aa9cbdc3adddea127a8588183647ee0a (diff)
downloadnextcloud-server-4ef26157880f5cd5d5bd27abe0a6991d7c8a415a.tar.gz
nextcloud-server-4ef26157880f5cd5d5bd27abe0a6991d7c8a415a.zip
Enhance trashbin expiration settings
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 3b5632087f6..7becf3c3dc4 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',
/**