RESTORE
The RESTORE command activates a program which writes the backup back to the hard disk from diskettes which have been copied using BACKUP.
Syntax
RESTORE drive1: drive2: [path][/S][/P][/M][/D] [/B:date] [/A:date] [/E:time] [/L:time]
Where,
RESTORE : Restore
drive1 : Source drive-containing the backup-diskettes.
drive2 : Target drive-drive to which backups are to be written.
Path : Destination or target directory for the backups.
/S : All files and directories
/P : Ask to copy files back if they have the Read only attribute on Target drive.
/M : Copies only those files which have been altered since the previous backup.
/N : Copies only those files which are no longer located on the target drive.
/D : Displays only those files which are involved in this process.
[/B:date] :Copies only those files which have been altered prior to specified date.
[/A:date : Copies only those files which have been altered since the specified date.
[/E:time] : Copies only those files altered before the specified time.
[/L:time] : Copies only those files which have been altered after the specified time.
Example 1
C:\>:RESTORE A:C:/S (press enter key)
It writes all files and directories which were copied to the diskette in drive A: using BACKUP, back to the root directory of the hard disk.
The option /S specifies that all files and directories are to be written back.
Example 2
C:\>RESTORE A: C:\CLASS9*.COM (press enter key)
It copies all files with the extension .COM from A: drive to the CLASS9 directory of C : drive.
Example 3
C:\>RESTORE A: C:\CLASS 9\S (press enter key)
It copies all files and directories on the diskette in drive A: to the CLASS9 directory of C: drive.
Note : The directory CLASS9 must already exist on the root directory of C: drive (hard disk).
No comments:
Post a Comment