home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / backup / examples.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.9 KB  |  48 lines

  1. SAMPLE command to use BACKUP | Comments about the output
  2.  
  3. BACKUP C:\ A: /S        This command will copy all files and
  4.                 subdirectories on hard disk C: to drive A:.
  5.                 You will need more than one diskette to
  6.                 back up the hard disk (in fact you may need 
  7.                 about 30), so DOS will prompt you when one
  8.                     diskette is full and it is 
  9. Warning! Files in the target drive    time to insert another. The 
  10. A:\ROOT directory will be erased    diskettes must be formatted and 
  11. Strike any key when ready        should be empty, because BACKUP 
  12.                 will erase any existing files.  The /S
  13.                 option tells DOS to copy all files that
  14.                 are in all subdirectories. BACKUP will not
  15.                 write anything on A: until the Enter, Return, 
  16.                 or <──┘ key is pressed.
  17.  
  18. BACKUP C:\ A: /S /M        This command copies all files in 
  19.                 all directories (/S) on drive C: 
  20.                 that have been modified since the 
  21.                 last backup (/M).  The BACKUP 
  22.                 command can tell which files have 
  23.                 been changed since the last backup 
  24.                 through an indicator which is set 
  25.                 when a file is changed, and unset 
  26.                 when a file is backed up. 
  27.  
  28. BACKUP C:\PROGRAMS\*.BAS A:    Here we are backing up only the 
  29.                 files in the PROGRAMS directory 
  30.                 that have the .BAS extension to 
  31.                 disk drive A:.
  32.  
  33. BACKUP C:\SALES\ B: /A        This command will copy all files in 
  34.                 the SALES directory and add (/A) 
  35.                 them to the files that are already 
  36.                 on the diskette in drive B:.  
  37.                 Without the /A option, you could 
  38.                 not add any files to a diskette.
  39.  
  40. BACKUP C:\ A: /S /D:12-1-88    This will cause all files in all 
  41.                 directories (/S) that have been 
  42.                 written on or after December 1, 1988 
  43.                 on drive C: to be copied to drive 
  44.                 A:. The /D option is used to select 
  45.                 only files have been created or 
  46.                 modified on or after the date you 
  47.                 specify.
  48.