Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-08-2007, 07:28 PM
|
#1
|
Member
Registered: Oct 2005
Posts: 339
Rep:
|
tar: Removing leading `/' means?
I'm just wondering what does this mean :
tar: Removing leading `/' from member names
I successfully run tar and created archive. I'm just wondering why is this appearing. Could it affect tar performance? Here is my command:
tar -czvf /home/backuppc/rbldns.tar.gz /var/lib/rbldns --exclude /var/lib/rbldns/var
Also, is there a test how can I verify if tar is corrupted?
|
|
|
11-08-2007, 07:37 PM
|
#2
|
Member
Registered: Dec 2003
Location: Washington, DC
Distribution: Ubuntu 7.04
Posts: 73
Rep:
|
I don't remember ever seeing this myself, but it probably just means that the archive you created has the '/'s removed so that when you untar the archive into a directory of your choosing, you won't have an extra '/' in there. So, for instance, you've tared the directory /var/lib/rbldns. Now let's say you want to untar that into a directory '/some/directory/'. If tar didn't strip the leading '/'s, then the result would be something like '/var/lib/rbldns//some/directory'. That is, you have an extra '/' in there that you don't want. That's my interpretation of what's going on.
|
|
|
11-08-2007, 07:48 PM
|
#3
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
Quote:
tar interprets relative file names as being relative to the working directory. tar will make all file names relative (by removing leading slashes when archiving or restoring files), unless you specify otherwise (using the ‘--absolute-names’ option). See section Absolute File Names, for more information about ‘--absolute-names’.
|
From the GNU Tar book.
|
|
|
11-08-2007, 08:17 PM
|
#4
|
Member
Registered: Oct 2005
Posts: 339
Original Poster
Rep:
|
I added -P into -czvf and it is now oks. Probably its the absolute path
|
|
|
All times are GMT -5. The time now is 01:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|