Welcome to the Linux Foundation Forum!

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

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

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

    Versus

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

    What is the difference?

  • Posts: 916

    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.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training