up vote 1 down vote favorite
share [g+] share [fb]

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

link|improve this question

40% accept rate
feedback

2 Answers

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:

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

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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