I have a Ubuntu server with both samba and nfs-server.
The server does snapshotting for the exported directory and the samba server uses the snapshots to emulate shadow copies. ( vfs objects = shadow_copy )
When I export the same directory via NFS, the clients see the snapshot directories. Thus, a NFS client gets a messed-up directory listing containing lots of entries like @GMT-2012.01.31-13.00.01
How can I hide those subdirectories from NFS clients?
Thanks!
It's more of a hindsight suggestion, but in general you should place snapshots of directory
dir
residing in aparentdir
inparentdir
or in subdirectory ofparentdir
, not indir
. So that you'd have directory hierarchy similar to this:shadow_copy2
from Samba does support setting where the directory with snapshots resides, so you can redirect it toparentdir/snapshots
, like this:or if you want to export
Apps
from the above example as a share, then you can use configuration like this:I do not think you'll be able to get what you want.