Task Scheduler and rsync

Posted on 2005-04-07
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):
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!


Question by:sow56091
    LVL 3

    Author Comment

    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.


    Accepted Solution

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

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    This video demonstrates basic masking and how to edit the mask to reveal the desired image.
    Viewers will learn how to use the Hootsuite Dashboard.

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now