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 firstname.lastname@example.org:/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?