mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-19 07:47:40 +03:00
rsync: update page (#11375)
* rsync: update page --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
0638b8d95d
commit
4bf7d6eb4c
@ -1,14 +1,14 @@
|
||||
# rsync
|
||||
|
||||
> Transfer files either to or from a remote host (but not between two remote hosts), by default using SSH.
|
||||
> To specify a remote path, use `host:path/to/file_or_directory`.
|
||||
> To specify a remote path, use `user@host:path/to/file_or_directory`.
|
||||
> More information: <https://download.samba.org/pub/rsync/rsync.1>.
|
||||
|
||||
- Transfer a file:
|
||||
|
||||
`rsync {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- Use archive mode (recursively copy directories, copy symlinks without resolving and preserve permissions, ownership and modification times):
|
||||
- Use archive mode (recursively copy directories, copy symlinks without resolving, and preserve permissions, ownership and modification times):
|
||||
|
||||
`rsync --archive {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
@ -24,9 +24,9 @@
|
||||
|
||||
`rsync --recursive {{path/to/source}}/ {{path/to/destination}}`
|
||||
|
||||
- Recursively copy directories, use archive mode, resolve symlinks and skip files that are newer on the destination:
|
||||
- Use archive mode, resolve symlinks and skip files that are newer on the destination:
|
||||
|
||||
`rsync --recursive --archive --update --copy-links {{path/to/source}} {{path/to/destination}}`
|
||||
`rsync --archive --update --copy-links {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- Transfer a directory to a remote host running `rsyncd` and delete files on the destination that do not exist on the source:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user