[ilugd] Tar and untar command help
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@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Tar and untar command help
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 hkco...@gmail.com 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@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Tar and untar command help
On 12 April 2013 18:43, Cool G hkco...@gmail.com 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 [...] As crystal balls are in short supply, it might help if you specify the OS. If Linux, what distro, and which version of the distro? Regards, Gora ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd