Task Scheduler and rsync

Hello experts,

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/backup/

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):

http://www.cygwin.com/ml/cygwin/2001-01/msg00063.html
-------------
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!

Sean

LVL 3
sow56091Asked:
Who is Participating?
 
ee_ai_constructConnect With a Mentor Commented:
Question answered by asker or dialog deemed valuable.
Closed, 500 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0
 
sow56091Author Commented:
Not heading the suggestion in the link, I used keychain instead of ssh-agent and things worked great. For the scheduling, I installed cron as a service and let it run. I'm requesting a points refund.

Sean
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.