Need little help with


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Need little help with
# 1  
Old 12-16-2005
Need little help with little script

I am trying transfer 400gb worth of orcle files. I wrote this command and tried to incorporate gzip but it doesnt work..

Code:
cd /home/oracle/a; tar cvf - . |gzip -c .|ssh raman '(cd /tmp;gunzip -;tar xvf - )'&

This is my original script
cd /bcv/sblprd/u08/oradata/trxp; tar cvf - . |ssh raman '(cd /u08/oradata/trxp;tar xvf - )'&

but i get this error message.

Quote:
saiprd@takbkup2:/home/oracle > cd /home/oracle/a; tar cvf - . |gzip -c .|ssh raman '(cd /tmp;gunzip -;tar xvf - )'&
[4] 5156
saiprd@takbkup2:/home/oracle/a > a ./a 0 blocks
a ./b 0 blocks
a ./c 0 blocks
gzip: . is a directory -- ignored
sh: gunzip: not found.
Tar: blocksize = 0; broken pipe?

[4] + Done(3) cd /home/oracle/a; tar cvf - . |gzip -c .|ssh raman '(cd /tmp;gunzip -;tar xvf - )'&
saiprd@takbkup2:/home/oracle/a >

Last edited by jigarlakhani; 12-16-2005 at 01:02 PM..
# 2  
Old 12-16-2005
Why dont you skip the gzip/gunzip steps? 400GB is going to take time to transfer anyway... But to answer your question, the gzip is failing on your local server and is not present in your default PATH on the remote server.

Try running the command as:
Code:
cd /home/oracle/a; tar cvf - * |gzip -c |ssh raman '(cd /tmp;/full/path/to/gunzip -c - |tar xvf - )'&

This is not tested (and I am not too sure about the 'gunzip -c' part of the story).
# 3  
Old 12-16-2005
Quote:
Originally Posted by blowtorch
Why dont you skip the gzip/gunzip steps? 400GB is going to take time to transfer anyway... But to answer your question, the gzip is failing on your local server and is not present in your default PATH on the remote server.

Try running the command as:
Code:
cd /home/oracle/a; tar cvf - * |gzip -c |ssh raman '(cd /tmp;/full/path/to/gunzip -c - |tar xvf - )'&

This is not tested (and I am not too sure about the 'gunzip -c' part of the story).
Thanks blowtorch; that did it.
Jigar
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question