This VFS module is part of the samba(7) suite.
The vfs_recycle intercepts file deletion requests and moves the affected files to a temporary repository rather than deleting them immediately. This gives the same effect as the Recycle Bin on Windows computers.
The Recycle Bin will not appear in Windows Explorer views of the network file system (share) nor on any mapped drive. Instead, a directory called .recycle will be automatically created when the first file is deleted and recycle:repository is not configured. If recycle:repository is configured, the name of the created directory depends on recycle:repository. Users can recover files from the recycle bin. If the recycle:keeptree option has been specified, deleted files will be found in a path identical with that from which the file was deleted.
recycle:repository = PATH
If this option is not set, the default path .recycle is used.
recycle:directory_mode = MODE
If this option is not set, the default mode 0700 is used.
recycle:subdir_mode = MODE
If this option is not set, subdirectories will be created with the mode from recycle:directory_mode.
recycle:keeptree = BOOL
recycle:versions = BOOL
recycle:touch = BOOL
recycle:touch_mtime = BOOL
recycle:minsize = BYTES
recycle:maxsize = BYTES
recycle:exclude = LIST
recycle:exclude_dir = LIST
recycle:noversions = LIST
Move files "deleted" on share to /data/share/.recycle instead of deleting them:
[share] m[blue]path = /data/sharem[] m[blue]vfs objects = recyclem[] m[blue]recycle:repository = .recyclem[] m[blue]recycle:keeptree = yesm[] m[blue]recycle:versions = yesm[]
This man page is part of version 4.14.2 of the Samba suite.
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.