Linux Tar Getting Removing leading `/' from member names When Executed
Description: Linux Tar Getting Removing leading `/' from member names When Executed
Tags: linux ,tar ,getting ,removing ,leading ,from ,member ,names ,when ,executed
hi, can anyone helpme, when i send the tar command, i get this:
CODE:
Removing leading `/' from member names
when i look at my directory, i see that the tar has been created, but i was wondering if this is going to cause a problem when i try to untar it since this is going to be a back up file and if there any goes wrong, i want to make sure i am doing it right. not sure if i executed incorectly on my linux server.
thanks
jayaprakash Thu Oct 13, 2011 thanks ashish
Vidya Thu Jul 21, 2011 Thanks Asish..your comment helped me solve my "tar: Removing leading `/' from member names" warning.
Asish Tue Jun 29, 2010 Give the option P to preserve the leading /
ie: tar -cvPf <tar fill name> <folder/file to be tarred>
A Sun Aug 24, 2008 try:
tar czf /tmp/myarchive.tar.gz -c / etc home
apparently the order is sometimes important :-)
stevee Fri Jul 04, 2008 hi,
this is normal for tar, the / is a relative directory boundary in the tree structure, and tar is aware and will replace them correctly when untarring - you should test your backup anyway before relying on it, on a spare partition or pc and check it untars correctly using
#tar -xvf filename.tar
you can list the files in the tarball without untarring them as a rough check maybe if its not to big to read or your fastidious..
#tar -tvf file.tar where -t is "list", -v "verbose" -f "file" -x " extract
also read the man pages on commands you use: #man tar
cheers
stevee
mindelini Thu Jun 26, 2008 thank you. very helpful.
brando Sat Mar 17, 2007 this is what that post says:
he "Backup Ideas" page[1] has an example shell script meant to be executed as a daily cron job.
That example includes an invocation of the tar command like this:
tar cj /etc /home/ /usr/local > $PREF-$$.tar.bz2
If you run a script containing a tar invocation of that form, you'll notice that root will get an e-mail message every time the script runs, with stderr warnings from the tar command saying "Removing leading `/' from member names".
You can eliminate those tar warnings by instead invoking the tar command like this:
tar cj -C / etc home usr/local > $PREF-$$.tar.bz2
The effect will be the same except that tar will no longer emit the "Removing leading `/' from member names" warnings to stderr -- because the -C option and slash argument tell tar to cd to the root directory before tarring up whatever directories or files are specified in the rest of the arguments list.
So you'll no longer get the unnecessary mail from that cron job -- you'll only get mail if something has actually gone wrong with the job.
Gonatan Fri Mar 16, 2007 Just found this: https://forum.bytemark.co.uk/viewtopic.php?pid=1937
This may help you with your question
Information
Title: Linux Tar Getting Removing leading `/' from member names When Executed
Info: This Post Has Been Viewed 0 Times Since
Date: Sat Jan 13, 2007
Author
pinguin Received 8 Replies #408
Related Content
Related Pages
Related Sites
Add Your Website
Share
URL:

Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
Embed:

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE::

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums