One solution would be to use NFS, maybe together with DRBD:
http://www.howtoforge.com/high_avail...drbd_heartbeat
But I'd only do it if both servers are in the same data center.
You can also try Unison, although it's not really real-time:
http://www.howtoforge.com/linux_unison