Re: interesting tar question

From: John Dunn (john.dunn@SEFAS.CO.UK)
Date: Mon Mar 31 2003 - 09:45:24 EST


Basically I have a single directory full of files and have to create a
single tar file which when untarred will place each file into a specific
directory/subdirectory based upon values in the file. That directory
structure will not exist on the source AIX system, in fact the target
directory names will be windows directories, e,g
D:\directoryname\subdirectoryname. I can assume that the toplevel directory
D: will exist on the target machine but nothing else will.

John

-----Original Message-----
From: Green, Simon [mailto:Simon.Green@EU.ALTRIA.COM]
Sent: 31 March 2003 15:28
To: aix-l@Princeton.EDU
Subject: Re: interesting tar question

You can't do this with tar.
You might be able to achieve what you want with pax, using the -i flag.

There may be a better solution; what are you tying to do?

Simon Green
Altria ITSC Europe s.a.r.l.

AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/

N.B. Unsolicited email from vendors will seldom be appreciated.

> -----Original Message-----
> From: John Dunn [mailto:john.dunn@SEFAS.CO.UK]
> Sent: 31 March 2003 15:04
> To: aix-l@Princeton.EDU
> Subject: interesting tar question
>
>
> I have a need to create a tar file that will create a
> directory structure on
> the target system that does not exist on the source system.
>
> i.e, although all the files will be in a single directory on
> the source
> system, I want to specify, on an individual basis, the path
> for each file on
> the target platform.
>
> Is this possible?



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:42 EDT