Skip to content

Commit

Permalink
Untangle comments about rsync on directories
Browse files Browse the repository at this point in the history
  • Loading branch information
cdkharris authored Jul 25, 2024
1 parent fd61fb6 commit bd6a82c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions _episodes/16-transferring-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,9 @@ If your home directory _is_ the destination, you can leave the destination
field blank, or type `~` -- the shorthand for your home directory -- for
completeness.

With `scp`, a trailing slash on the target directory is optional, and has
no effect. It is important for other commands, like `rsync`.
With `scp`, directories can be uploaded using the `-r` option. A trailing
slash on a source directory is optional, and has no effect. It is important
for other commands, like `rsync`.

> ## A Note on `rsync`
>
Expand Down Expand Up @@ -375,10 +376,10 @@ no effect. It is important for other commands, like `rsync`.
> {: .language-bash}
>
> As written, this will place the local directory and its contents under your
> home directory on the remote system. If the trailing slash is omitted on
> the destination, a new directory corresponding to the transferred directory
> will not be created, and the contents of the source
> directory will be copied directly into the destination directory.
> home directory on the remote system. If a trailing slash is added to the
> source, a new directory corresponding to the transferred directory
> will not be created, and the contents of the source directory will be
> copied directly into the destination directory.
>
> To download a file, we simply change the source and destination:
>
Expand Down

0 comments on commit bd6a82c

Please sign in to comment.