Dec 192017
 
Backup files and directories using pkzip. With C Source.
File BZIP.ZIP from The Programmer’s Corner in
Category Utilities for DOS and Windows Machines
Backup files and directories using pkzip. With C Source.
File Name File Size Zip Size Zip Type
BZIP.C 13142 4114 deflated
BZIP.EXE 30501 16459 deflated
README 4159 1710 deflated
RZIP.BAT 15 15 stored

Download File BZIP.ZIP Here

Contents of the README file


bzip - backup files and directories to diskdrive using pkzip
rzip - restore zipfiles split by bzip

------------------------------------------------------------------------

DESCRIPTION

BZIP is a little utility that uses (PK)ZIP (not included) to compress
files or complete directories and then copies the created zipfile(s) to
drive A: or B:, splitting the file if necessary. Of course, this will
save you backup disks but it is considerably slower than a direct copy.

BZIP is functionally similar to the combination PKZIP, BACKUP and some
kind of control over these programs (e.g., a batch file).

Advantages of BZIP over such a combination are:
- BZIP calls you only when really necessary
- you can access the stored zipfiles directly

Caveats:
- you need enough space on some drive or partition to create the largest
zipfile.

RZIP concatenates the parts of a zipfile that were split by BZIP over 2
or more disks. There is no other support for restoring backups. But you
do not need to do more than calling PKUNZIP -d to restore each directory.
BZIP writes a table of contents on the last backup disk, which you can
use to find particular zipfiles.

Turbo-C Sources included. No warranty. Public domain.

------------------------------------------------------------------------

Usage:

bzip [no arguments]
- creates a zipfile for each directory in the current directory
and copies it to drive A.
- creates one zipfile, called ROOT.ZIP, that contains all the files
in the current directory and copies it to drive A

bzip B:
- as above, but copy to drive B:

bzip -d
- as above, but use directoryname to create temporary zipfiles.
This should not be the backupdrive!

bzip [name ...]
- create a zipfile for each name (usually a directory)
and copy it to the backup disk.


rzip drive:name
- restore a zipfile (in the current directory) from the named drive.

Zipfiles are named by stripping off the extension of the original
directory name (if any) and adding the extension .ZIP

If a zipfile is split, the parts on the backup disks get the extension
.p[number]. The last part gets the extension .-[number]. RZIP recognises these
extensions.

In order to restore a directory use PKUZIP -d zipname. The -d option
lets PKUNZIP create the directory names stored in the zipfile

------------------------------------------------------------------------

INSTALLATION

Put BZIP.EXE and RZIP.BAT and PKZIP.EXE somewhere where DOS can find
it.

Depending on your operating system, set the COMPSPEC environment
variable to the full path and name of COMMAND.COM. Normally this is
already done. Consult your DOS manual if necessary.

If you have ZIP.EXE instead of PKZIP.EXE, create a batch file PKZIP.BAT
that contains the following line:

ZIP %1 %2 %3 %4 %5 %6 %7 %8 %9

BZIP allows you to format disks when a new disk is needed. BZIP calls
the standard dos utility FORMAT.COM to do this. It gives the name of
the backup drive as an argument. If you prefer another format utility,
you may be able to create a batch file FORMAT.BAT that contains the
line:

NEWFORMATCOMMAND %1 plus any other options

------------------------------------------------------------------------

WARNINGS:

- when you use bzip to backup your harddisk, be sure that you make a copy
of RZIP.BAT, BZIP.EXE and PKUNZIP.EXE on a separate disk, so that
you can restore your backup when your harddisk crashes.

- make sure you do not have any existing files named .zip where
is also the name of a directory you want to backup. PKZIP will
overwrite the existing file.

- no attempt is made to repair disk errors. You just have to start again.

- bzip deletes anything on the backup disks

- although this utility functions well on my system, which is pretty
standard, it has not been tested on any other system. You must consider
this to have the status of a beta-release. Please try it out and also
try to restore some directories before you trust your valuable information
to it.




 December 19, 2017  Add comments

Leave a Reply