Nexctcloud stores deleted files in /var

Hi@all,

I use Nextcloud 20 on UCS 4.4.7 and everything works. Yesterday I noticed the following:

If I delete a file on a Nextcloud client (notebook), it is also deleted on the server (NC–> external Storage -> SMB). That’s how it should be :slight_smile:

However, it is still on the UCS server under:

/var/lib/univention-appcenter/apps/nextcloud/data/nextcloud-data/me/files_trashbin/files

That’s why my PArtition /var is full.

Is there anything I can do to stop this?

with best
sven

1 Like

See


and
https://docs.nextcloud.com/server/20/user_manual/en/files/deleted_file_management.html

There is described, how to enable automatic deletion of the trash bin.
Additionally have a look to the retention-app within your Nextcloud server. Maybe it also might help.

So I added

'trashbin_retention_obligation' => 'auto',

to config.php

sudo  univention-app shell nextcloud
apt-get install nano (if not installed)
nano /var/www/html/config/config.php

insert the line

'trashbin_retention_obligation' => 'auto',

above the last line containing

);

So deleted files can be undeleted within 30 days after deletion.

I guess, the the Nextcloud instance mut be restarted after changing the config file, but I am not sure.

Mastodon