Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TAR with an input file list?

343 views
Skip to first unread message

Richard

unread,
Mar 6, 1999, 3:00:00 AM3/6/99
to
Is there a way to TAR a list of files spread across multiple
directories?

e.g. tar cvf file.tar <input file list>??
email to learn...@home.com

Thanks in advance


Steve W. Jackson

unread,
Mar 6, 1999, 3:00:00 AM3/6/99
to
In article <36E03DF3...@home.com>, Richard <learn...@home.com> wrote:

:> Is there a way to TAR a list of files spread across multiple

Richard, check the man pages for tar. Prior to AIX 4 (meaning in 3.2.5 I
had for so long), the mksysb actually used tar. And this is precisely how
it worked -- it built a list of files in the /tmp filesystem and then
proceeded to tar only those files to tape for me. I'm not positive (don't
have access to my AIX system from home), but I think it's something like a
-L or -l switch.

= Steve =

--
Steve W. Jackson, Montgomery, Alabama
http://www.mindspring.com/~sjacksn/stevehome.html

Bruce Spencer

unread,
Mar 6, 1999, 3:00:00 AM3/6/99
to
The following will work. However there is a limit on the number file names
that you can input to the tar command.

tar -cvf /dev/rmt0 $( cat input_file_list )

Richard wrote in message <36E03DF3...@home.com>...

Stefan Llabres

unread,
Mar 7, 1999, 3:00:00 AM3/7/99
to
Hi.

It is just:

"tar -c -v -f <file> -L<inputfilelist>"
e.g. "tar -c -v -f /dev/rmt0 -Linputlist.txt"

Steve W. Jackson

unread,
Mar 7, 1999, 3:00:00 AM3/7/99
to
In article <36E28AC5...@baden-online.de>, Stefan Llabres
<slla...@baden-online.de> wrote:

:> Hi.


:>
:> It is just:
:>
:> "tar -c -v -f <file> -L<inputfilelist>"
:> e.g. "tar -c -v -f /dev/rmt0 -Linputlist.txt"

Yes, it's the -L I could't positively remember. But you don't need all
those other dashes!! Most commonly people will tell you to use "tar -cvf
/dev/rmt0 -Linputlist", but I will tell you that I've adopted the newer
form that doesn't even require the first dash, making it "tar cvf
/dev/rmt0 -Linputlist". Now I should also suggest that you make sure the
contents of the inputlist file are not absolute paths or you could face
troubles extracting things later if you want individual files or
directories.

Norman Levin

unread,
Mar 7, 1999, 3:00:00 AM3/7/99
to
This is not the 'newer' form. It is the bsd form that says if there
are no options, why bother with the dashes. I personally think
it is sloppy. It is what allows ps -a and ps a to be separate
commands.
--
Norman Levin
vm/dynAmIX inc.


Robert Kampermann

unread,
Mar 9, 1999, 3:00:00 AM3/9/99
to
Just write a file a file in /tmp/tarlist, containing the directory to save
and the try:
tar cvf /dev/rmt0 ´cat /tmp/tarlist´ ,this work fine..
Richard schrieb in Nachricht <36E03DF3...@home.com>...

Markus Schuettler

unread,
Mar 14, 1999, 3:00:00 AM3/14/99
to
I think the AIX tar command support then -L option. RTFM :-)

Markus

Bruce Spencer <basp...@silcon.com> wrote:
> The following will work. However there is a limit on the number file names
> that you can input to the tar command.

> tar -cvf /dev/rmt0 $( cat input_file_list )

> Richard wrote in message <36E03DF3...@home.com>...

0 new messages