Rsync to take the newest file. And a cron job?

Posted by user1704877 on Super User See other posts from Super User or by user1704877
Published on 2012-11-04T16:43:46Z Indexed on 2012/11/04 17:04 UTC
Read the original article Hit count: 202

Filed under:
|
|

I have a log file on two different servers. The servers are under a load balancer so half the traffic goes to one server, and half the traffic goes to the other server.

I need to take the newest log file from one machine and transfer that log file to the other machine. So if one log file is changed on one server, it gets updated on the other server.

I think I need to use rsync. And do I also need to put it in a cron job?

© Super User or respective owner

Related posts about linux

Related posts about rsync