Backing Up and Restoring Files

Although current storage technologies, such as RAID, hot-swappable hard drives , and network-attached storage are making servers ever more secure in their capability to maintain data, there are still many ways in which data can be lost or corrupted. For those situations, it is necessary to have a backup of your network data so that lost files can be recovered.

NetWare 6.5 provides a data backup-and-restore infrastructure known as Storage Management Services (SMS). SMS makes it possible to copy your network data, including files, directories, the eDirectory database, and even data from other servers and clients , to an offline storage system such as tape or optical disk. With a well-developed backup strategy, you can be confident that you will always have a current copy of your network data, so you can restore files should the unthinkable occur.

There are several network backup solutions on the market today. The third-party backup solutions for NetWare build upon the SMS foundation to deliver their solutions. NetWare 6.5 includes a fairly basic server-based backup interface called SBCON . This utility will get the job done, but it lacks many of the conveniences , such as flexible scheduling options, that third-party products have.

Backing up network files involves more than just making a copy of the files. It's important to use a backup product, such as SBCON , that backs up not just the files but also the NetWare information associated with those files, such as trustee rights, inherited rights filters, and file and directory attributes.

A solid backup strategy is critical to the well being of your network. The following section describes backup strategies that can be employed to protect your valuable data.

Planning a Backup Strategy

Planning is critical to developing an effective backup strategy. A well-planned backup strategy will avoid those headaches associated with finding and restoring files should that be necessary. It will reduce the time it takes to perform data backups and help keep your network humming along. When planning your backup strategy, consider the following:

  • How frequently should you make backups?

  • What type of medium are you going to use to back up your data?

  • How should you rotate your backup media?

  • Where will your backup copies be stored?

  • How and when will you test the restore procedure?

TIP

Although it is possible to backup eDirectory database files, restoring them is a prescription for major grief . Rather than trying to restore eDirectory objects from tape, use partition replication to restore objects to a server. For more information on eDirectory design and replication, see Chapter 5 .


Planning a Backup Schedule

An important part of determining how often you need to back up your data revolves around how rapidly significant changes to your data occur, and how important those changes are. A lot of this depends on your line of business. If your data changes rapidly , and those changes must be protected, you should plan on daily backups of that information. If your data changes more slowly, or if re-creating the lost data isn't a big deal, perhaps a weekly backup schedule will do the trick.

Backup products let you determine not only when to back up your network, but also what types of information you back up each time. There isn't much point in backing up all your network data every night if only a few of the files are changing each day.

If you don't need a full backup every time, you can perform what is known as an incremental backup. In an incremental backup, changed files are detected , and only they are backed up. One particularly efficient way of backing up your network involves both incremental and full backup routines.

One day a week, you perform a full backup of the network. Then, on each subsequent day during that week, perform an incremental backup of only those files that have changed. Using this strategy, you can restore your entire system, if necessary, by first restoring the weekly backup, and then applying each daily backup to get your files back to their state the day prior to the system failure. This achieves full data protection while minimizing the time it takes to perform the daily backup routines.

Finally, a differential backup is a twist on the incremental backup. Differential backups are the same as incremental backups except that the archive bit is not reset as part of the backup process. This means that each differential backup will include all changed data since the last full backup, eliminating the need to restore multiple backup sessions in order to recover all file changes since the last full backup.

TIP

Backup products that are NSS -aware can speed up incremental backups significantly by leveraging the NSS Modified File List (MFL). The MFL maintains a list of changed files so that the backup software doesn't have to review every file manually to see which have changed since the last backup.


Another tip for minimizing backup time is to organize your directory (folder) structure so that often-changed files are separate from seldom-changed files. For example, there's no point in wasting your time by frequently backing up files such as applications and utilities, which seldom change. If you put applications in one directory and work files in another, you can skip the application directory completely during incremental backups, making the process go faster.

Finally, be sure to document your backup schedule and keep a backup log. A written record of all backups and your backup strategy can help someone else restore the files if you aren't there.

Choosing Your Backup Medium

Before purchasing a backup device, you must decide what kind of backup medium you want to use. Many manufacturers' backup products can back up data onto a variety of storage media, but it's a good idea to know what you want before you buy something that limits your choices. The medium you choose will probably depend on the following factors:

  • How much you're willing to spend .

  • How large your network is.

  • How long you need to retain your backed-up data. (Some media deteriorate after a few years ; other media have a 100-year guarantee.)

Tape is still the most common backup medium in use today, especially in small- to medium- sized businesses. Tapes are relatively easy to use, can be used in any size network, and are fairly inexpensive.

