Site hosted by Angelfire.com: Build your free website today!
Chapter 9: Backing Up Your Files with the Backup Utility

PreviousChapterContentsGlossaryNext

Backing Up Files with the Backup Utility

Backing up files is something you should do regularly, so it's worth taking some time to create backup jobs for the files that are the most important to you and to schedule them to run daily (or at least weekly). You can create a backup job with a wizard or from the Backup Utility window, and you can run backup jobs you've already created.

Creating a Backup Job with the Backup Or Restore Wizard

The Backup Or Restore Wizard may run automatically when you start the Backup Utility. Otherwise, choose Tools | Switch To Wizard Mode from the menu bar in the Backup Utility window. When the program runs, choose Back Up Files And Settings from the wizard's dialog box. Click Next to move from dialog box to dialog box, and click the Advanced button when it appears so that you have access to all the wizard's settings. You need to make the following decisions to create a new backup job (these decisions are described in more detail in the following sections):

[figure]
Figure 9-1: The Backup Or Restore Wizard

When you click the wizard's Finish button, if you chose to back up now, the program begins copying files. You see a Backup Progress dialog box that shows how many files will be copied, and how many have been copied so far.
[figure]
Figure 9-2: Tracking the progress of the backup

When the backup is done, you can click the Report button to see a log of the files that were copied.

The following sections provide you with more detail about the choices you have to make when setting up a backup job.

Selecting Files to Back Up

The first decision you need to make is whether this backup job should be a complete backup or a backup only of selected files. You have four options:

If you choose the last option, you see a window (as shown in Figure 9-3) that works much like an Explorer window. When a folder in the left pane is selected, its contents appear in the right pane. The boxes with plus or minus signs denote whether a folder is expanded. Click a plus box to see the next level of the folder tree under a given folder. Click the My Computer plus box to see the disk drives on your system.
[figure]
Figure 9-3: Choosing disks, folders, and files to back up

The difference between this window and an Explorer window is that each folder has a check box next to it. Clicking one of these puts a blue check mark in the box, indicating that the entire folder (and all its subfolders) has been added to the list of files and folders to be backed up. For example, clicking the check box next to the C drive icon adds the entire contents of the C drive to the backup job.

If you want to back up some of the files on a drive, but not all of them, click the plus box next to the drive icon to expand the folder tree underneath that drive. This gives you an opportunity to decide exactly which folders to back up. Select only those files and folders that you want to be part of this backup job. A gray check mark appears in the box next to a folder from which you have chosen to back up some, but not all, of its contents.

tip To back up the Registry, boot files, and other system files, choose System State from the Items To Back Up list, which appears as the last item under My Computer.

Choosing a Destination for the Backup File

The next screen of the Backup Or Restore Wizard asks where to store the backup files. The options you see depend on how you set the first setting, Select The Backup Type. You can set this to File or to a backup device--a tape drive or other mass storage device.

If you choose File, Backup combines the entire backup into one compressed backup file stored on the disk that you indicate. Backup files have the extension .bkf. When you restore one or more files from the backup file, the Backup Utility extracts the files you want from the backup file. When you choose File, you see these two settings, as shown in Figure 9-4:
[figure]
Figure 9-4: Choosing where to store the backup

If your computer has a tape drive, you can choose it from the Select The Backup Type drop-down menu, which includes an option for the type of backup tape you use (for example, miniQIC or Travan). Then, you have only one other option to set: Choose The Tape You Want To Use. Set this to New to use a tape that has not been catalogued by the Removable Storage program, or choose the name of an existing tape.

tip The Backup Utility doesn't work directly with CD-R or CD-RW drives. If you want to back up to a CD-R or CD-RW disk, back up to a file first, and then burn the file onto the CD. This limitation prevents the Backup Utility from creating a backup that spans several CDs. One CD-R or CD-RW can hold up to about 650MB, so if your backup file is no larger than this, you can burn it onto a CD. For larger backup files, use a CD-burning utility that can split files over multiple CDs.

Choosing a Baseline or an Incremental Backup

After you have chosen which files to back up and where to store them, the wizard displays the Completing The Backup Or Restore Wizard dialog box, confirming the information you have specified so far. But you're not done yet--click the Advanced button to see some other settings.

