Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rsync's behavior when uploading a directory #454

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions _episodes/16-transferring-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ 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`, a trailing slash on the target directory is optional, and has no effect.
A trailing slash on a source directory is important for other commands, like `rsync`.

> ## A Note on `rsync`
>
Expand Down Expand Up @@ -375,10 +375,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
Loading