home *** CD-ROM | disk | FTP | other *** search
- Command: BACKUP Type: DOS external command
-
- Purpose: Backs up one or more files from one disk to another
-
- Syntax: BACKUP [drive1:][path][filename] [drive2:]
- [/s][/m][/a][/f][/d:date][t:time] [/L:[[drive:[path]filename]]
- where:
- drive1 is the drive that you want to back up
- drive2 is the target drive to which the files are backed up
-
- Comments: The backup command can back up files on disks of different media
- (hard disks and floppy disks). Backup also backs up files from one
- floppy to another, even if the disks have a different number of
- sides or sectors.
-
- Switches:
- /s Backs up subdirectories
-
- /m Backs up only those files that have changes since the
- last backup
-
- /a Adds the files to be backed up to those already on the
- backup disk. It does not erase old files on the backup
- disk. This switch will not be accepted if files exist
- that were backed up using backup from MS-DOS version 3.2
- or earlier.
-
- /f Causes the target disk to be formatted if it is not
- already. For this switch to function, the MS-DOS format
- command must be acessable by the current path.
-
- /d:date Backs up only those files that last modifued on or after
- date.
-
- /t:time Backs up only those files that last modifued on or after
- time.
-
- /L:filename Makes a backup log entry in the specified file. If
- you do not specify filename, backup places a file called
- backup.log in the root directory of the disk that
- contains the files being backed up.
-
- Exit Codes:
- 0 Normal completion
- 1 No files were found to back up
- 2 Some files not backed up due to sharing conflicts
- 3 Terminated by user
- 4 Terminated due to error