Skip to main content

real time file synchronization utility for Unix

More
16 years 1 day ago #25946 by ashishag1
Hi

I have a application which writes continuously to a log file on local disk space. I want to mirror or copy this log file real time (or near to real time) to some other disk space (say NFS). I used Unison for this purpose, but it fails to mirror or copy the file from local disk to NFS with the error -
Failed to fingerprint file "/var/tmp/MY_LOG_FILE.log": the file keeps on changing

Is there any other product/tool available to cater such requirement on Unix?

Thanks and regards,
Aashish Agrawal
More
15 years 3 months ago #28935 by skylimit
I think what you want is DRBD - www.drbd.org/docs/about/

"...you are never too old to learn" anon
More
15 years 2 months ago #29156 by jhun
You can try rsync.

What you could do is create a script that would create a mirror of the file you specified and then create a cron job that would run say 5 seconds in interval (or lesser - to have it more in relatime) and that's it.

Here is a link for your reference
More
15 years 2 months ago #29185 by sahirh
If the application has a syslog facility perhaps you can use that to push a realtime update to another system.

Cheers,

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
Time to create page: 0.148 seconds