Shadow copies, snapshots

Shadow Copy is a really nice feature that allows to keep track of changes made to a document and keeps recent copies of data for quick restore.

I myself don’t know if this hard to implement from a developers viewpoint or if it is something that I could (or should) setup myself when playing around with the samba configuration files.

Maybe there are users that would also like to have it implemented as a feature. Please share your opinions on this.

Thanks for reading!

1 Like

Hi “craaaft”,

I’m agree with you!
I found some articles.
It is possible in some particular conditions, as far as I read and I understand.
Unfortunately, I’m not a Linux expert.
Maybe the other guys can explain better and of course can tell us how hard is to implement this thing.

https://wiki.samba.org/index.php/Shadow_Copies_with_Snapshots
https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/VFS.html#id2651694

Hi, maybe LVM snapshot is better idea than SAMBA one :slight_smile:

you just need a custom template to enable it

Could you elaborate on this?

I think he means porting on NethServer this work:
https://wiki.contribs.org/ShadowCopy

Sometimes I think back to the times of Novell Netware and the salvage option in Novell client…

Alsto take a look at this: https://www.samba.org/samba/docs/man/manpages/vfs_shadow_copy2.8.html
(/cc @GG_jr)

Or on a ZFS filesystem: https://github.com/zfsonlinux/zfs-auto-snapshot/wiki/Samba

1 Like

I used snapshots on a samba server while working at ibm. It worked, fine
but most of the times we just had to restore the files manually from
snapshots because right button on windows clients worked depending on the
version of client. It was really helpfull on a big file server with lots of
people changing docs.