NOTE

One of the downsides of tape is that backup manufacturers may use different, proprietary tape formats that aren't compatible with each other. Two tape standards have been established (one from Novell and another from Microsoft), so some efforts have been made to standardize on one or the other, but there are still differences between manufacturers. Be sure any backup product you buy is compatible with any other system with which you need to share tapes.


You should study the pros and cons of the various tape formats to find the best balance between cost and performance before making a decision. For example, SBCON supports the following tape formats:

  • 0.25'' TapQuarter-Inch Cartridge

  • 4mm (use only Digital Data Storagecertified tapes)

  • 8mm

If you are interested in very long- term storage, tapes suffer because they will break down over time. Optical storage such as CD- writeable disks and DVDs provide a storage medium that is much more resistant to the ravages of time. However, these solutions are typically significantly more expensive than tape solutions, and SBCON does not currently support an optical backup method. You will need to use a third-party solution in this case.

If you are unsure about the best storage medium for you, talk to your resellers about your specific needs, and let them help you choose the best fit for your storage needs.

Planning the Media Rotation

When you are using re-writeable media, such as tapes, plan to have multiple sets of backup media that can be rotated . This way you keep multiple datasets available at all times. If your current backup is corrupted for any reason, you can still fall back to an older copy. Many network administrators use three or more sets of backup media and cycle through them, one each week. That way, three or more backup datasets are available at any given time. The number of tapes or disks you need depends on the rotation schedule you select.

Some backup products offer preset rotation schedules for you. They will automatically prompt you for the right set of media and keep track of the schedule.

Deciding Where to Store the Backups

Another important aspect of your backup strategy is to plan where to store your backups. If you have backups of noncritical data, you might be comfortable keeping them on-site. However, when storing backups on-site, you should at least store them in a room separate from the server's room. If a fire breaks out in the server room, your backup tapes won't do you much good if they're lying melted beside the server.

For mission-critical data, you might need to keep backups in an off-site location. That way, if a physical disaster occurs (such as a fire, flood, or earthquake), they'll be safe. If the data is critical enough to store off-site, but you also want to have immediate access to it, consider making two copies and storing one off-site and the other on-site.

Testing the Restore Process

A backup is useful only if the data in it can be restored successfully. Too many people discover, too late, a problem with their backups when they're in the middle of an important data restore process. One way to avoid this is to practice restoring files in a lab environment. This will not only familiarize your staff with the process, but will also test the quality and integrity of your backup data. By practicing, you can identify problems you didn't realize you had. Don't wait until it's too late.

The correct frequency for testing your restore process is dependent upon the frequency of your backups and the criticality of your data. For very sensitive systems, monthly tests might be necessary, but for most environments, a quarterly test of your restore process will probably be sufficient.

Preparing to Use SBCON

SBCON is a console-based utility included in NetWare 6.5 that can be used to back up all the different types of files that can be stored on your server: DOS, Macintosh, Windows NT/2000/XP, Windows 95/98, and Unix.

There are five major steps involved in configuring the NetWare 6.5 backup system for use:

  1. Install the Storage Management Services (SMS) on a NetWare 6.5 server. SMS is the collection of files and utilities that comprise the NetWare backup solution. It also provides a foundation and common interface for third-party vendors that allow their backup applications to communicate with NetWare.

  2. Install a backup device and load the device's drivers on a server. This server will be the host server (the backup server).

  3. Load the necessary backup NLMs on the host server.

  4. Load the appropriate Target Service Agents (TSAs) on any servers or workstations whose files you want to back up. These servers and workstations are called targets .

  5. Launch the Storage Management Engine (SME) on either the host server or a workstation. The SME is the interface from which you will run backup and restore operations. SBCON is the NetWare 6.5 SME.

You will perform the first three steps in this process whether you choose to use SBCON or some other utility as your preferred SME. Several third-party vendors offer backup/restore utilities that function as SMEs. They have designed their systems to integrate with the NetWare SMS so that they don't have to re-create the low-level interface with the operating system.

Installing Storage Management Services

You can install SMS during the installation of NetWare 6.5, by choosing it as an optional Novell service. You also can install SMS after the fact through iManager or the graphical server console. To install SMS through iManager, complete the following steps:

  1. Insert the NetWare 6.5 Operating System CD-ROM into your workstation.

  2. Launch iManager and open the Install and Upgrade link in the left navigation frame.

  3. Select Install NetWare 6.5 Products, and then click Remote Product Install in the right frame.

  4. At the Target Server screen, select the server to which you want to install SMS and click Next . Authenticate as an Admin user for your eDirectory tree and click OK.

  5. At the components screen, click Clear All and select only Storage Management Services. Click Next.

  6. At the Summary screen, click Copy Files. You will be prompted to insert the NetWare 6.5 product's CD-ROM. After the SMS files are copied , click Close to complete the installation.

