🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #10258

Compress Huge File 2/3

#10258
From: Sheldon Sawatzky
Date: Thu, 10 Dec 1992 20:50
99 lines
3682 bytes
--continued... Part 2/3

Echo Sum these sizes; the sum should equal the size of the file
    C:\ZBACKUP.ZIP.
Echo .
Echo *** ZBACKUP is Finished ***
GoTo Done

:Help
if not exist c:\zbackup.hlp Goto NoHlp
type c:\zbackup.hlp | more
GoTo Done
:NoHlp
Echo Please copy the file ZBACKUP.HLP to C:\ZBACKUP.HLP and reissue
       ZBACKUP ?
Echo or edit this file with your favorite editor to display it.
GoTo Done
:WrapUp
REM In case called from a Shell or Windows, pause to read error messages.
pause

:Done
if exist c:\C-Disk.DIR erase c:\C-Disk.DIR
REM End ZBACKUP.BAT

   -----------------------ZBACKUP.HLP follows---------------------------
                            ZBACKUP.BAT
                      H. D. Knoble - 2/13/92

                      ZBACKUP - Zip Backup Utility

PURPOSE: To backup all filespecs specified in the index file,
C:\ZBACKUP.INX, in PKZIP (by Phil Katz) format to diskette(s) in
drive A:

SYNTAX: ZBACKUP                or        ZBACKUP ?

REQUIREMENTS: There is enough disk space in the root directory of C:
to hold the file ZBACKUP.ZIP. Index file C:\ZBACKUP.INX must be
present.

RESULTS: The file C:\ZBACKUP.ZIP will be created such that all files
specified in the file C:\ZBACKUP.INX will be compressed to
C:\ZBACKUP.ZIP. The The Backup file will include pathnames.

DETAILED USE: BACKUP, VIEWING CONTENTS, AND RESTORE

The file A:\ZBACKUP.INX is a sample ASCII index file; the index file
can contain any valid DOS filespec including wildcards; it may
contain filespecs from any valid mixture of PC drives.

 TO DISPLAY THIS DOCUMENTATION Issue: ZBACKUP ?

 TO DO AN ACTUAL BACKUP OF SELECTED FILES Issue:
  1) EDIT C:\ZBACKUP.INX        and make sure this inclusive list suits
you.
  2) ZBACKUP                    to do actual backup

 TO RESTORE Issue:
  0) RESTORE B: C: /D   this should display the BACKUP contents as the
single
                        file ZBACKUP.ZIP
  1) RESTORE B: C:      this puts B:\BACKUP.001, .002, ...back to
C:\ZBACKUP.ZIP
  2) MD C:\TEMP
     CD C:\TEMP         create a subdirectory to hold restored files.
     PKUNZIP -d -j C:\ZBACKUP.ZIP filespec
     e.g., PKUNZIP -d -j C:\ZBACKUP.ZIP WATFOR77\*.FOR
           will restore what might have been C:\WATFOR77\*.FOR to
           C:\TEMP\WATFOR77\*.FOR in a safe way, prompting to replace any
           filespecs already there.

   NOTE: If only one diskette is needed to hold your C:\ZBACKUP.ZIP
file, then the file A:\BACKUP.001 is in fact a Zip file and may be
treated as such. I.e., DOS 5.0 Backup doesn't alter C:\ZBACKUP.ZIP;
so if it fits on one diskette it remains a Zip file under the
fileid, BACKUP.001. Thus in this case Steps 0 and 1 above could be
eliminated and at Step 2 issue instead: PKUNZIP -d -j A:\BACKUP.001
filespec.

 TO MAKE A DIRECTORY, ASCII TEXT FILE BACKUP.DIR, OF ALL BACKED UP
FILES Issue:

  1) RESTORE B: C:
  2) PKUNZIP -V C:\ZBACKUP.ZIP > C:\BACKUP.DIR

 TO ADD/UPDATE files to ZBACKUP.ZIP add them to C:\ZBACKUP.INX and
(re)issue:
  the command: ZBACKUP

 TO GET BRIEF HELP FOR PKZIP ROUTINES Issue:
   a) PKUNZIP or PKUNZIP -h
   b) PKZIP   or PKZIP -h

... continued

 * OLX 2.1 TD * May peace and joy be yours this holiday season!

 * Origin: Taiwan Missionary BBS (12:2000/886.0)
Technical Details
Message-ID: <724113082.F00005@misgate.gmi.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!col.hp.com!gmi!misgate!uucp

Show Full Headers
Complete Article Headers
From: Sheldon.Sawatzky@f886.n2000.z12.misgate.gmi.org (Sheldon Sawatzky)
Sender: uucp@misgate.gmi.org
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!col.hp.com!gmi!misgate!uucp
Newsgroups: comp.sys.ibm.pc.misc
Subject: Compress Huge File 2/3
Message-ID: <724113082.F00005@misgate.gmi.org>
Date: Thu, 10 Dec 1992 13:50:03 -0700
Lines: 100