View Single Post

  #1 (permalink)  
Old 04-22-2006, 12:40 AM
puppen puppen is offline
Member
User
 
Join Date: Mar 2006
Posts: 63
Rep Power: 0
puppen
Default Require shell script using rsync

Dear All.

I require a shell script using rsync. I have two Linux servers both are identical. I want to copy data from one server to another server in every 1 hour using rsync and I want to put in Cron Script.

I tried this but when I do rsync it asks for password even I give --password-file option but no luck.

Example :- rsync -avz server1:/mail server2:/mail
I wan to put this in cron scheduler , so it copy all data every day in a gap of one hour and this script should start every day after 6: PM and stop at 2 AM .

Regards.
Puppen
Reply With Quote