1752625 Members
4585 Online
108788 Solutions
New Discussion юеВ

TAR command

 
ram_reddyprasad
New Member

TAR command

Hello Everyone,

when i am trying to

$ tar -czvf /backup/aaa/cb.tar.gz /home/oracle/scripts
tar: z: unknown option
tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...

what is the error....

Thanks,
7 REPLIES 7
Robert-Jan Goossens
Honored Contributor

Re: TAR command

Hi,

Your tar version does not support the uncompress/unzip function.

http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.22/

Regards,
Robert-Jan
ram_reddyprasad
New Member

Re: TAR command

Thanks Robert-Jan

at prasent which command i need to follow to take the backup in zip ....

Regards,
Ram.
Kapil Jha
Honored Contributor

Re: TAR command

make a tar (cvf) and then zip it with gzip.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Steven Schweda
Honored Contributor

Re: TAR command

> make a tar (cvf) and then zip it with gzip.

Less crude would be something like:

tar cvf - /home/oracle/scripts | \
gzip > /backup/aaa/cb.tar.gz

which, I believe, is essentially what GNU
"tar" does for "-z". Works with bzip2, too,
or any other filter-like compression program,
whether your "tar" program knows about it or
not.

Sometimes it pays to know how to do things
the old-fashioned way (before "-z" existed).
dirk dierickx
Honored Contributor

Re: TAR command

sure you should know how it works, and what the alternatives are, just in case.

but, common, we admins are lazy bastards, if i can replace a 20 char command with a single letter, i'm happy ;)
Steven Schweda
Honored Contributor

Re: TAR command

> [...] lazy [...]

I'm so lazy (or stupid) that I can barely
remember one way to do anything, so I try to
remember the one way which will work
anywhere.
dirk dierickx
Honored Contributor

Re: TAR command

i'm even more lazy, i run everything on one machine! so i don't have to learn anything else :P