Linux Tar Getting Removing leading `\' from member names When Executed
RegisterLogin
Webune Forums » Linux Hosting » Linux Tar Getting Removing leading `\' from member names When Executed
Linux Tar Getting Removing leading `\' from member names When Executed
Post Description: Linux Tar Getting Removing leading `\' from member names When Executed
Tags: Linux, Tar, Getting, Removing, leading, from, member, names, When, Executed
This Post Was Posted On Nov 15, 2009 By pinguin #814
Post Description: Linux Tar Getting Removing leading `\' from member names When Executed
Tags: Linux, Tar, Getting, Removing, leading, from, member, names, When, Executed
This Post Was Posted On Nov 15, 2009 By pinguin #814
Linux Tar Getting Removing leading `\' from member names When Executed by pinguin
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
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
charlie
#3502 1
for example, lets say users might come to you and ask you to restore files from their home directories, you can do so pretty easy by using the --extract (x) tar command like this:
lets say you have this commnad:
this sequence involves changing to the root directory and issuing a relative path to the file or directory that must be restored. this is required because tar normally strips away the leading / in the files it backs up, so the files are recorded in the archive as relative filenames. if you try to restore the file with an absolute filename, ti will fail.
lets say you have this commnad:
# cd /
# tar xvlpf /dev/st0 home/username/filename
# tar xvlpf /dev/st0 home/username/filename
this sequence involves changing to the root directory and issuing a relative path to the file or directory that must be restored. this is required because tar normally strips away the leading / in the files it backs up, so the files are recorded in the archive as relative filenames. if you try to restore the file with an absolute filename, ti will fail.
Feb 21, 2010 Reply Report abuse
brando
#1032 2
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.
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.
Feb 21, 2010 Reply Report abuse
coopers
#1033 3
when i first saw my error that said: tar removing leading from member names remove i thot i should conatc my top friends names from my database and then what happened i delete account and remove the names in the catalog list but i didnt realize that i had also removed the name of the mailing list. i did not want to remove any name when i was calling the list much delete thes names . so what i did i autocomplete the list instead of delete the skype user name which came with the database after the isntallation. it worked for a while but then after a couple of days the errror came back. so i had to reinstall the whole thing, then it didnt happen again. but this is normal when you are taring in a windows.. yeah, i know, i will start using linux instead of windows. the software is gpl so i think its in beta so far. i should have learned my lesson. but it looks like from your post that this also happens in linux anywayz so it shouldn't matter. so im not going to worry for now. thanks
Jul 20, 2009 Reply Report abuse
Gonatan
#1031 4
Just found this: https://forum.bytemark.co.uk/viewtopic.php?pid=1937
This may help you with your question
This may help you with your question
Mar 16, 2007 Reply Report abuse
Leave Your Comments...
©2011 Webune Forums - Mon Dec 19, 2011 9:36 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3