Welcome to the Linux Foundation Forum!

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

Options
persie.joseph
persie.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.joseph
    persie.joseph Posts: 4
    edited December 2019
    Options

    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 root@localhost:/tmp/receive/

    Versus

    rsync -av /tmp/transfer-lab/*.bin root@localhost:/tmp/receive/.

    What is the difference?

  • coop
    coop Posts: 915
    Options

    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.

Categories

Upcoming Training