Re: Tar and untar command help

tarun singhal <[email protected]>
Newsgroups gmane.user-groups.linux.delhi
Message-ID <CAMu=87V4jZy3jQZykR6b+ZJG_2q7G-00TFfmL7ap9r8BhAaNbA@mail.gmail.com>
Hi,

For the data backup with tar command
# tar -zcvf filename.tar.gz filename

For untar the tar file
# tar -xvzf filename.tar.gz




*
Regards,
Tarun Kumar Singhal
9899478894*


On Fri, Apr 12, 2013 at 6:43 PM, Cool G <[email protected]> wrote:

> 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
> _______________________________________________
> Ilugd mailing list
> Ilugd-cunTk1MwBs8/[email protected]
> http://frodo.hserus.net/mailman/listinfo/ilugd
>
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.