The Type Of Backup setting controls whether to back up all the files you selected, or only files that are new or changed since the previous backup. (Windows tracks which files have been created or changed since your last backup.) You have five options for this setting:

If this is the first time you are backing up files, choose Normal. If you have recently backed up files, choose Incremental to copy only the files that weren't included in your last backup.

Choosing How to Back Up

Next, you see the How To Back Up settings, which consist of these check boxes:

The next screen of the Backup Or Restore Wizard asks whether to Append This Backup To The Existing Backups or Replace The Existing Backups. For backups to tape, this setting determines what happens to the previous backup information that is already on the tape. Another option controls whether the backup is accessible only to administrative users or to all users.

If you are backing up to a new tape, the next screen of the wizard suggests labels to use for the tape. This label is stored on the tape and appears in the Backup window on the list of available backups. You may want to write the same information on a paper label and stick it to the tape.

Choose When to Back Up

Finally, the Backup Or Restore wizard asks whether to run the backup job Now or Later. If you choose Later, you specify the name of the backup job and when to run it, as shown in Figure 9-5. You can run the backup job once, or you can schedule it to run daily, weekly, monthly, or another schedule.
[figure]
Figure 9-5: Specifying when to run the backup job

This is the last information that the Backup Or Restore Wizard asks for. When you click Next, you see the Completing The Backup Or Restore Wizard dialog box again, with a summary window of all your settings (as shown in Figure 9-6). Click Finish to create the backup job and run it (now or whenever you specified).
[figure]
Figure 9-6: Backup displays the settings for your backup

If you are using a tape, you may see messages from the Removable storage program as it mounts the tape. When the backup job is finished, Backup exits.

tip If you plan to reuse these backup specifications--the files to include, the backup type, where to store the backup, and other settings--tell Backup to run the backup Later. This choice causes Backup to store the backup job so you can run it again.

Creating a Backup Job by Using the Backup Tab

You don't have to use a wizard to create a backup job. Instead, you run the Backup Utility and click the Advanced Mode link on its opening screen. You see the main window of Backup Utility, as shown in Figure 9-7. The Backup Wizard and Restore Wizard buttons run limited versions of the Backup Or Restore Wizard that we describe in this chapter (we recommend that you run the Backup Or Restore Wizard instead, by choosing Tools | Switch To Wizard Mode from the menu bar).

tip If you rarely want to use the Backup Or Restore Wizard, deselect the Always Start In Wizard Mode check box on the wizard's opening screen.
[figure]
Figure 9-7: The Backup Utility's main window

To create a backup job, click the Backup tab just below the menu bar. You see the window shown in Figure 9-8. The upper part of the window enables you to choose the files to include. The settings in the lower left corner allow you to specify where to store the backup. The rest of the options that the Backup Or Restore Wizard offeres appear after you click the Start Backup button.
[figure]
Figure 9-8: The Backup tab of the Backup Utility window

When you click the Start Backup button, you see the Backup Job Information window, shown here:
[image]

This window contains the rest of your backup options, as described in the "Creating a Backup Job with the Backup Or Restore Wizard" section earlier in this chapter.

To schedule the job to run at a specified time (or on a schedule), click the Schedule button. The Backup Utility prompts you to save your settings as a backup job, and lets you specify a name. If your user account has a password, it prompts you for the password (you have to type it twice). Then you see the Scheduled Job Options dialog box, as shown in Figure 9-5.

For other options, click the Advanced button to display the Advanced Backup Options dialog box, shown here:
[image]

In addition to the options described in the section "Choosing How to Back Up," you see these other settings:

When you return to the Backup Job Information dialog box and click Start Backup, your backup job runs (or is stored to be run later).

Running a Backup Job

