[Samba] shadow:format with random suffix

Sebastian Gabbert huehnerhose at web.de
Fri Nov 28 06:37:51 MST 2014


I want to combine zfs snapshots (via zfSnap) with shadow copys/previous
So far everything works for me, with one exception:

For simplicity I want to create my rolling snapshots via zfSnap, so the
snapshots are called:
Here "120s" is the time to live for this snapshot. So everything behind
"--" can vary. I was able to get my snapshots recorgnized via:
shadow:format         = %Y-%m-%d_%H.%M.%S--120s
shadow:format         = %Y-%m-%d
works (but doesn't have a valid time, just the date)

But what didn't work is
shadow:format         = %Y-%m-%d_%H.%M.%S
shadow:format         = %Y-%m-%d_%H.%M.%S--

Is there any way to tell str[f|p]time to use just the stuff in front of

I am using Samba 4.1.13, FreeBSD 10

Thanks and best regards

More information about the samba mailing list