rsync script ...

Hi all,

I am a newbie in unix and i want a script which should sync files between two servers like rsync.

The condition is that.

after rsync command is completed it should also list me how many files has been changed during the rsync execution.

if the rsync execution has failed , then it should mail the developer that rsync has failed.

Please help... Thanks in advance.... Sorry for expecting too much ...

What have you tried? Where are you getting tripped up? Post those things and you'll get some good feedback.

I did a basic script which executes the rysnc command
which copies files between one server to another.

I need a script to check if the rsync command has overwritten the old files or if the rsync has failed.

If rsync has failed i need to send a mail to devl