Daniel Müller
2014-Apr-15 10:32 UTC
[Samba] VFs recycle, what about a trigger to delete files after xxxx!?
Dear all, I am working with vfs recycle and it is a real great thing. But something I missed all the years is a param like : recycle:purge=MAXDAYS. (where MAXDAYS is, Age of which files and directories are stored In the recycle before they are purged) I do this with my own scripts but it would be a great feature for me as admin to set this param without the need of scripting myself. EDV Daniel M?ller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 T?bingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: mueller at tropenklinik.de Internet: www.tropenklinik.de
Michał Półrolniczak
2014-Apr-16 12:15 UTC
[Samba] VFs recycle, what about a trigger to delete files after xxxx!?
is it normal that vfs recycle wont put file inside container when its moved and not deleted? when files is deleted vfs recycle copy it to 'bin' but when someone move folders/files it dont act. smb.conf section for vfs looks like this: vfs objects = recycle recycle:priority = NOTICE recycle:repository = .bin recycle:directory_mode = 0777 recycle:subdir_mode = 0777 recycle:keeptree = true recycle:versions = true recycle:touch = true recycle:minsize = 1
David Disseldorp
2014-Apr-23 13:08 UTC
[Samba] VFs recycle, what about a trigger to delete files after xxxx!?
Hi Daniel, On Tue, 15 Apr 2014 12:32:07 +0200, Daniel M?ller wrote:> I am working with vfs recycle and it is a real great thing. > But something I missed all the years is a param like : > recycle:purge=MAXDAYS. (where MAXDAYS is, Age of which files and directories > are stored > In the recycle before they are purged) > I do this with my own scripts but it would be a great feature for me as > admin to set this param > without the need of scripting myself.Sounds like you're looking for functionality that's normally provided with device or filesystem snapshots. I'd suggest looking at btrfs, LVM or Snapper managed snapshots, and the vfs_shadow_copy(2) Samba modules. Such a setup would have the following benefits over using the vfs_recycle module: - COW snapshots are space efficient, so storage of duplicate file data can be avoided. - Users can access/restore previous file versions by right clicking on the base file or folder in Explorer, rather than navigating to the recycle bin. Cheers, David