home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
UPDATE12.ZIP
/
UPDATE.DOC
< prev
next >
Wrap
Text File
|
1991-05-14
|
11KB
|
337 lines
Update - Disk file utility. Version 1.20 - 5/8/91
Update Plus - Disk file utility. Version 1.20 - 5/8/91
Copyright 1991 MJC Diversified. All rights reserved.
The following documentation is for Update Plus. For a list of Update
limitations see the end of this document.
Description:
------------
Update Plus is designed to selectively copy files from one location
to another based on the date and time the file was last modified.
This is useful for keeping backups of files on floppy disks. Any
unnecessary copying of files is avoided. Update Plus can also be
used to maintain files on a SneakerNet. Update Plus is a bound
executable file that can run in OS/2 or DOS. Update Plus is
basically an archive file utility. The following help is displayed
if you type 'update' and press <return> at a command prompt.
Usage: update -<switches> [-f<conflict file>] <source> [<destination>]
-l List newer or non-existent files.
-c Copy newer or non-existent files.
-C Prompt for copy of newer or non-existent files.
-m Move newer or non-existent files.
-M Prompt for move of newer or non-existent files.
-e Only update existing files.
-r Update read only files.
-p Destination files are precious.
-i Initialize conflict file.
-o List orphaned files.
-d Delete orphaned files.
-D Prompt for delete of orphaned files.
-n Do not echo results of copy, move, or delete.
Notes:
------
The destination specification can have a filename edit string.
i.e. 'update -c *.c archive\*.sav'
The switch specifications are case sensitive.
The 'm' and 'M' options will move files by copying them first and
then deleting them. This allows files to be moved across volumes.
You cannot move read only source files.
The 'e' option will only compare files that already exist on the
destination. In other words Update Plus will not list, copy, or move
non-existent files.
The 'r' option will overwrite read only destination files. This is
useful if you have read only source files that can change.
The 'p' option requires as much free disk space on the destination as
the largest file that could be updated.
You cannot delete read only orphans.
Wildcard matching:
------------------
Update Plus tries to copy the wildcard semantics of OS/2 since the
API bind library does not have an entry for DosEditName. There are no
known inconsistences at this time and the rules are as follows:
Edit string characters:
'*' - Copies characters from the source string to the end of the
source string or until the next character in the edit string is
found.
'?' - Copies one character excluding periods from the source string.
'.' - Does not copy characters from the source string to the end of
the source string or until the next period is found.
<any other character> - Copies the character from the edit string and
skips a character in the source string excluding periods.
Orphans:
--------
Orphans are files that exist on the destination that no longer exist
on the source. Only the files that match the destination filename
specification are checked. i.e. 'update -c *.c archive\*.sav'
Only the missing .c file on the source of any .sav file on the
destination is reported. If the destination filename edit string is
essentially *.*, then the source filename search string is used.
i.e. 'update -c *.c archive' or 'update -c *.c archive\*.*'
Only the missing .c file on the source of any .c file on the
destination is reported.
Conflict file:
--------------
Update Plus has the ability to maintain a conflict file. A conflict
file has the date and time of the source files the last time an
update was performed. Only the source files specified are recorded.
This lets you update different files in the same directory at
different times. You just need to specify a different conflict file.
i.e. 'update -c -fcfiles *.c arch' and 'update -c -fhfiles *.h arch'
And only the filenames are recorded and not the drive and directory
path. This lets you change directories or volumes.
When a conflict file is specified but one does not exist a warning is
generated and you are given the option to proceed. If you do proceed
obviously no conflict checking is performed but a conflict file will
be created upon completion. The 'i' option will not generate a
warning if the conflict file does not exist, will not perform any
conflict checking, and will create a new conflict file or overwrite
any existing conflict file upon completion.
Conflicts:
----------
When both the source and destination files have changed there are two
possible conflicts.
1) The destination file has changed and WILL be updated by the source.
2) The source file has changed and WILL NOT update the destination.
If there are any conflicts and after all the conflicts have been
reported, you have the option to proceed with the update. If you
choose not to proceed no updates will be performed, orphans will
still be listed or deleted, and the conflict file (if any) will not
be created or changed. This lets you execute the update command
again and get the same list of conflicts.
Messages:
---------
Switch specifications must begin with a '-' or '/'.
You must preceed the switch specifications with a '-' or '/'.
Invalid switch specification.
You specified an unknown switch.
Warning: no switches specified.
You typed a '-' or '/' with no switches.
Source specification is too long.
You typed too many characters for the source specification.
Invalid source specification.
For some reason the source specification is not valid.
Destination specification is too long.
You typed too many characters for the destination specification.
Invalid destination specification.
For some reason the destination specification is not valid.
Could not open conflict file.
Proceed?
The specified conflict file does not exist.
Enter 'y' and press <return> to proceed without conflict checking.
Conflict file too large.
The specified conflict file is not an Update Plus conflict file.
Could not allocate memory to load conflict file.
There is not enough memory to load the conflict file.
Could not read conflict file.
The specified conflict file is bad.
No source files found.
There are no source files to update.
Destination <destination> has changed and WILL be updated.
One kind of conflict.
Source <source> has changed and WILL NOT update destination.
The other kind of conflict.
There are conflicts. Proceed with update?
Enter 'y' and press <return> to proceed.
<source> would be copied or moved to <destination>.
Output produced by the 'l' option.
Copy <source> to <destination>?
Output produced by the 'C' option.
Enter 'y' and press <return> to copy the file.
Move <source> to <destination>?
Output produced by the 'M' option.
Enter 'y' and press <return> to move the file.
Could not allocate copy buffer.
There is not enough memory to perform the copy.
<destination> is read only.
The destination file is read only and the 'r' option was not
specified. If the 'r' option was specified then could not
change the read access of the destination file.
Could not rename <destination>.
The 'p' option was specified and the destination file could
not be renamed.
Could not create <destination>.
Could not open or create the destination file.
Could not open <source>.
You do not have read access to the source file.
Could not read <source>.
The source file is probably bad.
Could not write <destination>.
Probably ran out of disk space. The 'p' option requires as
much free disk space on the destination as the file being
updated.
Could not copy file dates and times.
Some kind of system error occurred.
Could not copy file attributes.
Some kind of system error occurred.
Could not restore original file.
The 'p' option was specified and after an unsuccessful copy
the original file could not be restored. The original file
should still exist as '~~temp~~' in the destination directory.
Could not copy <source> to <destination>.
Proceed?
Could not copy the file. This message will follow 1 of the
prevoius 10 messages.
Enter 'y' and press <return> to proceed.
Could not delete <source>.
Proceed?
The 'm' or 'M' option was specified and the source file could
not be deleted. The source file is probably read only.
Enter 'y' and press <return> to proceed.
<source> moved to <destination>.
File was successfully moved.
<source> copied to <destination>.
File was successfully copied.
No destination files found.
No destination files to check as orphans.
<destination> has been orphaned.
The 'o' option was specified and the destination file has no
corresponding source file.
Delete <destination>?
Output produced by 'D' option.
Enter 'y' and press <return> to delete the orphaned file.
Could not delete orphan <destination>.
Proceed?
Orphan is probably read only.
Enter 'y' and press <return> to proceed.
<destination> deleted.
Orphan successfully deleted.
Could not allocate memory to save conflict file.
There is not enough memory to create a conflict table.
Conflict file would be too large.
There are too many source files to record.
Could not open or create conflict file.
There is not enough disk space for the conflict file.
Could not write conflict file.
There is not enough disk space for the conflict file.
Note:
-----
Update Plus will terminate if anything other than a 'y' or 'Y' is
entered in response to 'Proceed?'.
Revisions:
__________
1.10 When DosOpen fails trying to open a non-existent file on a
network file resource, DosQFileInfo no longer works. Now
when running under OS/2 DosQPathInfo is used. DosOpen and
DosQFileInfo are still used when running under DOS since DOS
can have only one active find.
1.20 If a copy is unsuccessful the destination file will be
deleted. The 'p' option has been added to treat destination
files as precious files. If the 'p' option is specified and
a copy is unsuccessful the original file will be restored.
Update limitations:
-------------------
Only the following options are supported by Update:
-l List newer or non-existent files.
-c Copy newer or non-existent files.
-m Move newer or non-existent files.
-p Destination files are precious.
-i Initialize conflict file.
-o List orphaned files.
-d Delete orphaned files.
-n Do not echo results of copy, move, or delete.
Registration and how to order Update Plus:
------------------------------------------
You can register your copy of Update for $10. As a registered user
you will be notified of any product enhancements or new products. If
you send $20 you will receive a copy of Update Plus with all the
features described in this document and also be notified of any
product enhancements or new products.
To register your copy of Update send $10,
To order Update Plus send $20 to:
MJC Diversified
4036 Camino Calma
San Diego, CA 92122