rsync over SSH with cron in osx-environment
Posted
by
Martin
on Super User
See other posts from Super User
or by Martin
Published on 2011-10-24T07:43:44Z
Indexed on
2012/09/03
15:41 UTC
Read the original article
Hit count: 360
I want to automatically download files and folders from a Linux server to which I have an SSH (and FTP) account. The files shall be downloaded on a regular basis (I suppose a cron is the right tool to do so) onto an OS X machine.
I tried the following rsync command, which works fine:
rsync -avzbe ssh [email protected]:/www/htdocs/something/somefolder /Users/me/folder/foo/
However I have to enter the account's password every time (the SSH account on the server machine). The server is a managed one and I'm afraid I can't change the password.
Here are my questions:
- How do I bypass the entering of the password by storing it somewhere
- How do I automate this then correctly?
© Super User or respective owner