Hi there, thanks for the interesting question. Could you clarify exactly what you are trying to do? I infer from the command that you want to tar gzip Oracle directory (or file?) that is located in /d01 directory? I have tried the command you have supplied and it worked!
- Code: Select all
kamil@m1730:/tmp/tar$ tar cvf - -C /d01 Oracle | gzip -1 > ./d01_oracle_db.tar.gz
Oracle/
Oracle/test
Another way of achieving the same thing is
- Code: Select all
cd /d01; kamil@m1730:/tmp/tar/d01$ tar czvf /some_path/d01_oracle_db.tar.gz Oracle
Oracle/
Oracle/test
Can you also be a bit more specific as to what version of tar and OS u are using?
- Code: Select all
kamil@m1730:/tmp/tar$ tar --version
tar (GNU tar) 1.19
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
kamil@m1730:/tmp/tar$ uname -a
Linux m1730 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux