Holakovsky, Michael
2006-Nov-01 21:35 UTC
[Samba] Call a script after every file modification
Is there a simple possibility to hook in a script which is called every time a file is modified via smbd, e.g. a user is adding a file via samba share? The script should get also the filename too :-) The intended purpose is to duplicate the write operations of samba to another disk. Yes I know there exists RAID and Rsync and other software, but I want to use it for longtime archiving purposes, therefore RAID lacks data corruption features and needs many disks and Rsync and others are not realtime enough to duplicate the modifications on a other disk. Script would be fine because I don't think that I'm able to write a hack for that. I'm web developer not C specialist. regards Mischa
Henrik Zagerholm
2006-Nov-01 22:13 UTC
[Samba] Call a script after every file modification
Take a look at VFS modules for samba. These can do what you are asking. Cheers, henrik 31 okt 2006 kl. 11:05 skrev Holakovsky, Michael:> Is there a simple possibility to hook in a script which is called > every > time a file is modified via smbd, e.g. a user is adding a file via > samba > share? The script should get also the filename too :-) > > The intended purpose is to duplicate the write operations of samba to > another disk. Yes I know there exists RAID and Rsync and other > software, > but I want to use it for longtime archiving purposes, therefore RAID > lacks data corruption features and needs many disks and Rsync and > others > are not realtime enough to duplicate the modifications on a other > disk. > > Script would be fine because I don't think that I'm able to write a > hack > for that. I'm web developer not C specialist. > > regards Mischa > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba