LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   /bin/tar: Removing leading `/' from member names (https://www.linuxquestions.org/questions/linux-general-1/bin-tar-removing-leading-%60-from-member-names-269508/)

statistic 01-06-2009 03:48 PM

Thanks for for all the information guys :)

DrCR 02-09-2010 08:19 PM

Just wanted to say thanks for a great thread. I personally skipped the absolute paths (P) option and just navigated to the directory containing the folder I wanted to tar, e.g.

Note: This was in OSX 10.4

tar -cjf /Volumes/10.10.0.123/TestDir/TESTTHIS.tbz TESTTHIS
instead of
tar -cjf /Volumes/10.10.0.123/TestDir/TESTTHIS.tbz /foo/TESTTHIS


Wanted to post a side note for OSX users, you may want to consider running
Mac OS X v10.4 and later: How to prevent .DS_Store file creation over network connections
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
or
OS X, tar and Resource Forks
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true

if you're in a multi-OS environment.


All times are GMT -5. The time now is 07:32 PM.