Sabuj Pattanayek
2014-Jan-24 13:50 UTC
[Samba] vfs_shadow_copy2 with different snapshot format
Hi all, Does anyone have vfs_shadow_copy2 working with an alternate snapshot directory format? My snapshots look like this : drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140113_12:00 drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140114_12:00 drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140115_12:00 drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140116_12:00 drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140117_12:00 we have this in smb.conf : vfs objects = shadow_copy2 gpfs acl_xattr fileid shadow:snapdir = .snapshots shadow:localtime = yes shadow:format = "%Y%m%d_%H:%M" shadow:fixinodes = yes shadow:snapdirseverywhere = yes shadow:sort = desc ..however going into the previous versions tab in the explorer properties dialog for a directory always shows that no previous versions are available. Thanks, Sabuj
Daniel O'Connor
2014-Jan-24 20:06 UTC
[Samba] vfs_shadow_copy2 with different snapshot format
On 24 Jan 2014, at 5:50, Sabuj Pattanayek <sabujp at gmail.com> wrote:> Does anyone have vfs_shadow_copy2 working with an alternate snapshot > directory format? My snapshots look like this : > > drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140113_12:00 > drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140114_12:00 > drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140115_12:00 > drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140116_12:00 > drwxr-xr-x 55 root root 32768 Jan 10 12:37 20140117_12:00 > > we have this in smb.conf : > > vfs objects = shadow_copy2 gpfs acl_xattr fileid > shadow:snapdir = .snapshots > shadow:localtime = yes > shadow:format = "%Y%m%d_%H:%M" > shadow:fixinodes = yes > shadow:snapdirseverywhere = yes > shadow:sort = descI would say you need to drop the quotes around format. I used this.. vfs objects = shadow_copy2 shadow:snapdir = .zfs/snapshot shadow:format = auto_%Y-%m-%d_%H.%M shadow:sort = desc on FreeBSD 9.2 with ZFS, it seems to work very well so far. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://lists.samba.org/pipermail/samba/attachments/20140124/73f72720/attachment.pgp>
Maybe Matching Threads
- vfs_shadow_copy2 not working
- vfs_shadow_copy2 not working
- vfs_shadow_copy2: unmount snapshot while user is restoring from it
- vfs_shadow_copy2 with snapprefix & delimiter options in samba 4.6.2
- vfs_shadow_copy2: unmount snapshot while user is restoring from it