[Samba] Does samba have the ability to specify a backup location for files that are replaced/overwritten?

Anchal Nigam imthenachoman at gmail.com
Mon Mar 21 10:57:07 UTC 2022


I just downloaded the source for Samba. Looks like it is in C which I don't
know. I'll look through it to see if I can figure it out but I doubt it. :/

-- 
Thank you!
_Nacho


On Mon, Mar 21, 2022 at 3:20 AM Andrea Venturoli via samba <
samba at lists.samba.org> wrote:

>
> On 3/21/22 03:38, Anchal Nigam via samba wrote:
>
> > My thought is, when a samba client writes a file through samba, the samba
> > server knows if the file exists or not. So, at that point, if it could
> > either create a backup of the file it is overwriting OR somehow use hard
> > links, then you would always have instant backups. This way you'd always
> > have instant backups.
>
> The closest thing that comes to mind is vfs_recycle.
> AFAIK it only saves a file when it's deleted, not modified, but perhaps
> it could be a starting point if you have some developer skills.
>
>
>
> > Imagine a client machine is hit with ransomware that starts encrypting
> > files on the samba share. With a feature like this you'd still have
> backups
> > on the samba server that the ransomware couldn't get to.
>
> Not exactly what you asked, but I keep frequent ZFS snapshots.
>
>   bye
>         av.
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list