Thursday, October 18

Protecting data/Making a Backup

BACKUP
The BACKUP command activates a program which makes backup on diskette of information on the hard disk (or vice versa)
  • it enables you to make a backup of files and directories.
  • it also enables you to write all data from the backup back to the hard disk.
  • make a back up of only those files which have been altered after a specified date.
  • the program states when the diskette is full ; it will ask you for another diskette and continue copying.  

Syntax
BACKUP [drive1:] [path] Source [drive2:] [path] destination [/S][/M][/A][/D:date][/T:time] [/L<C:[drive:][path] [file]]] [F;byte]
Where,
BACKUP :make a reserve copy
[drive1:] [path]source : source drive, directory or files which you want to backup.
[drive2:][path] source :target drive or directory to keep backed up copies.
/S : make a backup of all directories and files.
/M : make only a backup of those files which have been altered since the previous backup command used.
/A : add the backups to the files which are already located on the diskette.
/D:date : make a copy of only those files which have been altered since the specified date.
/T :time : make a backup of those files which have been altered since the specified time.
Example 1
C:\>BACKUP C: A: /S  (press enter key)
it makes a backup of hard disk on diskettes in drive A:
the option /S is used to backup all files and directories and sub directories.

Example 2
C:\>:BACKUP C:\CLASS9\*.COM A : (press enter key)
it makes backup on diskettes of all files with the extension .COM in the CLASS9 directory of the hard disk.

Example 3
C:\>BACKUP C: A:/S/D:12-01-95  (press enter key)
it makes backup on diskettes of all files whcih have been altered since 1st December, 1995.

Example 4
C:\>BACKUP C:A:/S/M  (press enter key}
it copies all those files from the hard disk which have been altered since the previous backup was made.


No comments:

Post a Comment