Chapter 6 /
Command
Referem;e
BACKUP
External
I Q I
~=D~.~.~
BACKUP
[pathname]
drive:
[IS] [1M]
[fA]
Y I
.~.~
[/D:date]
Copies (backs up) one or more files from a
hard
disk
to
floppy
disks (diskettes).
To
use
files
that
are
on
backup
diskettes,
you
must
use
the
RESTORE
command
to copy
them
back
to
hard
disk. Do not
try
to
use
them
otherwise.
Parameters
pathname
specifies
the
file you
want
to back up.
drive: specifies
the
disk
to receive
the
files.
IS
causes
BACKUP to copy
all
files
in
the
specified
directory
and
all
directories below it.
1M
causes
BACKUP to copy only those files
that
have
been
modi-
fied since
the
last
backup.
IA
tells BACKUP to add
the
files (to be backed up) to
the
diskette
already
in
the
specified drive,
rather
than
prompting
you to
insert
a new diskette.
If you
omit
the
IA
parameter,
BACKUP
asks
you to
insert
a
diskette. Then, before backing
up
any
hard
disk files,
it
erases
any
existing
files on
the
diskette. When
the
diskette
is filled,
BACKUP
asks
you
to
insert
another. Be
sure
to
label each
diskette
so you know
the
proper order of
the
backups.
lD:date copies only those files
created
on or
after
the
date
speci-
fied (in
the
mm-dd-yy
format).
Notes
and
Suggestions
• Loss of information
stored
on
hard
disk,
although
not likely,
can
be
disastrous-simply
because
of
the
amount
of informa-
tion. Therefore, you should always keep
and
update
floppy
diskette
copies of
all
hard
disk information.
• If you have several files to back up, you may
want
to
create
a
batch
file
consisting
of
the
necessary
backup
commands.
Then
you
can
do
all
the
backups
simply by
running
the
batch
file.
(See information on
Batch
Files
in
Chapter
4.)
41