mirror of
https://github.com/cheat/cheat.git
synced 2024-12-20 03:35:05 +01:00
[DOCUMENTATION] Cmd 'ssh' copy files with gzipped on the fly
This commit is contained in:
parent
6ca4b6c8e7
commit
511c57f582
@ -28,3 +28,7 @@ ssh user@example.com -C -c blowfish -X
|
||||
|
||||
# For more information, see:
|
||||
# http://unix.stackexchange.com/q/12755/44856
|
||||
|
||||
# Copy files and folders through ssh from remote host to pwd with tar.gz compression
|
||||
# when there is no rsync command available
|
||||
ssh user@example.com "cd /var/www/Shared/; tar zcf - asset1 asset2" | tar zxf -
|
||||
|
Loading…
Reference in New Issue
Block a user