Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

To make the story short, I did an rsync:

rsync -avP root@exampleserver.com:/tmp/

And I forgot to put in my source directory...

I really meant to run:

rsync -avP /tmp/ root@exampleserver.com:/tmp/

It printed a bunch of files, but I don't know where it copied them because I didn't specify a destination. Does anyone know what happened? I did an ls on the current folder, but I didn't find anything.

share|improve this question
I'd assume you'd just de-rez. – Jason C Mar 14 '14 at 0:23
up vote 22 down vote accepted

From man rsync:

   Usages with just one SRC arg and no DEST arg will list the source files
   instead of copying.

this as explanation below the invocation options, for you the invocation matches:

Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST]
share|improve this answer
Well, that's a relief! Thanks so much! – Questionmark Mar 13 '14 at 15:25
That's a relief but why not just print an error – Brian Mar 13 '14 at 19:35
@0A0D actually it is a feature that I have used. You first run without a destination to see what file are going to involved and make sure those are the right ones, and then you reissue the command with the destination appended. – Anthon Mar 13 '14 at 19:38
@Anthon: Ah, that would make sense. I suppose a -t (for test) would be more verbose to me. – Brian Mar 13 '14 at 19:39
@0A0D Dry run of rsync is invoked with -n/--dry-run. – oakad Mar 14 '14 at 0:22

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.