home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT202.ZIP
/
OLDVER.DOC
< prev
next >
Wrap
Text File
|
1991-08-28
|
3KB
|
73 lines
OLDVER 1.65 (C) 1991 Solaris Systems, All Rights Reserved.
Written by David M. Balmer, Jr.
OVERVIEW
--------
Have you ever made permanent changes to a document or file that you have
regretted? Unless you make system backups several times a day, you can get
into this pickle very frequently. This utility allows you to maintain the
last nine versions of a given file easily and quickly. It is not meant as
a replacement for complete system backups, but a geared for "short-term"
storage of old versions of a file.
For example: Say you are working on a file called "MYPROG.BAS". You are
about to make changes. If you perform the following statement:
OLDVER myprog.bas
you will always be able to backtrack your changes. It works the same way
as most text editors create ".BAK" files.
If you keep frequent backups, you will always be able to recall any old
version for comparison.
USAGE
-----
Syntax: OLDVER filename [bkext]
Where:
filename ... The master file to maintain
[bkext] .... An optional parameter that allows you to use a different
extension for the backup files.
TECHNICAL
---------
This utility supports wildcards (?,*) and it uses standard output (i.e. the
output can be redirected to another file, a printer or any device as in any
standard DOS command). OLDVER confirms that either the time, date or size
of a program has changed from the most recent version before running the
maintenance process. If any duplicates are found, the oldest is removed.
If any backup files are lost or deleted, OLDVER will fill in any gaps in the
sequence as necessary. All files are stored with the numbers 1-9 at the end
of the extension. For Example:
MYPROG.BAS THISPROG.C
MYPROG.BA1 THISPROG.C1
MYPROG.BA2 THISPROG.C2
: :
MYPROG.BA9 THISPROG.C9
This system retains most of the readability of the file names. However, in
some examples, the normal backup extensions of two types of files conflict.
If you have two files "MYPROG.BAS" and "MYPROG.BAT" and run OLDVER on each,
you will have serious backup conflicts as the backup extensions for both are
".BA1". This problem only occurs if the filenames are also the same. To
avoid this problem you can specify a backup extension for one of the files to
be something other than ".BA?".
You can maintain old versions of a file type in a given directory by using
wildcards. For Example:
OLDVER *.BAS
will check and maintain all files that end in ".BAS". You can use any and
all wildcard combinations that DOS allows. WARNING: DO NOT USE the "*.*"
wildcard or any wildcard in the extension position ("files.*"). If you do,
OLDVER will make backups of the backup files it finds, too! A backup file
is just like any other file.