tar/untar a folder and compress/uncompress on same hosts
mknod p.tar p
nohup compress < p.tar > p.tar.Z &
nohup tar -cvf p.tar 10.2.0 &
mknod p.tar p
nohup uncompress < p.tar.Z > p.tar &
nohup tar -xvf p.tar &
tar/untar a folder on different hosts
Allow ssh - Automatic Connection from source(client) to dest(server)
source> mknod pSource.tar p
source> nohup tar -cvf pSource.tar 10.2.0 &
dest> mknod pDest.tar p
source> nohup ssh -C oracle@bk001ora 'cat > /app/oracle/product/pDest.tar' < /app/oracle/product/pSource.tar &
dest> nohup tar -xvf pDest.tar &
tar/untar a folder and compress/uncompress on different hosts
Allow ssh - Automatic Connection from source(client) to dest(server)
source> rm -rf nohup.out; rm -rf pSource.tar; rm -rf pSource.Z; mknod pSource.tar p
source> nohup tar -cvf pSource.tar 10.2.0 &
source> mknod pSource.Z p
source> nohup compress < pSource.tar > pSource.Z &
dest> rm -rf nohup.out; rm -rf pDest.Z; rm -rf pDest.tar; mknod pDest.Z p; mknod pDest.tar p
dest> nohup uncompress < pDest.Z > pDest.tar &
dest> nohup tar -xvf pDest.tar &
source> nohup ssh -C oracle@db201epr 'cat > /app/oracle/product/pDest.Z' < /app/oracle/product/pSource.Z &
gzip / gunzip
#Same behaviour as above
gunzip httpd2
gunzip -c httpd2.gz > httpd2
gunzip & untar to another folder (no space on same folder)
cd dirOfGz
mknod p.tar p
nohup gunzip -c p.gz > p.tar &
cd dest
mknod p.tar p
nohup cat /dirOfGz/p.tar > p.tar &
tar -xvf p.tar
|