[homes]
...
vfs objects = shadow_copy2
shadow:snapdir = /home/snaphots
shadow:basedir = /home
/dev/ad0s1a on / (ufs, local, acls)
devfs on /dev (devfs, local, multilabel)
/dev/ad0s1d on /home (ufs, local, soft-updates, acls)
...Filesystem snapshots must be mounted on specially named directories in order to be recognized by vfs_shadow_copy2. The snapshot mount points must be immediate children of a the directory being shared. The snapshot naming convention is @GMT-YYYY.MM.DD-hh.mm.ss, where:
o YYYY is the 4 digit year
o MM is the 2 digit month
o DD is the 2 digit day
o hh is the 2 digit hour
o mm is the 2 digit minute
o ss is the 2 digit second.
The vfs_shadow_copy2 snapshot naming convention can be produced with the following date(1) command:
TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S
I don't think it supports UFS (I could be wrong). I believe it requires ZFS.tsarya said:I've tried to use this module but without success...
I followed the instruction from the vfs_shadow_copy2 man page which comes with samba but for some reason samba does not see the UFS2 snapshots... probably I am not doing something right
Weaseal said:I believe it requires ZFS.