VFS_RECYCLE(8) | System Administration tools | VFS_RECYCLE(8) |
NAME
vfs_recycle - Samba VFS recycle bin
SYNOPSIS
vfs objects = recycle
DESCRIPTION
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.
This module is stackable.
OPTIONS
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
EXAMPLES
Move files "deleted" on share to /data/share/.recycle instead of deleting them:
[share] path = /data/share vfs objects = recycle recycle:repository = .recycle recycle:keeptree = yes recycle:versions = yes
VERSION
This man page is part of version 4.21.0 of the Samba suite.
AUTHOR
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.
09/04/2024 | Samba 4.21.0 |