Restore


Restores files that were backed up by using the backup command.

Syntax

restore drive1:   drive2:   path    /filename   [/s]   [/p]    [/b:date]   [/a:date]   [/e:time]    [/l:time]   [/m]   [/n]    [/d] 

Notes

Checking restored files

Once a file has been restored, you can use the dir or type command to make sure the files was restored properly.

Limitations on restore

You cannot restore command to restore system files (IO.SYS and MSDOS.SYS). Restore does not work with drives that have been redirected with the assign, join, or subst command.

Compatibility with previous versions of backup

The MS-DOS version 5.0 restore command can restore files that were backed up by using any previous version of the MS-DOS backup command.

Restore exit codes

The following list shows each exit code and a brief description of its meaning:

Restore successfully restored the file or files.

Restore could not find the files to restore.

The user pressed CTRL+C to stop the restoring operation.

Restore stopped because of an error.

You can use the errorlevel parameter on the if command line in a batch program to process exit codes returned by restore. For example of a batch program that processes exit codes see the backup command

Listing the names of backed-up files

Use the /d switch to see a list of the backed up files. If you specify filename with the /d switch, restore displays a list of the backed up files that match the name you specify. If you use the /d switch, restore does not restore any files.

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.

pathSpecifies 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.

[/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.

[/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.

[/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.

[/l: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.

[/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.


SAGE US Timeslips Home Page
Copyright © 1994-1998 Sage U.S. Inc. All rights reserved.
Last updated March 08, 1999.

Timeslips Knowledge Center Home Page

[ CONTACT | NEW | PRODUCTS | ORDER | GUEST BOOK | FILES | REVIEWS | PARTNERS | MAC | LINKS | TRADESHOWS | RESELLERS ]