vfs objects = shadow_copy2
1.There is no need any more to populate your share's root directory with symlinks to the snapshots if the file system stores the snapshots elsewhere. Instead, you can flexibly configure the module where to look for the file system snapshots. This can be very important when you have thousands of shares, or use [homes].
2.Snapshot directories need not be in one fixed central place but can be located anywhere in the directory tree. This mode helps to support file systems that offer snapshotting of particular subtrees, for example the GPFS independent file sets.
3.Vanity naming for snapshots: snapshots can be named in any format compatible with str[fp]time conversions.
4.Timestamps can be represented in localtime rather than UTC.
5.The inode number of the files can optionally be altered to be different from the original. This fixes the 'restore' button in the Windows GUI to work without a sharing violation when serving from file systems, like GPFS, that return the same device and inode number for the snapshot file and the original.
6.Shadow copy results are by default sorted before being sent to the client. This is beneficial for filesystems that don't read directories alphabetically (the default unix). Sort ordering can be configured and sorting can be turned off completely if the file system sorts its directory listing.
•YYYY is the 4 digit year
•MM is the 2 digit month
•DD is the 2 digit day
•hh is the 2 digit hour
•mm is the 2 digit minute
•ss is the 2 digit second.
TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S
With this parameter, one can specify the mount point of the filesystem that contains the share path. Usually this mount point is automatically detected. But for some constellations, in particular tests, it can be convenient to be able to specify it. Example: shadow:mountpoint = /path/to/filesystem Default: shadow:mountpoint = NOT SPECIFIEDshadow:snapdir = SNAPDIR
Path to the directory where the file system of the share keeps its snapshots. If an absolute path is specified, it is used as-is. If a relative path is specified, then it is taken relative to the mount point of the filesystem of the share root. (See shadow:mountpoint.) Note that shadow:snapdirseverywhere depends on this parameter and needs a relative path. Setting an absolute path disables shadow:snapdirseverywhere. Note that the shadow:crossmountpoints option also requires a relative snapdir. Setting an absolute path disables shadow:crossmountpoints. Example: shadow:snapdir = /some/absolute/path Default: shadow:snapdir = .snapshotsshadow:basedir = BASEDIR
The basedir option allows one to specify a directory between the share's mount point and the share root, relative to which the file system's snapshots are taken. For example, ifshadow:snapsharepath = SNAPSHAREPATH
•basedir = mountpoint/rel_basedir
•share_root = basedir/rel_share_root
•snapshot_path = mountpoint/snapdir or snapshot_path = snapdir if snapdir is absolute
With this parameter, one can specify the path of the share's root directory in snapshots, relative to the snapshot's root directory. It is an alternative method to shadow:basedir, allowing greater control. For example, if within each snapshot the files of the share have a path/to/share/ prefix, then shadow:snapsharepath can be set to path/to/share. With this parameter, it is no longer assumed that a snapshot represents an image of the original file system or a portion of it. For example, a system could perform backups of only files contained in shares, and then expose the backup files in a logical structure:shadow:sort = asc/desc
By default, this module sorts the shadow copy data alphabetically before sending it to the client. With this parameter, one can specify the sort order. Possible known values are desc (descending, the default) and asc (ascending). If the file system lists directories alphabetically sorted, one can turn off sorting in this module by specifying any other value. Example: shadow:sort = asc Example: shadow:sort = none Default: shadow:sort = descshadow:localtime = yes/no
This is an optional parameter that indicates whether the snapshot names are in UTC/GMT or in local time. If it is disabled then UTC/GMT is expected. shadow:localtime = noshadow:format = format specification for snapshot names
This is an optional parameter that specifies the format specification for the naming of snapshots in the file system. The format must be compatible with the conversion specifications recognized by str[fp]time. Default: shadow:format = "@GMT-%Y.%m.%d-%H.%M.%S"shadow:sscanf = yes/no
This parameter can be used to specify that the time in format string is given as an unsigned long integer (%lu) rather than a time strptime() can parse. The result must be a unix time_t time. Default: shadow:sscanf = noshadow:fixinodes = yes/no
If you enable shadow:fixinodes then this module will modify the apparent inode number of files in the snapshot directories using a hash of the files path. This is needed for snapshot systems where the snapshots have the same device:inode number as the original files (such as happens with GPFS snapshots). If you don't set this option then the 'restore' button in the shadow copy UI will fail with a sharing violation. Default: shadow:fixinodes = noshadow:snapdirseverywhere = yes/no
If you enable shadow:snapdirseverywhere then this module will look out for snapshot directories in the current working directory and all parent directories, stopping at the mount point by default. But see shadow:crossmountpoints how to change that behaviour. An example where this is needed are independent filesets in IBM's GPFS, but other filesystems might support snapshotting only particular subtrees of the filesystem as well. Note that shadow:snapdirseverywhere depends on shadow:snapdir and needs it to be a relative path. Setting an absolute snapdir path disables shadow:snapdirseverywhere. Note that this option is incompatible with the shadow:basedir option and removes the shadow:basedir setting by itself. Example: shadow:snapdirseverywhere = yes Default: shadow:snapdirseverywhere = noshadow:crossmountpoints = yes/no
This option is effective in the case of shadow:snapdirseverywhere = yes. Setting this option makes the module not stop at the first mount point encountered when looking for snapdirs, but lets it search potentially all through the path instead. An example where this is needed are independent filesets in IBM's GPFS, but other filesystems might support snapshotting only particular subtrees of the filesystem as well. Note that shadow:crossmountpoints depends on shadow:snapdir and needs it to be a relative path. Setting an absolute snapdir path disables shadow:crossmountpoints. Note that this option is incompatible with the shadow:basedir option and removes the shadow:basedir setting by itself. Example: shadow:crossmountpoints = yes Default: shadow:crossmountpoints = noshadow:snapprefix
With growing number of snapshots file-systems need some mechanism to differentiate one set of snapshots from other, e.g. monthly, weekly, manual, special events, etc. Therefore these file-systems provide different ways to tag snapshots, e.g. provide a configurable way to name snapshots, which is not just based on time. With only shadow:format it is very difficult to filter these snapshots. With this optional parameter, one can specify a variable prefix component for names of the snapshot directories in the file-system. If this parameter is set, together with the shadow:format and shadow:delimiter parameters it determines the possible names of snapshot directories in the file-system. The option only supports Basic Regular Expression (BRE).shadow:delimiter
This optional parameter is used as a delimiter between shadow:snapprefix and shadow:format. This parameter is used only when shadow:snapprefix is set. Default: shadow:delimiter = "_GMT"
[homes] vfs objects = shadow_copy2 shadow:snapdir = /data/snapshots shadow:basedir = /data/home shadow:sort = desc