home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
001-099
/
ff098.lzh
/
Backup
/
Readme
< prev
next >
Wrap
Text File
|
1987-09-02
|
4KB
|
122 lines
A SIMPLE BACKUP PROGRAM
=======================
This is a very simple backup up program that I use to backup
my hard disk. Its not perfect, but I find it very useful.
The following description may not be very clear, but at the
end there are some examples of how I use it.
This program is different from many other backup programs in that the
destination disk is just a normal AmigaDOS disk with directories
etc. To recover files, you just copy from the backup disk.
Rather than for every backup copying the whole disk, this program
creates a file called .backup on the backup disk which it uses
as a date stamp. During the backup, it scans the source disk
for any file newer than the .backup file. If the program does
not find a .backup file, it complains. This is so that non-backup
disks are accidently destroyed. This program will delete any files
on the backup disk that do not appear on the origninal.
To do the first backup (ie. copy whole disk and create .backup),
use the -f option which will create the first .backup file.
This backup utility does NOT do any clever stuff to work out how
much will fit on a backup disk. To backup my hard disk I manually
decide which sub-directories will go onto which backup disk.
Note that this program does scan all subdirectories on the source
disk so if you try "backup dh0: df0:" it will try and put the
whole of dh0: onto df0:. I actually have two hard disk partitions
for my source code and backup it all up every night using
"backup dh0: dh1:". I do floppy backups once a week or so.
This is very disk expensive, but pretty quick.
I can put several hard disk directories on each backup disk.
Since I do this a lot, I added a feature so that it looks for
the file .dobackup on the backup disk. If found, it takes the
contents of the file as a series of parameters to the backup command.
In this case, you only need to specify the backup disk or drive name
(eg: "backup df0:") and does the rest for you.
Example of use
==============
Say I have four directories dh0:bin dh0:src/prog1 and dh0:src/prog2
and dh0:src/prog3. Assume that dh0:src/prog3 is so big it needs its
own floppy disk. The first three directories however will all fit
on a single disk.
First take two disks and format them with the AmigaDOS format command.
I try to name them with meaningful names - here I will use
backup-bin-src: and backup-prog3:
Make subdirectories on the backup disks for each source directory. eg:
makedir backup-bin-src:bin
makedir backup-bin-src:prog1
makedir backup-bin-src:prog2
swap disks
makedir backup-prog3:prog3
There are then two ways of using the backup command.
First, the long way...
To perform the inital backup enter
backup -f dh0:bin backup-bin-src:bin
backup -f dh0:src/prog1 backup-bin-src:prog1
backup -f dh0:src/prog2 backup-bin-src:prog2
swap disks
backup -f dh0:src/prog2 backup-prog3:prog2
This will take quite a long time as it has to copy everything.
For later backups, use
backup dh0:bin backup-bin-src:bin
backup dh0:src/prog1 backup-bin-src:prog1
backup dh0:src/prog2 backup-bin-src:prog2
swap disks
backup dh0:src/prog2 backup-prog3:prog2
This however requires a lot of typing and is prone to errors.
A better way is as follows:
Do the formats and makedir's as above, but then create the file
.dobackup on the backup disk (in the root directory)
ie: in "backup-bin-src:.dobackup" put (using your favorite editor)
dh0:bin backup-bin-src:bin
dh0:src/prog1 backup-bin-src:prog1
dh0:src/prog2 backup-bin-src:prog2
In "backup-prog3:.dobackup" put
dh0:src/prog3 backup-prog3:prog3
I strongly advise using full disk names rather than the drive name (df0:)
in the .dobackup file so it does not matter what disk you insert where.
For the first format, insert the first backup disk (eg drive df0:)
and type
backup -f df0:
It will find the .dobackup file and do everything.
Swap disks and repeat for the second backup disk.
For later backups, just insert each backup disk and type
backup df0:
and sit back and watch!
To back up my whole hard disk simply involves inserting my series of
backup disks one after the other in any order and typing "backup df0:"
for each (of course I use a shell which can quickly repeat the last
command). I have the occasional problem when a disk overflows or I
create new directories but by organising my hard disk properly and
keeping a large amount of free space on each backup disk all goes well.
Well, I hope its of some use.
-- Alan Kent