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
|