Quantcast
Channel: Admins Goodies » stderr
Viewing all articles
Browse latest Browse all 10

tar: kill the error message: ‘tar: Removing leading `/’ from member names’

$
0
0

Question

I run this from a cronjob:

tar -czvf /var/backups/svn.tgz /var/svn/*

That generates this on stderr:

tar: Removing leading `/' from member names

I would like to avoid this because it is not a real error (for me!).
I want on stderr only things that I should worry about?

How can I kill that message?

I have the feeling that it is a matter of using the tar -C option but I am not sure and I don’t know how.

Thanks for the help,
Dan

Answer

your options:
-P, –absolute-names : don’t strip leading `/’s from file names
or
-C /
(and a relative path for things to go into the tar)
…depends on what you want.


Viewing all articles
Browse latest Browse all 10

Trending Articles