Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to sync the contents of a directory on my Windos machine with a UNIX server.

I have spent a long while reading the rsync documentation and have come up with the following command:

rsync --progress -avzC --stats --force --dry-run -e 'ssh -p 176'

I try to run this from the directory which I wish to sync from but the command fails.

Is the problem that I need to specify the directory I am syncing from?


share|improve this question
up vote 4 down vote accepted

yes, you need to at least have

rsync <source dir> <destination dir>

or in your case

rsync --progress -avzC --stats --force --dry-run -e 'ssh -p 176' <source dir> <destination dir>

You can replace the current directory with:

share|improve this answer
./ was the thing I was missing. Thanks! – Jon Nov 24 '09 at 16:12

Well, you didn't post the error message you're getting, but I think you answered your own question. Rsync requires that you specify both the source and destination paths.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.