With SMS installed, you are now ready to configure the backup/restore environment on your NetWare 6.5 server.

Setting Up the Host Server and Targets

Before you can run SBCON , you must first prepare the host server and any targets you want to back up, by completing the following steps:

  1. Attach the backup device (tape or disk drive) to the host server, following the manufacturer's instructions.

  2. Load the necessary backup device drivers on the host server, again following manufacturer's instructions.

  3. Confirm that the device is loaded, and recognized by NetWare, by launching NoRM and opening Partition Disks. You should see the backup device listed as a device. If you don't see your backup device listed, use the following console command to register the device with NetWare:

     
     SCAN FOR NEW DEVICES 

    TIP

    Place the commands that load the backup device drivers in the server's STARTUP.NCF file if you want them to load automatically when the server is rebooted.

  4. SMS includes SMSSTART.NCF to load the basic SMS modules on a NetWare 6.5 server. It is stored in SYS:SYSTEM . You can put the SMSSTART command in your AUTOEXEC.NCF if you want to load SMS modules automatically when the server boots.

    • SMDR.NLM: This is the SMS Data Requester. It automatically creates an SMS SMDR Group object in the server's context. The SMS SMDR Group object will contain each server and workstation to be backed up by this host server.

    • TSAFS.NLM: This is the TSA for NetWare 6.5 servers. This module lets you back up data stored on this server.

Additional SMS modules might also be needed, depending on your specific needs. They must be loaded manually from the server console or the AUTOEXEC.NCF. These optional SMS modules include the following:

  • SMSDI.NLM: This is the SMS Device Interface module, which will let the SBCON program communicate with the backup device:

  • QMAN.NLM: This is the SMS Queue Manager, which will create a job queue for the backup utility to use. The backup queue object is named < servername > Backup Queue (where <servername> is the name of the server on which QMAN.NLM is running).

  • TSANDS.NLM: This TSA lets you back up the eDirectory database. It's usually best to load this on a server that contains a replica of the eDirectory tree's largest partition.

NOTE

Because NSS supports mounting the DOS partition as a logical volume, you can use the nss /DOSFAT command to make the DOS partition accessible to your SMS backup operations.


  1. (Optional) If you are going to back up any other target servers from this host server, you need to load the appropriate TSA(s) on the target server. The TSA modules that might be appropriate for a target server, which is not also functioning as a host, include the following:

    • TSA600 : Load on NetWare 6 target servers.

    • TSA500 : Load on NetWare 5 target servers.

    • TSA410 : Load on NetWare 4 target servers.

    • TSADOSP : Load on a target server if you want to back up its DOS partition. This NLM is necessary only on older versions of NetWare.

When these steps are completed, the host server is prepared, and the target server is ready to be backed up.

Backing Up Files with SBCON

After you've loaded the necessary NLMs on the host server and loaded a TSA on the target server or workstation, you are ready to back up the target's files. NetWare 6.5 provides SBCON.NLM as a console-based utility for backing up network data.

SBCON enables you to select the type of backup you want to perform. There are three choices (all of which can be customized for your particular needs):

  • Full backup. This option backs up all network files. It removes the Archive file attributeassigned to a file whenever the file is changedfrom all files and directories. When the file is backed up, most backup products can remove the attribute so that the next time the file is changed, the attribute is once again assigned.

  • Differential backup. This option backs up only files that were modified since the last full backup. It does not remove the Archive attribute from these files.

  • Incremental backup. This option backs up only files that were modified since the last full or incremental backup. It removes the Archive attribute from these files.

SMS is cluster-enabled, meaning that it can run on a server cluster. It is also capable of backing up cluster-enabled pools by using the same procedure outlined next for regular SMS targets. For more information on Novell Cluster Services (NCS), see Chapter 11, "Multiprocessor Support and Clustering."

