Tar and untar command help

Cool G <[email protected]>
Newsgroups gmane.user-groups.linux.delhi
Message-ID <CANt=2E7j060wT63RkThtPrjRe3E_vfMLiq7cF4wKbf7ny3T+tg@mail.gmail.com>
Hi,
I 'm using below command to backup a directory and its sub-directories -
tar -C /u01/app/oracle/product/fmw -zcvf /home/oracle/test/fmw.tar.gz

but when extracting to specific directory i see u01 created
tar -zxvf /home/oracle/test/fmw.tar.gz -C /u01/app/oracle/product/fmw

cd /u01/app/oracle/product/fmw
ls -l
u01
fmw

Question is to backup /u01/app/oracle/product/fmw direcotry and its
file/subdirectories  and while restoring it should overwrite the fmw
directory.

Any help ?

Thanks,
hk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.