Recovering deleted files over network

Hi all,

My apologies if this isn’t the correct forum for my question. I’m not even sure if this is a Linux or a Windows question really. I have a linux file server (openSuse11.1) serving 4 client pc’s all running Windows Vista. I am just wondering if there is any way to recover a file that resides on the Linux server, that was deleted via a Windows client. Apparently Vista’s recycle bin isn’t network aware, or more likely, isn’t SAMBA aware.

I realize I may be barking up the wrong tree asking this in the openSuse forums and will pursue this from the Windows side as well, but maybe someone out there has run into and solved this particular issue?

Thanks for your time,

RJ

On Wed, 02 Dec 2009 23:26:02 +0000, richj44 wrote:

> I realize I may be barking up the wrong tree asking this in the openSuse
> forums and will pursue this from the Windows side as well, but maybe
> someone out there has run into and solved this particular issue?

Well, the files themselves are stored on the Linux box, so it would be
appropriate to ask here.

That said, one thing this will be highly dependent on is the filesystem
on the Linux box itself. You’ll need to use file recovery tools for that
filesystem on the Linux box - the client side really doesn’t matter (the
OS won’t really know/care what a client is connecting with).

Jim

Jim Henderson
openSUSE Forums Moderator

Jim, thanks for the reply. I am using XFS for the server, so I’ll do some research to see which tools are appropriate. I appreciate you pointing me in the right direction!

RJ

On Wed December 2 2009 05:26 pm, richj44 wrote:

>
> Hi all,
>
> My apologies if this isn’t the correct forum for my question. I’m not
> even sure if this is a Linux or a Windows question really. I have a
> linux file server (openSuse11.1) serving 4 client pc’s all running
> Windows Vista. I am just wondering if there is any way to recover a
> file that resides on the Linux server, that was deleted via a Windows
> client. Apparently Vista’s recycle bin isn’t network aware, or more
> likely, isn’t SAMBA aware.
>
> I realize I may be barking up the wrong tree asking this in the
> openSuse forums and will pursue this from the Windows side as well, but
> maybe someone out there has run into and solved this particular issue?
>
> Thanks for your time,
>
> RJ
>
>
RJ;
You can set up a recycle bin for each share definition
in /etc/samba/smb.conf. As an example:


[share_name]
... other share parameters...
vfs objects = recycle
      recycle:repository =.recycle/%u
      recycle:exclude = *.tmp *.temp
      recycle:versions = yes

For details on the recycle options see:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/VFS.html

AFAIK unless you had already set up recycling for the share, a deleted file is
gone.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

PV, thanks for the help and the link, I’ll give it a look and see if I can’t get that set up. Luckily this is still a proactive move, I haven’t deleted anything critical (yet), just trying to see if I can avoid the inevitable…