On Tuesday 16 June 2009, Kirk Wolf wrote:
> Try it - it seems to give you an archive with no files in it. After
> all, what would the file name in the zip directory be?
Well, yes and no. Let's just say "no named files". Unzip shows
something like this:
> unzip -l ../backup.zip
> Archive: ../backup.zip
> Length Date Time Name
> -------- ---- ---- ----
> 20480 06-19-09 20:27 -
> -------- -------
> 20480 1 file
Reading a little further in the man page, we find:
> The backup can be restored using the command
>
> unzip -p backup | tar xf -
It's sort of using zip in place of gzip or bzip2.
It's a little strange, but it actually works.
Cheers,
Bob
----
Bob Woodside
Woodsway Consulting, Inc.
[email protected]
http://www.woodsway.com
> On Mon, Jun 15, 2009 at 6:30 PM, Bob Woodside<[email protected]>
wrote:
> > On Monday 15 June 2009, Kirk Wolf wrote:
> >> I could be wrong, but I don't believe that zip allows input from
> >> stdin. If info-zip uses fopen() to open files, then it might be
> >> possible to read mvs datasets directly as input files.
> >
> > I've never tried it, but here's a quote from the zip man page:
> >> zip also accepts a single dash ("-") as the name of a
> >> file to be compressed, in which case it will read the file
> >> from standard input, allowing zip to take input from another
> >> program. For example:
> >>
> >> tar cf - . | zip backup -
> >
> > Cheers,
> > Bob
> >
> > ----
> > Bob Woodside
> > Woodsway Consulting, Inc.
> > [email protected]
> > http://www.woodsway.com
> >
> > -------------------------------------------------------------------
> >--- For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: GET IBM-MAIN
> > INFO Search the archives at
> > http://bama.ua.edu/archives/ibm-main.html
>
> ---------------------------------------------------------------------
>- For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html