mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
remove duplicate line and add a new common usage.
remove duplicate lines and add a new common usage of '-avz'
This commit is contained in:
parent
f2cd1a8b64
commit
5b80fe345f
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
> Does not allow transfer between two remote hosts
|
||||
> Can transfer single files or files matched by pattern
|
||||
|
||||
- transfer file from local to remote host
|
||||
- transfer file from local to remote host, it supports regex.
|
||||
|
||||
`rsync {{path_to_file}} {{remote_host_name}}:{{remote_host_location}}`
|
||||
|
||||
|
@ -12,13 +12,13 @@
|
|||
|
||||
`rsync {{remote_host_name}}:{{remote_file_location}} {{local_file_location}}`
|
||||
|
||||
- transfer all *.js files in current directory to host 'devbox' as user 'mike'
|
||||
- transfer file in archive and compress mode, it ensures symbolic link, device, attr, permissions, are preserved, and reduce the size.
|
||||
|
||||
`rsync *.js mike@devbox:~/projects/cakeStore/styles/`
|
||||
`rsync -avz {{path_to_file}} {{remote_host_name}}:{{remote_host_location}}`
|
||||
|
||||
- transfer a directory and all its children from a remote to local
|
||||
|
||||
`rsync -r mike@devbox:~/projects/cakeStore /Users/mike/devProjects/`
|
||||
`rsync -r {{remote_host_name}}:{{remote_folder_location}} {{local_folder_location}}`
|
||||
|
||||
- transfer file over SSH and show progress
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue