1
0
Fork 0
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:
Ruben Vereecken 2016-01-18 11:36:14 +01:00
commit 5f1ce2c2d2

View file

@ -6,23 +6,23 @@
- 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:
`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:
`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:
`rsync -ru mike@devbox:~/projects/ ./projects/`
`rsync -ru {{remote_host_name}}:{{remote_folder_location}} {{local_folder_location}}`
- Transfer file over SSH and show progress: