Friday, December 5, 2008

Using 7za, scp, and imp from the command line

Here's how to add the contents of multiple directories to the same zip file using command line:

7za -tzip a KCC4.zip src/* -r
7za -tzip a KCC4.zip conf/* -r
7za -tzip a KCC4.zip data-dumps/* -r


Here's how to use scp from the command line to copy a file from the local directory to the remote servers /tmp directory:

scp KCC4.zip purisma@as01.corp.purisma.com:/tmp/KCC4.zip


And to scp an entire directory:
scp -r mydatafordnb-3.7.1-Cushman8 purisma@ps03.corp.purisma.com:/tmp

Here's how to call Oracle's imp command from the command line

imp system/purisma1@vanredha file=kcc4_dmp.dmp fromuser=kcc4 touser=kcc4

No comments: