Hello,
I have a working VPN between two sites (main-site and remote-site). I would like to do an rsync of some folders from the remote site to the main-site. I can do this by hand:
Code:
#rsync -avz admin@10.31.79.89:/Users/admin/html /home/joe/Desktop
This works just fine as long as I suppply the password for
admin.
I would like to setup a cron job for this. I have seen lots of documentation of how to do this over ssh (with keys etc.) but since this is already encrypted I dont want to add more encryption because the link is slow.
I have tried using the -i password-file=file_containing_password but I get errors:
Code:
building file list ... rsync: link_stat "/home/joe/password-file=/home/joe/pswd.txt" failed: No such file or directory (2)
I am using Debian 4.0 at the main-site and the remote-site has a Mac O.S. 10 box.
Like I said if I do it by hand, everything works, but i would like to automate the process.
Thanks for any help you can give.
P.