help.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
RESTORE
Notes  Examples
────────────────────────────────────────────────────────────────────────────
 
                                  RESTORE
 
Restores files that were backed up by using any version of BACKUP from
MS-DOS versions 2.0 through 5.0. If you are restoring files that were backed
up using the MSBACKUP program in MS-DOS 6 or later, use that version of the
<MSBACKUP> program to restore those files.
 
You can restore files from similar or dissimilar disk types.
 
Syntax
 
    RESTORE drive1: drive2:[path[filename]] [/S] [/P] [/B:date] [/A:date]
    [/E:time] [/L:time] [/M] [/N] [/D]
 
Parameters
 
drive1:
    Specifies the drive on which the backed-up files are stored.
 
drive2:
    Specifies the drive to which the backed-up files will be restored.
 
path
    Specifies the directory to which the backed-up files will be restored.
    You must specify the same directory from which the files were backed
    up.
 
filename
    Specifies the names of the backed-up files you want to restore.
 
Switches
 
/S
    Restores all subdirectories.
 
/P
    Prompts you for permission to restore files that are read-only (that
    have the read-only attribute set) or that have changed since the last
    backup (that have the archive attribute set).
 
/B:date
    Restores only those files last modified on or before the specified date.
    The format of date varies according to the COUNTRY setting in your
    CONFIG.SYS file. For information about specifying date, see the <DATE>
    command.
 
/A:date
    Restores only those files last modified on or after the specified date.
    The format of date varies according to the COUNTRY setting in your
    CONFIG.SYS file. For information about specifying date, see the <DATE>
    command.
 
/E:time
    Restores only those files last modified at or earlier than the specified
    time. The format of time varies according to the COUNTRY setting in your
    CONFIG.SYS file. For information about specifying time, see the <TIME>
    command.
 
/L:time
    Restores only those files last modified at or later than the specified
    time. The format of time varies according to the COUNTRY setting in your
    CONFIG.SYS file. For information about specifying time, see the <TIME>
    command.
 
/M
    Restores only those files modified since the last backup.
 
/N
    Restores only those files that no longer exist on the destination disk.
 
/D
    Displays a list of the files on the backup disk that match the names
    specified in filename without restoring any files. Even though no files
    are being restored, you must specify drive2 when you use /D.
 
Related Command
 
For information about backing up files, see the <MSBACKUP> command.
 
                                      ♦