Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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' root@mydomain.com:/home/mydirectory

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?

Thanks

share|improve this question

2 Answers 2

up vote 3 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

 
discard

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.