home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Micro R&D 1
/
MicroRD-CD-ROM-Vol1-1994.iso
/
disktools
/
misc
/
reducer10.lha
/
Reducer.doc
< prev
next >
Wrap
Text File
|
1993-02-21
|
6KB
|
158 lines
||=\ /== ||=\ || || /== /== ||=\
|| || ||__ || || || || || ||__ || ||
||=< || || || || || || || ||=<
|| || \== ||=/ \=/ \== \== || || v1.0
0. Copyright
------------
Reducer is placed in the Public Domain for the Amiga. No fee is
requested for its use, nor can anyone ask anything for it (except for the
media). Feel free to use it, but AT YOUR OWN RISK. I cannot be held
responsible for any damage caused to your system.
1. Introduction
---------------
Reducer is a program which helps you transfer files from a harddrive to
floppy disks with a minimum of free blocks. Currently, there are 2 other
similar program in the Public Domain: Dred and ECopy, but these programs have
several shortcommings. For example, files cannot be copied via the RAD:
device (Copy File to RAD:, then make a 'DiskCopy RAD: to DF0:'). With
Reducer, you have the possibility to configure what will be writen in the
script (that can optionally be executed) for each phase of a 'diskfill'.
(see the WITH option in section 3)
2. Efficiency
-------------
+----------+--------------+-----------+------------------+-----------------+
| Nb files | Reducer Time | Copy Time | Blocks Free | % of block free |
+----------+--------------+-----------+------------------+-----------------+
| 4345 | 1h 10 min | 28h | 837 disks with 0 | 0.003 % |
| | | | 1 disk with 33 | |
| | | | 1 disk with 10 | |
| | | | 1 disk with 1 | |
| | | | | |
| 696 | 53 sec | 4h | 122 disks with 0 | 0.001 % |
| | | | 1 disk with 3 | |
| | | | | |
| 127 | 1 sec | 44 min | 21 disks with 0 | 0.021 % |
| | | | 1 disk with 8 | |
+----------+--------------+-----------+------------------+-----------------+
File sizes varied from 50K to 300K.
All tests were made on a 68000 equiped Amiga.
3. How to use
-------------
Usage: Reducer [-options] [WITH <Config>] [SCRIPT <destination script>]
FROM <directory> TO <drive> [<drive> ...]
The option are:
~~~~~~~~~~~~~~
-m<number> = Sets the maximum number of disks to be created
to <number>.
ex. -m10 -> only 10 disks will be created.
-b<number> = Sets the maximum accceptable number of blocks
free on a disk.
ex. -b5 -> only the disk with less then 6
blocks free will be created.
-f<nb Block>,<nb Bytes>
= Sets the number of blocks and the number of
Bytes on a disk. By default, this number
will be set by checking the info of the first
destination disk.
ex. -f1756,512 -> force a full FFS disk.
NB. If the number of bytes is equal to 512,
then the number of blocks will be
automaticaly reduced by one. Because a
FFS disk needs 1 block free...
-e = Executes the script when it is finished.
ex. -e -> Send a 'execute "<script>"'.
WITH <Config>
~~~~~~~~~~~~~
By default, Reducer searches in the current directory for 'Reducer.cfg'.
If no config file is specified, the DEFAULTS are used (see below). This file
tells Reducer which DOS commands to write in its script to accomplish the
reducing process. It has the following format:
# Comment (Begin)
# You must have at least one comment line.
# ex1. Resident move
# ex2. Mount RAD:
# DEFAULT: 'Failat 1'
<DOS command(s) to be put at the Beginning of the script>
# Comment (Before a Disk)
# You can use %d for the current destination disk.
# ex1. Format %d -> Format df0:
# DEFAULT: ''
<DOS command(s) to be put Before each Disk>
# Comment (Copy of a File)
# You can use the %d (see above), %f (source file) or the %p (source file
# without path).
# ex1. Move "%f" TO "%d%p" -> Move "dh0:file" TO "df0:file"
# ex2. Copy "%f" TO "%d%p" -> Copy "dh0:file" TO "df0:file"
# Move "%f" TO "dh0:backup/%p" -> Move "dh0:file" TO "dh0:backup/file"
# DEFAULT: 'Move FROM "%s" TO "%d%p" ALL'
<DOS command(s) to be put for each File to be copied>
# Comment (After a Disk)
# You can use the %d.
# ex. DiskCopy RAD: to %d -> DiskCopy RAD: TO df0:
# DEFAULT: ''
<DOS command(s) to be put After each Disk>
# Comment (After a Group of Disk)
# ex. echo "Put new disk in the drives... Then click a mouse button"
# mouse -> wait until a button is pressed.
# DEFAULT: 'echo "Press mouse Button"<RETURN>mouse'
<DOS command(s) to be put each time you have filled all the destination Disk>
# Comment (End)
# ex. Resident Move REMOVE
# DEFAULT: ''
<DOS commands to be put at the End of the script>
SCRIPT <destination script>
~~~~~~~~~~~~~~~~~~~~~~~~~~~
By default, Reducer will create the script in 'T:Reducer_Script'.
FROM <directory>
~~~~~~~~~~~~~~~~
Scans the directory to catch all the files and directories you want to put
on disk. If you have sub-directories, you have to use 'Move "%f" TO "%d%p
ALL"' because all the file of the sub-directory will not be copied if you
use 'Move "%f" TO %d%p". ex. 'FROM dh0:File_to_put_on_disk/'
TO <drive> [<drive> ...]
~~~~~~~~~~~~~~~~~~~~~~~~
Set all the destination disk. The maximum is 5 destinations disks.
This has to be the last Arguments of the command line.
ex1. 'TO df0: df1: df2:'
ex2. 'TO dh0:disk1/ dh0:disk2/ dh0:disk3/'
4. How to contact me
--------------------
You can reach me throught standard mail post to:
Christian Warren
2201, Edouard-MontPetit #11
Montreal, Quebec, Canada
H3T 1J3
or by e-mail
FIDO 1:167/151.0 Christian Warren