Automatic updating of file on a different machine (server) when user saves a file
Hi,
I just came back from a meeting with someone wo wants this functionality: When he saves a file on *his* machine, it will automatically get copied onto a server (this is on an office LAN). This is so if there's a virus attack on his machine, he will have an uninfected backup copy. To make matters worse, the client machines will be WINDOZE. Apparently he's seen this kind of functionality at an office somewhere (he was saying something about "Microsoft" , but my brain has erased that part of the conversation :) ), and now wants it for himself. I was thinking about Samba obviously, but the tricky part is doing the copying when the user *saves* a file. This will require hooks into the OS to see when a file is being saved. *If* I manage to persuade him to switch his client machines to Linux (which would be the ideal choice and make life far easier), how would it be done? I'd have to use the File Alteration MOnitor in the kernel, right? Would it be possible to write the copying code in a shell script? |
Quote:
Quote:
Quote:
If you must save 2 copies presuming 1 local, 1 samba. There are quite a number of backup solutions, http://www.linuxquestions.org/questi...e-year-780674/ and look into real-time backup solutions. A quick implementation would be rsync (windows bin) and use windows scheduler, so no need for samba. No need to 'hook' anything which most heuristic av might pick it up as a malware. |
Hello,
Another application you could use is Unison, a file synchroniser which works on various operating systems, is freeware and very easy to configure. Just have a look at it here. Kind regards, Eric |
I think I found what I was looking for here:
http://inotify-tools.sourceforge.net/ Check out the: "inotifywait example 1" in bold. Now what I have to do is figure out how to get it to activate when *any* file is written to a particular directory - can anyone offer any help? Sorry I think that was *in* the example. |
I would use ZFS that allows almost unlimited previous versions.
|
I don't follow you - unlimited previous versions of what?
|
Just run backups of your filestore overnight. That's what most corporate companies do. If you get a virus then it's going to infect the copy too - plus, if you have write access to the network drive, it's quite possible the virus will hunt that location out (many just do a search for all available locations) and do it's dirty work there too!
I can't see any advantage of doing this "on the fly" over a scheduled backup overnight. |
All times are GMT -5. The time now is 01:18 AM. |