[PLUG] Undelete with Samba
David Fetter
david.fetter at fetterconsulting.com
Mon Nov 14 22:12:38 UTC 2005
Newer versions of samba support some of the windows vfs object
specifications. I used the following within the smb.conf for a client
to achieve a recyclebin function so that things aren't directly deleted
just as is normal operations under a windows desktop.
# the options below are what will implement the recycle bin.
vfs object = recycle
recycle:repository = /recyclebin/%U
recycle:touch = Yes
recycle:keeptree = Yes
recycle:versions = Yes
recycle:noversions = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP
recycle:exclude = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP
recycle:excludedir = /recyclebin,/tmp,/temp,/TMP,/TEMP
On Mon, 2005-11-14 at 13:41 -0800, Richard C. Steffens wrote:
> Using Windows Explorer on Win98SE, I've just deleted a recent (in other
> words, not backed up) file from a Samba shared directory on an EXT-2
> file system. It's not critical if I can't recover it, but I figured this
> is a good example to learn on.
>
> So far, nothing's been written to that drive since the deletion. I've
> searched "undelete" on the Linux specific part of Google, and have
> started following the instructions at:
>
> http://www.linux.com/howtos/Ext2fs-Undeletion-4.shtml
>
> As the file resides on my 60MB drive, debugfs: lsdel is taking some time.
>
> Is there a better way? The last time I had occasion to do this sort of
> thing was many years ago on a DOS machine where it was a simple matter
> of using some Norton tool and changing the deleted flag on the filename.
> I was hoping for something equally as simple, but I realize that may be
> wishful thinking.
>
> Anyway, any alternative recommendations will be gratefully received.
>
--
David M. Fetter - http://www.fetterconsulting.com/
"The world is full of power and energy and a person can go far by just
skimming off a tiny bit of it." Neal Stephenson - Snow Crash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20051114/b088beca/attachment.asc>
More information about the PLUG
mailing list