- Posts: 2
- Thank you received: 0
real time file synchronization utility for Unix
16 years 6 months ago #25946
by ashishag1
real time file synchronization utility for Unix was created 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
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
15 years 9 months ago #28935
by skylimit
"...you are never too old to learn" anon
Replied by skylimit on topic Re: real time file synchronization utility for Unix
I think what you want is DRBD -
www.drbd.org/docs/about/
"...you are never too old to learn" anon
15 years 9 months ago #29156
by jhun
Replied by jhun on topic Re: real time file synchronization utility for Unix
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
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
15 years 9 months ago #29185
by sahirh
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
Replied by sahirh on topic Re: real time file synchronization utility for Unix
If the application has a syslog facility perhaps you can use that to push a realtime update to another system.
Cheers,
Cheers,
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
Time to create page: 0.123 seconds