I am trying to backup my laptop (read: certain folders) securely over the internet to my *nix box via ssh. I can do the backup, but I'm having problems with the scheduling. Here's the scenario:
I have an rsync backup job running on a windows client via cygwin. I say "backup job" but that is the problem. It is not scheduled. How can I schedule the rsync program running from inside cygwin? Is that even the right approach?
Here's the command I'm using:
rsync --exclude "folder/" -ave ssh "/cygdrive/c/documents and settings/name/My Documents/" name@place:/home/name/back
By the way, I would like to use key-based authentication (like pageant, but through cygwin), although i've read that it's not a good idea (see below). Any ideas to that would be great too (but not required for the points on this question):
under unix, such scenario works without problems, because unix kernel
checks permissions when program tries to access AF_UNIX socket. For
AF_INET sockets, however, connections are anonymous (read
"insecure"). Imagine, that you have cygwin ssh-agent running.
malicious hacker may portscan your box, locate open port used by
ssh-agent, open connection to your ssh server, receive RSA challenge
from it, send it to your ssh-agent via open port he found, receive RSA
response, send it to ssh server and voila, he successfully logged in
to your server as you.
Thanks in advance!