简体   繁体   English

禁用owncloud中特定文件夹的垃圾箱

[英]Disable trash bin for specific folder in owncloud

Is there a way to configure owncloud that files from a specific folder are not moved to the trash bin folder but instead erased immediately?有没有办法配置 owncloud 来自特定文件夹的文件不会移动到垃圾箱文件夹而是立即删除? If so, is this possible from web/ftp interface?如果是这样,这可能来自 web/ftp 界面吗? (I don't have ssh access to the server). (我没有对服务器的 ssh 访问权限)。

Background: I use a specific folder for rolling backups of my phone.背景:我使用一个特定的文件夹来滚动备份我的手机。 Even though older versions are deleted, they remain in the trash bin and bloat my limited storage space...即使旧版本被删除,它们仍留在垃圾箱中并膨胀我有限的存储空间......

According to this documentation it is possible to set a list of directories to skip in the PHP configuration of ownCloud.根据此文档,可以在 ownCloud 的 PHP 配置中设置要跳过的目录列表。

You would add this to the configuration in $ownCloudRoot/config/config.php :您可以将此添加到$ownCloudRoot/config/config.php的配置中:

'trashbin_skip_directories' => ['backupdir'],

You can also skip specific file extensions ( trashbin_skip_extensions ) or configure files larger than a given threshold to not go in the trashbin ( trashbin_skip_size_threshold ).您还可以跳过特定的文件扩展名 ( trashbin_skip_extensions ) 或将大于给定阈值的文件配置为不进入垃圾箱 ( trashbin_skip_size_threshold )。

Also note that the default configuration is to keep deleted files for up to 30 days, automatically deleting them when space is needed.另请注意,默认配置是将已删除的文件最多保留 30 天,并在需要空间时自动删除它们。 The default configuration is also to not use more than half the allocated quota, although this will probably not work well with unlimited quota.默认配置也是不使用超过一半的分配配额,尽管这可能不适用于无限配额。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM