vfs_shadow_copy2 configuration

Hemanth Thummala hemanth.thummala at gmail.com
Sun Sep 29 17:20:00 CEST 2013


On Sun, Sep 15, 2013 at 6:06 AM, Andrew Bartlett <abartlet at samba.org> wrote:

> On Thu, 2013-09-12 at 18:11 +0530, Hemanth Thummala wrote:
> > Hi Dan/Michael,
> >
> > Does shadow_copy2 support snapshots in non-default format? We have
> > snapshots in .snapshot directory as hourly.0,hourly.1..
> > weekly.0,weekly.1...monthly.0.. yearly.0 etc.
> > I have tried the following configuration for our box.
> >
> >         vfs objects = shadow_copy2
> >         shadow:sort = desc
> >         shadow:snapdirseverywhere = yes
> >         shadow:format = hourly.%H
> >         shadow:snapdir = .snapshot
> >
> > With this we are able to get the list of labels in @GMT format with just
> > hours getting filled properly and rest with default values.
> > for example: @GMT-1900.00.00-09.00.00 which corresponds to my hourly.9
> > snapshot.
> >
> > Where as later create checks getting failed with object not found as
> client
> > is unable to map this @GMT token to the actual hourly.X snapshot.
> >
> > Is there any way we can work with these kind of snapshots? Or we should
> > have the snapshots always in time stamp based in the file system to make
> > previous versions to work?
>
> What about using a symlink to allow both names?  (I presume your other
> naming scheme is fixed in your other tools/scripts, which is why you
> can't just use samba's scheme).
>
> Hi Andrew,
Yes. Our snapshots are not in direct GMT token format. Made
interface/mapping changes for vfs_shadow_copy to work with our schema. It
works fine now.
Thanks for the response.

-Hemanth.

Andrew Bartlett
>
> --
> Andrew Bartlett                                http://samba.org/~abartlet/
> Authentication Developer, Samba Team           http://samba.org
>
>
>


More information about the samba-technical mailing list