home *** CD-ROM | disk | FTP | other *** search
- SAMPLE command to use BACKUP | Comments about the output
-
- BACKUP C:\ A: /S This command will copy all files and
- subdirectories on hard disk C: to drive A:.
- You will need more than one diskette to
- back up the hard disk (in fact you may need
- about 30), so DOS will prompt you when one
- diskette is full and it is
- Warning! Files in the target drive time to insert another. The
- A:\ROOT directory will be erased diskettes must be formatted and
- Strike any key when ready should be empty, because BACKUP
- will erase any existing files. The /S
- option tells DOS to copy all files that
- are in all subdirectories. BACKUP will not
- write anything on A: until the Enter, Return,
- or <──┘ key is pressed.
-
- BACKUP C:\ A: /S /M This command copies all files in
- all directories (/S) on drive C:
- that have been modified since the
- last backup (/M). The BACKUP
- command can tell which files have
- been changed since the last backup
- through an indicator which is set
- when a file is changed, and unset
- when a file is backed up.
-
- BACKUP C:\PROGRAMS\*.BAS A: Here we are backing up only the
- files in the PROGRAMS directory
- that have the .BAS extension to
- disk drive A:.
-
- BACKUP C:\SALES\ B: /A This command will copy all files in
- the SALES directory and add (/A)
- them to the files that are already
- on the diskette in drive B:.
- Without the /A option, you could
- not add any files to a diskette.
-
- BACKUP C:\ A: /S /D:12-1-88 This will cause all files in all
- directories (/S) that have been
- written on or after December 1, 1988
- on drive C: to be copied to drive
- A:. The /D option is used to select
- only files have been created or
- modified on or after the date you
- specify.