[Samba] vfs_shadow and [homes]

Ed Plese ed at edplese.com
Fri Mar 2 00:18:16 GMT 2007


On Thu, Mar 01, 2007 at 12:35:12PM -0600, James A. Dinkel wrote:
> > i was able to successfully run vfs_shadow on a samba share with win xp
> > shadow copy client. but i think it?s currently not implemented that one
> > could export [homes] with this vfs object, because AFAIK each @GMT-snap
> > has to resist directly under the samba share. but [homes] is a virtual
> > share representing different shares (depending on users).
> > 
> > has anybody hints about using vfs_shadow with [homes]?

> I would like to find a good answer to this myself.  For now, my solution has been to share the root of all the homes shares and give access to administrators only.  For instance, all my homes are under /export/homes/ and then a folder for each user.  I share the /export/homes folder and there is a @GMT- symlink in there to the snapshot.  This way at least administrators can access that share and use the Previous Versions Client to retrieve files.
> 
> My solution does not allow users to retrieve their own files though, which I would like for it to do.

As it is now, you can get this to work by creating symlinks to the
snapshots under each user's home directory.  So for each snapshot and
user do something like:

# ls -s /mnt/snapshots/snap1/user1 /home/user1/@GMT-2003.08.05-12.00.00

This gets a bit cumbersome with large numbers of users and snapshots.
I've working on some enhancements to the shadow_copy module to address
this.


Ed Plese


More information about the samba mailing list