Welcome to the Linux Foundation Forum!

Exercise 10.2: Use rsync over ssh to add the *.bin files only to the previously created folder

persie.josephpersie.joseph Posts: 4
edited December 2019 in LFS211 Class Forum

I don't think it's clear what exactly the point of this lab is. What makes it more confusing is usage of the words "only to the previously created folder" which I believe is the /tmp/receive folder. only to the previously created folder? Where else would it get added/copied?

Perhaps it needs some rewording.

Comments

  • persie.josephpersie.joseph Posts: 4
    edited December 2019

    Please note, I get the same result from executing this command with or without the trailing period in the destination argument.

    rsync -av /tmp/transfer-lab/*.bin [email protected]:/tmp/receive/

    Versus

    rsync -av /tmp/transfer-lab/*.bin [email protected]:/tmp/receive/.

    What is the difference?

  • coopcoop Posts: 437

    This is because "." just indicates the current directory, so using the . or not makes no difference. I doubt the author intended to make a point about this, in fact the "." in the second command might have been meant as sentence punctuation and eventually wound up in the lab description :wink: So an accidental learning exercise.

Sign In or Register to comment.