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?
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).
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).