Re: ** ssh to copy/ftp files with compress

  • From: Denis <denis.sun@xxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Wed, 24 Feb 2010 20:27:24 -0800 (PST)

I usually find the following (executed at the target server) is able to 
transfer a file much faster than directly scp. However, gzip will consume some 
CPU. 

ssh2 source_server 'cat ${FNAME}| gzip -c' | gunzip -c > ${FILELOC}/${FNAME}

Yu "Denis" Sun
Oracle DBA

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of A Joshi
Sent: Wednesday, February 24, 2010 1:38 AM
To: oracle-l@xxxxxxxxxxxxx
Subject: ** ssh to copy/ftp files with compress

hi,
  can someone give example for ssh to copy/ftp files with compress
across servers. i did find some eg on net 

scp [-Cr] /some/file [ more ... ] host.name:/destination/file and -C is
for compress - will this use compress? is there a way to use gzip and
tell degree of compress. any other suggestion.our network is very slow.
thanks. 


      

Other related posts: