Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 at 0:23

1 Answer 1

up vote 15 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
1  
Well, that's a relief! Thanks so much! –  Questionmark Mar 13 at 15:25
    
That's a relief but why not just print an error –  staticx Mar 13 at 19:35
1  
@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 at 19:38
    
@Anthon: Ah, that would make sense. I suppose a -t (for test) would be more verbose to me. –  staticx Mar 13 at 19:39
    
@0A0D Dry run of rsync is invoked with -n/--dry-run. –  oakad Mar 14 at 0:22

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.