The following topics discuss archiving SnapManager backups using a Windows backup utility:
When you use a Windows backup utility to archive your SnapManager backups, you mount the LUNs backed by the backup Snapshot copy you want to archive, and then use NTBackup or another Windows backup utility to copy the archive data to your archive medium. In this case, the NTFS data is backed up, rather than the raw LUNs.
This archive method is represented by the following illustration.
Note
The LUN does not need to be mounted on the SQL Server computer; another network host system that is running SnapDrive can be used for this function.
The archive must include the following two components:
Using a Windows backup utility to archive SnapManager backups provides these advantages:
The advantages of using a Windows backup utility to archive SnapManager backups must be weighed against these disadvantages:
The following example illustrates one way to use a Windows backup utility to archive your SnapManager backup sets using a script:
This example is based on the following assumptions, which you might need to alter for your environment:
The sample script SampleScript.txt contains the following lines:
REM Mount a LUN backed by the snapshot of the SQL Server database
REM as drive letter V:\.
sdcli snap mount -k s -s %1 -d v
REM Use NTBackup to back up the database files. The path to the
REM databases in your environment might be different. The /N and /D
REM options are included to name the tape and add a description.
ntbackup backup "V:\Program Files\MSSQL\sqldbdata" /N %1 /D %2
REM Dismount the snapshot mounted as drive letter V:\. The -f
REM option causes the drive letter to be forcefully disconnected.
sdcli snap unmount -d v -f
REM Use NTBackup to back up the SnapInfo directory. The media is REM appended so as not to overwrite the database backup.
ntbackup backup %3 /T%1 /A
Use the SnapManager Run Command After Operation feature to invoke the script as follows:
C:\SnapManager Scripts\SampleScript.txt $SqlSnapshot $SnapInfoName $SnapInfoPath
The three command-line parameters ($SqlSnapshot, $SnapInfoName, and $SnapInfoPath) correspond with the script variables (%1, %2, and %3), as summarized in the following table.
%1 |
$SqlSnapshot | |
%2 |
$SnapInfoName | |
%3 |
$SnapInfoPath | |
For more information about the Run Command After Operation feature, see Using the Run Command After Operation feature.
Copyright © 1994-2006, Network Appliance, Inc. All rights
reserved.
Part No. 215-01752_A0
File: archbkp5.htm
Last updated: 01-Sep-2006 07:41:22