automatic sync of directory from server to server

gigamike

Active Member
Jan 14, 2008
25
0
51
Guys,

I have 2 servers and im planning to make a directory always sync updated/parallel automatically and if possible in real time i.e.

/server1/test/*.* to /server2/test/*.*

Im thinking of rsync but problem of rsync it requires to manually enter a password i.e.

/usr/bin/rsync -avzhe ssh [email protected]:/home/domain.com/public_html/test /home/domain.com/public_html/test

Any ideas? Im thinking of a cron calling a rsync command

Thanks in advance,

Mike
 

gigamike

Active Member
Jan 14, 2008
25
0
51
By the way, both servers have WHM so if there is a tool for WHM better i guess.

Thanks,

Mike