Linux – What happens when you rsync without a destination

file-copylinuxrsync

To make the story short, I did an rsync:

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

And I forgot to put in my source directory…

I really meant to run:

rsync -avP /tmp/ user@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.

Best Answer

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]
Related Question