[DOCUMENTATION] Cmd 'ssh' copy files with gzipped on the fly

This commit is contained in:
Josef Glatz 2015-08-06 14:46:21 +02:00
parent 6ca4b6c8e7
commit 511c57f582

View File

@ -28,3 +28,7 @@ ssh user@example.com -C -c blowfish -X
# For more information, see: # For more information, see:
# http://unix.stackexchange.com/q/12755/44856 # 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 -