Once you have created and named a backup job, you can run it without going through the Backup Or Restore Wizard (in fact, the wizard doesn't include a way to rerun and existing backup job). The backup job is stored as a .bks file that you can re-open and rerun.

Running a Backup Job from the Backup Utility Window

To run an existing backup job, follow these steps:

  1. Run the Backup Utility. If the Backup Or Restore Wizard runs, click the Advanced Mode link on its opening window. You see the Backup Utility main window, as shown in Figure 9-7.
  2. Click the Backup tab (shown in Figure 9-8).
  3. Choose Job | Load Selections from the menu bar. You see the Open dialog box showing the default location of .bks files.
  4. Choose a backup job and click Open. If you've already selected some files, Backup asks whether it's okay to clear the current file selections and use the ones from the backup job instead. Click Yes. Backup shows the selected drives, folders, and files on the Backup tab.
  5. Follow the instructions for creating a backup job from the main window in the preceding section.

Running a Backup Job on a Schedule

When you create a backup job, you can schedule it to run daily, weekly, monthly, or on some other schedule. The Backup Utility uses the Windows Scheduled Tasks feature to handle the scheduling.

When you create a job using the Backup tab of the Backup Utility window, after you click the Start Backup button, click the Schedule button on the Backup Job Information dialog box to display the Scheduled Job Options dialog box (see Figure 9-5).

You can check the schedule of a backup job by clicking the Schedule Jobs tab in the Backup Utility window (as shown in Figure 9-9). Click a backup icon on a day on the calendar to see the Scheduled Job Options dialog box for that backup job. To change the schedule for the backup job, click the Properties button on the Schedule Data tab to see the Schedule Job dialog box, and click the Schedule tab. You can change the frequency, time, and day of the backups, as well as other settings. However, there's no easy way to change the files that are included--instead, open and rerun the job as described in the previous section.
[figure]
Figure 9-9: The schedule of backup jobs

Excluding Files from Backups

Some types of files don't need to be backed up, such as temporary files and files in a cache (temporary storage area). You can tell the Backup Utility not to include specific types of files by choosing Tools | Options from the Backup Utility's main window and clicking the Exclude Files tab (as shown in Figure 9-10). You can specify files that are in certain folders, files that have certain extensions, or both, and you can specify whether to exclude these files for backups made by all users, or only backups made by the current user.
[figure]
Figure 9-10: The Exclude Files tab of the Options dialog box

The Backup Utility is preconfigured to ignore many temporary Windows files when making backups for any user. You can add files and folders to its exclusion lists by clicking the Add New button--choose the one below the Files Excluded For All Users or the Files Excluded For User username box. You can choose a file type (based on filename extension) or type in an extension, and you can type or browse to the folder to which the exclusion applies.

Setting Other Backup Options

The Backup Utility has a number of configuration options that you can set by choosing Tools | Options from the menu bar in its main window (shown in Figure 9-7). Table 9-1 lists the configuration settings and what they do.

Tab Setting Description
General Compute selection information before backup and restore operations Displays the estimated total number of files and total bytes to be backed up before the backup begins (ditto for restoring).
General Use the catalogs on the media to speed up building restore catalogs on disk When restoring from tapes, uses the file catalogs that are stored on the tapes when creating the list of files in the entire backup. This is faster than Backup scanning the tapes for files and creating a new catalog. However, if a tape is missing or damaged, its catalog may not be available, and you may need to turn this setting off to restore files from the remaining tapes.
General Verify data after the backup completes Specifies that after backing up the files, Backup compares the backup copies to the original files. Files that are in use and being updated during the backup may have changed between backup and verification, so not all verification errors indicate a problem.
General Back up the contents of mounted drives For mounted drives, includes the contents of the drive. If deselected, Backup includes only the pathname of the mounted drive, and not its contents.
General Show alert message when I start the Backup Utility and Removable Storage is not running For backups to and restores from tape, displays a warning if the Removable Storage system isn't running. Backup can then start Removable Storage so you can use the tapes or other media that it manages. Select this setting if you back up to tapes. For backups to file or to removable disks (like floppies and Zip disks), this setting doesn't matter.
General Show alert message when I start the Backup Utility and there is recognizable media available For backups to and restores from tape, lets you know when new tapes are available. If you back up to tape, select this setting. Doesn't apply to backups to file or to removable disks.
General Show alert message when new media is inserted For backups to and restores from tape, lets you know when you insert a new tape. If you back up to tape, select this setting. Doesn't apply to backups to file or to removable disks.
General Always allow use of recognizable media without prompting For backups to tape, automatically moved a new uncataloged tape in the tape drive into the Backup media pool and then uses it for backup.
Restore Do not replace the file on my computer (recommended), Replace the file on disk only if the file on disk is older, Always replace the file on my computer Specifies what Backup Utility does when restoring a file that already exists on your computer.
Backup Type Default Backup Type Specifies what type of backup appears as the default when creating new backup jobs.
Backup Log Detailed, Summary, None Specifies how much information to store in the log file for backups.
Exclude Files Files excluded for all users For all user accounts, specifies the list of file types to skip when backing up (for example, temporary and backup files, with extensions .tmp and .bak). Click Add to add a file type to the list.
Exclude Files Files excluded for user username Ditto, for the user who is currently logged in.
Table 1: Backup Utility Configuration Options

Running the Backup Utility from the Command Line

When you schedule a backup job, the Backup Utility creates a command line that runs the job with your settings--where to store the backup, what to call it, and other settings. You can see the command line for a scheduled backup job by clicking the Schedule Jobs tab, clicking the icon for a backup job, and clicking the Properties button on the Scheduled Job Options dialog box that appears. You see the Schedule Job dialog box. The Run box on the Task tab shows the command line, which is something like this:

C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and Settings\Margy\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\OE Data.bks" /a /d "Set created 7/5/2002 at 4:12 PM" /v:no /r:no /rs:no /hc:off /m normal /j "OE Data" /l:s /f "D:\Data\Backup OE Data.bkf"

To run the backup Utility from the command line (the Start | Run box, a Command Prompt window, or a shortcut), you type:

ntbackup backup [systemstate] backupjob switches

The systemstate switch is optional (don't type the brackets if you choose to include it). Replace backupjob with the name of the .bks file that contains the specifications for the backup job. Replace switches with the appropriate switches from Table 9-2. If you are backing up to tape (or any medium that is controlled by the Removable Storage service), also use the switches described in Table 9-3.

Switch Description
Backup Specifies that you are performing a backup rather than a restore.
Systemstate Backs up the system state (Registry, boot files, and other system information). Omit this switch to avoid backing up the system state.
Backupjob Specifies the pathname of the .bks file that contains the backup job specifications.
/D "label" Specifies a label for the backup set. Type the quotes around the label.
/F "filename" Specifies the pathname of the backup file. Don't use this with the /G, /P, or /T switches when backing up to tape. Type the quotes around the filename.
/J "name" Specifies the backup job name, which appears as the Backup Identification Label on the Restore And Manage Media tab of the Backup Utility window. It also appears in the log file for the backup. Type the quotes around the backup job name.
/L:f or /L:s or /L:n If "f," creates a full log file. If "s," creates a summary log file. If "n," doesn't create a log file.
/M backuptype Specifies the backup type: "normal," "copy," "differential," "incremental," or "daily."
/SNAP:on or /SNAP:off If "on," includes open files, making a volume shadow copy (which used to be called a snapshot).
/V:yes or /V:no If "yes," verifies the backup after it's finished.
Table 2: NTBackup Command Line Switches for All Backups
Switch Description
/A Appends the backup to the end of the tape, rather than erasing what's already on the tape. Use with /G or /T, not with /P.
/G "guidname" Specifies the tape by its GUID (globally unique identifier), and overwrites or appends to this tape. Do not use this switch in conjunction with /P. Type the quotes around the GUID.
/HC:on or /HC:off If "on" and the tape drive supports hardware compression, uses hardware compression when backing up. If "off," doesn't use hardware compression.
/N "newtapename" Specifies the name to give to the new tape used for the backup. Don't use with /A. Type the quotes around the tape name.
/P "poolname" Specifies the media pool from which the tape comes. Backup uses any available tape from this pool, so you can't use /P with /A, /G, /F, or /T. Type the quotes around the media pool name.
/R:yes or /R:no If "yes," only the user who created the tape, or administrative users, can use this tape.
/RS:yes or /RS:no If "yes," includes the Removable Storage database in the backup. If "no," omits the database from the backup.
/T "tapename" Specifies the name of the tape onto which to back up. Don't use with /P. Type the quotes around the tape name.
/UM Backs up to the first available tape in the media pool that you specified with /P. Formats the tape before the backup.
Table 3: NTBackup Command Line Switches for Backups to Tape

You can run the Backup Utility from the Command Prompt window or in the Start | Run dialog box: type or copy the ntbackup command followed by the command line switches. Or create a shortcut that contains the command line: right-click the Windows desktop, choose New | Shortcut from the menu that appears, and type or copy the ntbackup command line in the Type The Location Of The Item box. Once you've made a shortcut for the ntbackup command, you can leave it on the desktop or copy it onto the Start menu.

PreviousChapterContentsGlossaryNext