vfs_shadow_copy2 configuration

Andrew Bartlett abartlet at samba.org
Sun Sep 15 02:36:21 CEST 2013

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). 

Andrew Bartlett

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

More information about the samba-technical mailing list