To use SBCON to back up files, complete the following steps:

  1. Load SBCON from the server console. You can also perform these tasks remotely using RConsoleJ. For more information on RConsoleJ, see Chapter 3.

  2. From the main menu, choose Job Administration, and then choose Backup.

  3. At the Backup Options screen, configure the backup session (see Figure 8.8). When finished, press Esc to save your options.

    • Target service: Select the target server to back up. Enter a suitable username and password for the target. Specify the user's full name, with context and a leading dot.

    • What to back up: Press Enter to open the List Resources box. Press Ins and browse the list of volumes , directories, and files until you locate what you want to back up. Press Enter to select the item and Esc to move it to the List Resources box. When you have selected all the resources you want to back up, press Esc to return to the Backup Options menu.

    • Description: Enter a descriptive name for this backup session. This description will be used during a restore process, so be as specific as possible. Include dates and specific paths included in the backup session if possible.

    • Device/media name: Choose the backup device and medium you will use. If only one device is available, the backup program will choose it for you. Specifying wildcard characters (*.*) will select the default device.

    Figure 8.8. The Backup Options screen in SBCON is used to create a new backup job.

    graphics/08fig08.gif

  4. Open the Advanced Options menu to select specific session characteristics for the backup. Press Esc to save your choices.

    • Backup type: Specify Full, Differential, or Incremental backup.

    • Subsets of what to back up: Specify Include and Exclude options to customize what you want to back up. Use Exclude options when you want to back up most of the file system while omitting only a small part. Everything that you don't specifically exclude is backed up. Use Include options when you want to back up only a small portion of the file system. Everything you don't specifically include is excluded.

    • Scan options: Specify what types of data to exclude from the backup process. Options include subdirectories, trustee rights, hidden files, and the like.

    • Execution time: Specify the time you want the backup to occur. If you don't modify this, it will start immediately.

    • Scheduling: Specify a schedule for the job you are creating, if you want it to run on a regular basis without having to reconfigure it each time.

  5. Next to Append Session, select Yes if your backup device allows you to put multiple sessions on a medium, and if one or more sessions are already on the medium you're using. Select No to overwrite any existing sessions.

  6. When asked if you want to submit a job, select Yes to submit it to the SMS queue.

Once the job is submitted, SBCON runs the backup session as configured, at the time specified.

Restoring Files with SBCON

To restore files from a backup, you need to prepare the host server and targets the same way you did for the backup procedure.

After you've loaded the necessary NLMs on the host server and loaded a TSA on the target server or workstation, use SBCON to restore files. To use SBCON to restore files to an SMS target server, complete the following steps:

  1. Load SBCON from the server console.

  2. From the main menu, choose Job Administration, and then choose Restore.

  3. At the Restore Options screen, configure the restore session (see Figure 8.9). When finished, press Esc to save your options.

    • Target service: Select the target server. Enter a suitable username and password for the target. Specify the user's full name, with context and a leading dot.

    • Description: Specify the name for this restore session. This name can be used to identify the restore session in the SBCON job queue.

    • Device/media name: Choose the backup device and medium from which you will restore the data. If only one device is available, the backup program will choose it for you. Specifying wildcard characters (*.*) will select the default device.

    • Session to Restore: Specify the name of the session that you want to restore. Press Enter to see a list of all available sessions on the device/media you have chosen . You will see the description names you specified when each backup session was created.

    Figure 8.9. The Restore Options screen in SBCON is used to restore a backup to an SMS target.

    graphics/08fig09.gif

  4. Advanced Options is the last option on the Restore Options screen. Use it to configure the specific session characteristics for the restore operation. Press Esc to save your choices.

    • Rename data sets: If you want to restore the data to a different location, specify the specific path here.

    • Subsets of what to restore: Specify Include and Exclude options to customize what you want to restore. Use Exclude options when you want to restore most of the file system while omitting only a small part. Everything that you don't specifically exclude is restored. Use Include options when you want to restore only a small portion of the file system. Everything you don't specifically include will not be restored.

    • Open mode options: Specify what types of data to exclude from the restore process. Options include data streams, trustee rights, space restrictions, and the like.

    • Overwrite parent: Specify whether you want to overwrite existing data that might exist for parent objects, which include servers, volumes, and directories.

    • Overwrite child: Choose whether to overwrite files without regard for last backup time or date of existing file.

    • Execution time: Specify the time you want the restore operation to occur. If you don't modify this, it will start immediately.

    • Scheduling: Specify a schedule for the job you are creating if you want it to run on a regular basis without having to reconfigure it each time.

  5. When asked if you want to submit a job, select Yes to submit the restore operation to the SMS queue.

As with the backup process, upon submission, SBCON runs the restore session as configured, at the time specified.



Novell NetWare 6. 5 Administrator's Handbook
Novell NetWare 6.5 Administrators Handbook
ISBN: 0789729849
EAN: 2147483647
Year: 2002
Pages: 172

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net