mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:22:07 +02:00
Merge branch 'master' of git://github.com/matthewgao/tldr into matthewgao-master
Conflicts: pages/common/rsync.md
This commit is contained in:
commit
5f1ce2c2d2
1 changed files with 5 additions and 5 deletions
|
@ -6,23 +6,23 @@
|
||||||
|
|
||||||
- Transfer file from local to remote host:
|
- Transfer file from local to remote host:
|
||||||
|
|
||||||
`rsync {{path_to_file}} {{remote_host_name}}:{{remote_host_location}}`
|
`rsync {{path/to/file}} {{remote_host_name}}:{{remote_host_location}}`
|
||||||
|
|
||||||
- Transfer file from remote host to local:
|
- Transfer file from remote host to local:
|
||||||
|
|
||||||
`rsync {{remote_host_name}}:{{remote_file_location}} {{local_file_location}}`
|
`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 (to preserve attributes) and compressed (zipped) mode:
|
||||||
|
|
||||||
`rsync *.js mike@devbox:~/projects/cakeStore/styles/`
|
`rsync -az {{path/to/file}} {{remote_host_name}}:{{remote_host_location}}`
|
||||||
|
|
||||||
- Transfer a directory and all its children from a remote to local:
|
- 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 only updated files from remote host:
|
- Transfer only updated files from remote host:
|
||||||
|
|
||||||
`rsync -ru mike@devbox:~/projects/ ./projects/`
|
`rsync -ru {{remote_host_name}}:{{remote_folder_location}} {{local_folder_location}}`
|
||||||
|
|
||||||
- Transfer file over SSH and show progress:
|
- Transfer file over SSH and show progress:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue