rsync ksh

hello all I would need a rsync script in ksh
I need to synchronize 2 servers: A and B
Server B has to find the files every day and replace them with those present from server A

can you halp me??

tnx