Article View: comp.sys.ibm.pc.misc
Article #10259Compress Huge File 3/3
From: Sheldon Sawatzky
Date: Thu, 10 Dec 1992 20:48
Date: Thu, 10 Dec 1992 20:48
66 lines
3335 bytes
3335 bytes
Part 3/3 MOTIVATION, DETAILED DESCRIPTION, AND BACKGROUND ZBACKUP is a simple aid to help you fulfill your responsibility to yourself by backing up not all DOS files, but rather ones that you have what you feel is significant investment in and which couldn't be re-installed in the event of a fixed disk disaster. In general it is recommended that you make at least one formal full DOS Backup of your entire fixed disk, probably using the DOS Backup command. Whether or not you do this, ZBACKUP is a utility that you may wish to run either weekly or daily, depending on how much you use your PC. The disadvantage of ZBACKUP is that YOU must keep the index ZBACKUP.INX up to date and YOU must know WHICH files in a package (e.g., like DBASE III, EXCEL, WordPerfect, etc.) that are not "re-installable". The advantage is that in many cases all such files that you have significant time investment in on a typical 100M fixed disk system will Zbackup in 2 or 3 minutes to one or two (1.44M) diskettes. You may wish to rotate two or three sets of Zbackup diskettes both to insure better integrity and in some cases to retrieve files that were inadvertently changed and then backed up once (but not to all sets of Zbackup diskettes). ZBACKUP.BAT is simple tool that does two actions: (1) uses Phil Katz's PKZIP to compress a SELECTED index of filespecs in the file C:\ZBACKUP.INX; and (2) then back up the compressed result to diskette using the DOS BACKUP command. ZBACKUP calls no other programs other than PKZIP and DOS's BACKUP command. To restore files requires DOS RESTORE and PKUNZIP. The DOS BACKUP is to drive A: unless you edit ZBACKUP.BAT and change that. As it turns out, DOS Version 4.0 and above BACKUP command doesn't change the file C:\ZBACKUP.ZIP (except for splitting it across diskette if it happens not to fit on the one diskette). Thus you can add up the sizes of the DOS Backup piece(s) and this will equal the size in bytes of C:\ZBACKUP.ZIP. Likewise if C:\ZBACKUP.ZIP fits on one diskette (often the case), after DOS Backup you can issue: PKUNZIP -v A:\BACKUP.001 to view its contents, just as you'd do for a regular Zip file. If C:\ZBACKUP.ZIP is not erased between ZBACKUP commands, files there will be "updated" (or added if you add filespecs to C:\ZBACKUP.INX). One enhancement you may wish to add is to invoke your favorite editor on the file ZBACKUP.INX just before PKZIP is called in ZBACKUP.BAT. Another would be to use invoke your favorite editor to display this Help file; e.g., EDIT C:\ZBACKUP.HLP HDK - 10/6/92. ---------------------Example of ZBACKUP.INX follows------------------- C:\KEDIT\*.KEX C:\KEDIT\*.KML C:\BATCH\*.* C:\UTIL\*.* C:\REXX\*.REX C:\WATFOR77\*.FOR C:\WATFOR77\*.DAT C:\CONFIG.SYS C:\AUTOEXEC.BAT C:\DOS\*.INI C:\DOS\*.BAT C:\ZBACKUP.INX D:\DATA\*. * 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.F00006@misgate.gmi.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!col.hp.com!gmi!misgate!uucpShow 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 3/3 Message-ID: <724113082.F00006@misgate.gmi.org> Date: Thu, 10 Dec 1992 13:48:04 -0700 Lines: 67