mirror of
https://github.com/Erreur32/cheat.git
synced 2025-01-03 11:32:17 +01:00
[DOCUMENTATION] Cmd 'ssh' copy files with gzipped on the fly
This commit is contained in:
parent
6ca4b6c8e7
commit
511c57f582
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue