LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-19-2005, 02:54 PM   #1
cmd0a0
LQ Newbie
 
Registered: Oct 2004
Posts: 13

Rep: Reputation: 0
TAR Archive file - need relative path


Currently ftp'ing tar archive file to another server. Via the following command: tar -cvf /u03/app/applmgr/interface/xbc_dump/brkr_stmt.tar /u03/app/applmgr/interface/xbc_dump;

I need to be able to create a relative path in the archive file for use by recipient. Via man, see args -C, however, still not able to create files in tar with relative path...they all begin with /. Also attempted use find . in tar command. Although it did generate some relative paths, not all.

Any assistance would be appreciated. Thank you.
 
Old 10-19-2005, 03:19 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Code:
tar -zPvcf
the "P" is for relative $PATHS
 
Old 10-19-2005, 03:57 PM   #3
cmd0a0
LQ Newbie
 
Registered: Oct 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the quick resp. We are using IBM AIX. There is no P arg. Please advise.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find a relative path to another directory bahadur Programming 9 04-04-2005 08:52 PM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 01:35 AM
Problem creating tar.gz archive - File changed as we read it doctorwebbox Linux - General 1 02-04-2004 06:59 PM
tar - how to extact only a single file from a archive? bkeating Linux - Newbie 3 10-23-2003 04:42 PM
Relative Path? mikeshn Linux - General 3 05-10-2002 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration