Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Task Scheduler and rsync

Posted on 2005-04-07
2
Medium Priority
?
580 Views
Last Modified: 2011-09-20
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

0
Comment
Question by:sow56091
2 Comments
 
LVL 3

Author Comment

by:sow56091
ID: 13749036
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
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 13749181
Question answered by asker or dialog deemed valuable.
Closed, 500 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
Today as you open your Outlook, you witness an error message: “Outlook is using an old copy of your Outlook Data File…”. Probably, Outlook is accessing an old OST file.
Viewers will learn how to use the Hootsuite Dashboard.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question