So it's all done right?
Well I thought I'd share this lil snippet.
When deleting a file on a network share e.g. Samba shares delete, deletes permanently. It doesn't move it to a 'trash can' or 'recycle' bin.
To enable undelete, use this tweak under your samba share declaration:
Where the file will be moed to the .deleted folder under your username.
Well I thought I'd share this lil snippet.
When deleting a file on a network share e.g. Samba shares delete, deletes permanently. It doesn't move it to a 'trash can' or 'recycle' bin.
To enable undelete, use this tweak under your samba share declaration:
[share]
vfs object = recycle
recycle:repository = .deleted/%U
recycle:keeptree = Yes
recycle:touch = Yes
recycle:versions = Yes
recycle:maxsixe = 0
recycle:exclude = *.tmp
recycle:exclude_dir = /tmp
recycle:noversions = *.doc
Where the file will be moed to the .deleted folder under your username.
No comments:
Post a Comment