Avamar For SQL Server User Guide 19.3
Avamar For SQL Server User Guide 19.3
User Guide
19.3
Dell Inc.
August 2020
Rev. 02
Notes, cautions, and warnings
NOTE: A NOTE indicates important information that helps you make better use of your product.
CAUTION: A CAUTION indicates either potential damage to hardware or loss of data and tells you how to avoid
the problem.
WARNING: A WARNING indicates a potential for property damage, personal injury, or death.
© 2001 - 2020 Dell Inc. or its subsidiaries. All rights reserved. Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries.
Other trademarks may be trademarks of their respective owners.
Contents
Preface......................................................................................................................................... 7
Chapter 1: Introduction................................................................................................................10
Architecture........................................................................................................................................................................ 10
Avamar components....................................................................................................................................................10
How Avamar connects to SQL Server.....................................................................................................................11
Failover Cluster Instances.......................................................................................................................................... 12
AlwaysOn availability groups......................................................................................................................................14
Database mirroring.......................................................................................................................................................19
Data Domain system support.................................................................................................................................... 19
Server virtualization.....................................................................................................................................................19
Backup................................................................................................................................................................................. 20
Backup types................................................................................................................................................................ 20
Backups in AlwaysOn availability groups................................................................................................................22
Mixed backup storage................................................................................................................................................ 22
Multistreaming..............................................................................................................................................................23
Database log truncation............................................................................................................................................. 23
Backups with other tools...........................................................................................................................................23
Restore.................................................................................................................................................................................23
Restore to the original location................................................................................................................................ 23
Restore to a new database in the original instance............................................................................................ 24
Restore to a different instance on the original server....................................................................................... 24
Restore to an instance on a different server........................................................................................................24
Restore to a file........................................................................................................................................................... 24
Restore to an AlwaysOn availability group............................................................................................................ 25
Restore of a database with an intact log file........................................................................................................26
Restore of system databases................................................................................................................................... 26
Tail-log backup............................................................................................................................................................. 27
Point-in-time restore.................................................................................................................................................. 27
SQL Server recovery operations............................................................................................................................. 28
Year 2038...................................................................................................................................................................... 28
Table level recovery..........................................................................................................................................................29
Disaster recovery.............................................................................................................................................................. 29
Chapter 2: Installation.................................................................................................................30
Preparing to install the SQL Server plug-in................................................................................................................ 30
System requirements..................................................................................................................................................30
Preparing a stand-alone server................................................................................................................................35
Preparing a cluster...................................................................................................................................................... 35
Downloading the software........................................................................................................................................ 36
Verifying the environment.........................................................................................................................................36
Installing the Avamar Plug-in for SQL Server.............................................................................................................37
Installing the Avamar client software........................................................................................................................... 38
Installation road maps.................................................................................................................................................38
Contents 3
Installing the Avamar Client for Windows..............................................................................................................38
Installing the Avamar Plug-in for SQL Server.......................................................................................................39
Silent installation of Itempoint for SQL..................................................................................................................40
Registering the client................................................................................................................................................. 40
Configuring the cluster client in a failover cluster............................................................................................... 41
Configuring the cluster client for an AlwaysOn availability group................................................................... 42
Configuring the cluster client for an AlwaysOn availability group on Amazon Web Services and
Azure.......................................................................................................................................................................... 43
Upgrading the Avamar client software........................................................................................................................ 44
Upgrading on a stand-alone server......................................................................................................................... 44
Upgrading in a cluster................................................................................................................................................ 45
Uninstalling the Avamar client software......................................................................................................................45
Uninstall road map.......................................................................................................................................................45
Uninstalling the cluster client in a failover cluster...............................................................................................46
Uninstalling the cluster client for an AlwaysOn availability group................................................................... 46
Chapter 3: Backup.......................................................................................................................48
Perform an on-demand SQL backup by using AUI....................................................................................................48
Configure the SQL server policy................................................................................................................................... 49
Scheduling backups using the AUI Policy wizard...................................................................................................... 50
Creating a dataset.......................................................................................................................................................50
Creating a backup policy............................................................................................................................................ 51
Enabling a scheduled backup for a backup policy................................................................................................ 51
Monitoring backups........................................................................................................................................................... 51
Cancel backups..................................................................................................................................................................52
Verifying backups.............................................................................................................................................................. 52
Enforcement of backups to Data Domain................................................................................................................... 53
Chapter 5: Restore......................................................................................................................59
Restore requirements.......................................................................................................................................................59
Software requirements for restore......................................................................................................................... 59
Tail-log backup and point-in-time restore requirements................................................................................... 60
Requirements to restore secondary database files.............................................................................................60
Requirements to restore the Report Server database........................................................................................61
SQL Server write permission requirements........................................................................................................... 61
4 Contents
Determine the restore size for an SQL server database..........................................................................................61
Determine the space required to restore the system database....................................................................... 61
Determine the space required to restore a single SQL server database........................................................61
Determine the space required to restore multiple SQL server databases.....................................................62
Restore features available by using the AUI............................................................................................................... 62
Restoring a database to the original client............................................................................................................62
Restoring a database to a different client or instance.......................................................................................63
Restoring to a new database in the original instance.........................................................................................64
Restore SQL instance or database to a file.......................................................................................................... 65
Table Level restore......................................................................................................................................................67
Restore features available by using Avamar Administrator.................................................................................... 68
Finding a backup..........................................................................................................................................................69
Restoring to the original location..............................................................................................................................71
Restoring to a file........................................................................................................................................................ 73
Restoring system databases..................................................................................................................................... 77
Restoring to an AlwaysOn availability group.........................................................................................................82
Restoring a database with an intact log file..........................................................................................................84
Setting restore options.............................................................................................................................................. 85
Restore only on primary replica................................................................................................................................92
Monitor restores................................................................................................................................................................93
Cancel restores..................................................................................................................................................................93
Contents 5
avsqltlr command reference.......................................................................................................................................... 131
avsqltlr synopsis.......................................................................................................................................................... 131
avsqltlr options............................................................................................................................................................ 131
Monitoring CLI activities................................................................................................................................................ 132
6 Contents
Preface
As part of an effort to improve its product lines, Dell EMC periodically releases revisions of its software and hardware.
Therefore, some functions that are described in this document might not be supported by all versions of the software or
hardware currently in use. The product release notes provide the most up-to-date information on product features.
Contact a technical support professional when a product does not function correctly or does not function as described in this
document.
NOTE: This document was accurate at publication time. To find the latest version of this document, go to Online Support
(https://www.dell.com/support).
Purpose
This guide describes how to install Avamar in a Microsoft SQL Server database environment, and how to back up and restore
SQL Server databases.
Audience
The information in this guide is primarily intended for:
● System administrators who are responsible for installing software and maintaining servers and clients on a network
● Microsoft SQL Server administrators who are responsible for backing up and maintaining Microsoft SQL Servers
Persons using this guide should have current practical experience with the following topics:
● Operating system shell commands on the SQL Server platform (root permission required)
● The specific version of Microsoft SQL Server currently deployed at the site
Revision history
The following table presents the revision history of this document.
Related documentation
The following publications provide additional information:
● E-LAB Navigator at https://elabnavigator.emc.com/eln/elnhome
● Avamar Release Notes
● Avamar Administration Guide
● Avamar for Windows Server User Guide
Preface 7
● Avamar and Data Domain System Integration Guide
● Avamar Operational Best Practices Guide
● Avamar for Hyper-V VSS User Guide
● Avamar for VMware User Guide
Typographical conventions
Table 2. Typographical conventions
Bold Used for names of interface elements, such as names of windows, dialog boxes, buttons,
fields, tab names, key names, and menu paths (what the user specifically selects or clicks)
Italic Used for full titles of publications that are referenced in text
Monospace Used for:
● System code
● System output, such as an error message or script
● Pathnames, filenames, prompts, and syntax
● Commands and options
Documentation
The Avamar product documentation provides a comprehensive set of feature overview, operational task, and technical
reference information. To supplement the information in product administration and user guides, review the following
documents:
● Release notes provide an overview of new features and known limitations for a release.
● Technical notes provide technical details about specific product features, including step-by-step tasks, where necessary.
● White papers provide an in-depth technical perspective of a product or products as applied to critical business issues or
requirements.
Knowledgebase
The Knowledgebase contains applicable solutions that you can search for either by solution number (for example, KB000xxxxxx)
or by keyword.
8 Preface
To search the Knowledgebase:
1. Go to https://www.dell.com/support.
2. Under the Support tab, click Knowledge Base.
3. Type either the solution number or keywords in the search box. Optionally, you can limit the search to specific products by
typing a product name in the search box and then selecting the product from the list that appears.
Online communities
Go to Community Network at https://www.dell.com/community for peer contacts, conversations, and content on product
support and solutions. Interactively engage online with customers, partners, and certified professionals for all products.
Live chat
To engage Customer Support by using live interactive chat, click Join Live Chat on the Service Center panel of the Avamar
support page.
Service Requests
For in-depth help from Customer Support, submit a service request by clicking Create Service Requests on the Service
Center panel of the Avamar support page.
NOTE: To open a service request, you must have a valid support agreement. Contact a sales representative for details
about obtaining a valid support agreement or with questions about an account.
To review an open service request, click the Service Center link on the Service Center panel, and then click View and
manage service requests.
Enhancing support
It is recommended to enable ConnectEMC and Email Home on all Avamar systems:
● ConnectEMC automatically generates service requests for high priority events.
● Email Home sends configuration, capacity, and general system information to Customer Support.
Preface 9
1
Introduction
Topics:
• Architecture
• Backup
• Restore
• Table level recovery
• Disaster recovery
Architecture
You can use Avamar to back up and restore data in a variety of Microsoft SQL Server environments.
Avamar components
Required Avamar software components in a SQL Server environment include the Avamar Client for Windows, the Avamar Plug-
in for SQL Server, and the Avamar Management Web UI (AUI) or Avamar Administrator.
The following figure illustrates a basic system architecture, including required Avamar software components, when you use
Avamar to back up a SQL Server environment.
Install the Avamar Client for Windows and the Avamar Plug-in for SQL Server on the computer that is running SQL Server.
Access the AUI as a web browser and/or install Avamar Administrator on either the computer that is running SQL Server or on
a separate computer, as shown in the figure.
10 Introduction
Avamar Client for Windows
The Avamar Client for Windows installation includes the Avamar Plug-in for Windows File System and the Avamar agent, which
is required for the Avamar Plug-in for SQL Server. You can use the Windows File System plug-in to back up operating system
and SQL Server binary files, which are required for disaster recovery.
Avamar Administrator
Avamar Administrator is a graphical management console software application for remote administration of an Avamar system
from a supported Windows or Linux client computer. You can configure, perform, monitor, and manage backups and restores
using the AUI or Avamar Administrator . The Avamar Administration Guide provides complete instructions for accessing and
using each interface.
Authentication
Avamar connects to SQL Server for backup or restore by using either Windows authentication or SQL Server authentication.
With Windows authentication, Avamar connects to SQL Server by using the Windows system service account (NT AUTHORITY
\SYSTEM), which has privileges in SQL Server. The account must have the sysadmin server-level role.
With SQL Server authentication, Avamar connects to SQL Server by using a SQL Server login account. The account must have
the sysadmin server-level role. You must select the mixed authentication mode for the Database Engine when you configure
SQL Server.
If you do not specify an authentication method, then the SQL Server plug-in uses NT authentication and logs in with the
Windows system service account. This account has the public and sysadmin server-level roles in SQL Server by default in SQL
Server 2008 and 2008 R2. In SQL Server 2012, 2014, and 2016, you must add the account to the SQL Server administrators
group.
Adding sysadmin server-level role in SQL Server Management Studio on page 37 provides more instructions on adding sysadmin
server-level role in SQL Server Management Studio.
Introduction 11
Failover Cluster Instances
You can install SQL Server in a Windows Server Failover Clustering (WSFC) cluster with two or more nodes.
With Failover Cluster Instances (FCIs), SQL Server databases and log files are on storage that is shared between the nodes. If
one of the nodes fails, then the applications fail over to and run on another node. When the failed node comes back online, you
can fail back the applications from the other node.
SQL Server can run as either active/passive or active/active in a cluster.
Install the Avamar Client for Windows and the Avamar Plug-in for SQL Server on each node in the cluster. Then run the Cluster
Configuration Tool to configure the Avamar cluster client.
The Avamar server sends backup requests to the Avamar cluster client, which passes the request to the SQL Server plug-in on
the active node. The plug-in on the active node sends the backup data and metadata to the Avamar server.
12 Introduction
On Windows Server 2012 R2, the Avamar Plug-in for SQL Server supports storage of SQL Server databases and log files in an
active/passive cluster on shared disks, clustered shared volumes (CSVs), and shared virtual hard disk (VHDX) files. Shared
VHDX files must be on either a CSV or on a Server Message Block (SMB) 3.0 file share.
NOTE: For a SQL cluster on CSV, the CSV disk does not display as part of the SQL Cluster in the Avamar Windows
Cluster Configuration wizard. This is because the powershell commands do not provide the associated disk for the SQL
cluster in a CSV environment. To configure a client for the SQL cluster, a non-csv disk needs to be assigned to the SQL
Server role.
You install the Avamar Client for Windows and the Avamar Plug-in for SQL Server on each node in the cluster. Then you run the
Cluster Configuration Tool to configure the Avamar cluster client. When you perform a backup or restore, you select the cluster
client as the client to back up or the target client for the restore.
The Avamar server sends backup requests to the Avamar cluster client, which passes the request to the SQL Server plug-in on
both active nodes. The plug-ins on the active nodes back up the SQL Server data that they are managing to the Avamar server.
Introduction 13
AlwaysOn availability groups
You can configure a high availability of groups of databases by using AlwaysOn availability groups (AGs) in SQL Server 2012 or
later.
With AGs, SQL Server is installed in a WSFC cluster, but the data is not stored on a shared drive. The data is stored on each
node instead. The SQL Server synchronizes the data from the primary version of the database to any secondary versions on
other nodes.
You can group user databases together in an availability group. Databases in an availability group must use the full recovery
model. All databases in an availability group fail over together from one node to another.
A SQL Server instance on a cluster node that hosts an availability group is called an availability replica. Each availability replica
of an availability group must reside on a different node of the same cluster. There are two types of availability replicas: primary
replica (one) and secondary replicas (one or more). The primary replica handles read or write activity from clients and sends
transaction log updates to the secondary replicas. Each secondary replica applies the transaction log updates to its databases.
During fail over of an AG, the target secondary replica assumes the primary role and becomes the new primary replica. The
target secondary replica brings its databases online as the primary databases, and client applications can connect to them. When
the former primary replica is available, it assumes the secondary role and becomes a secondary replica.
Avamar does not support the following configurations:
● Distributed availability groups
● Domain-Independent Availability Groups
● Read-scale availability groups
NOTE: The Avamar Plug-in for SQL Server does not support backups of AlwaysOn availability groups on an availability
replica, which is hosted by a SQL Server Failover Cluster Instance (FCI). You must install the Avamar client software on the
node with the primary replica as a stand-alone client, to back up databases in such an environment. You can perform
backups only on that node.
NOTE:
In SQL AAG configuration, incremental backups on a secondary node may get promoted to full. This happens if SQL server
takes time to update LSN inside msdb during previous incremental backup on secondary.
14 Introduction
Figure 4. Backup workflow on a primary replica in an AlwaysOn environment
The Avamar server sends a backup request to the Avamar cluster client for the availability group listener, which passes the
request to the primary replica. The SQL Server plug-in on the node with the primary replica performs the backup and sends the
backup data and metadata to the Avamar server.
Introduction 15
Figure 5. Backup workflow on a secondary replica in an AlwaysOn environment
The Avamar server sends a backup request to the Avamar cluster client for the availability group listener, which passes the
request to the primary replica. The SQL Server plug-in on the node with the primary replica determines the secondary replica on
which to perform the backup, and forwards the backup request to the SQL Server plug-in on the node with the secondary
replica. The plug-in on the node with the secondary replica performs the backup and then sends the backup data to the Avamar
server. The plug-in on the secondary replica then sends the metadata to the Avamar server and notifies the plug-in on the
primary replica whether the backup completed successfully. The primary replica sends the final summary to the Avamar server.
16 Introduction
Figure 6. Restore workflow to only the primary replica in an AlwaysOn environment
The Avamar server sends a restore work order to the cluster client for the availability group listener, which passes the work
order to the SQL Server plug-in on the node with the primary replica. The plug-in on the primary replica removes the databases
that you are restoring from the availability group and restores the databases. After the restore completes, the plug-in on the
primary replica adds the restored databases to the availability group and sends information about the restore to the Avamar
server.
If there is a corresponding database on the secondary replicas when you restore a database only on the primary replica, then the
database on the secondary replicas is in a restoring state. To restore the databases on the secondary replicas as part of the
availability group, manually prepare and restore the databases, and join them to the availability group on the secondary replica.
You can also set the database on a secondary replica online without rejoining it to the availability group by restoring the
database with the RECOVERY recovery operation (RESTORE database WITH RECOVERY). The SQL Server documentation
on the Microsoft TechNet website provides details.
Introduction 17
Figure 7. Restore workflow to the primary and secondary replicas in an AlwaysOn environment
During the restore, the Avamar server sends a restore work order to the SQL Server plug-in on the node with the primary
replica. The plug-in on the node with the primary replica then sends the restore work order to the plug-in on the nodes with the
secondary replicas. The plug-ins on the primary and secondary replicas remove the databases that you are restoring from the
availability group and restore the databases.
After the restore completes, the plug-in on the node with the primary replica adds the restored databases to the availability
group. Then the plug-ins on the nodes with the secondary replicas join the restored databases to the availability groups. When
the entire restore process completes on all replicas, the plug-in on the node with the primary replica sends information about the
restore to the Avamar server.
18 Introduction
If the primary replica is on-premise, restore data to only the primary replica. Do not attempt to restore to both the primary and
secondary replicas. If there is a corresponding database on the secondary replicas when you restore a database only on the
primary replica, then the database on the secondary replicas is in a restoring state. To restore the databases on the secondary
replicas as part of the availability group, manually prepare and restore the databases, and join them to the availability group on
the secondary replica.
If the primary replica is on a Microsoft Azure virtual machine, then restore the database to operating system files and then use
SQL Server tools to restore the database to the availability group.
Database mirroring
Database mirroring maintains multiple copies of a single database that must reside on different SQL Server instances. Typically,
these server instances reside on computers in different locations.
The principal server serves the database to clients, while the mirror servers serve as standby servers.
Implement mirroring settings individually for each database.
Mirroring works only with databases that use the full recovery model. The simple and bulk-logged recovery models do not
support database mirroring, and you cannot mirror the master, msdb, tempdb, or model databases.
You can use the Avamar Plug-in for SQL Server to back up mirrored SQL Server databases. However, several conditions apply:
● The SQL Server version must be 2008 or greater.
● Perform backups of only the principal database, not the mirrors.
● Use only the Avamar Plug-in for SQL Server to perform backups. If you use other backup products in addition to the Avamar
Plug-in for SQL Server, then log chain breaks may occur.
● Backup and database administrators must use extra care. Some mirror operations cause log chain breaks that cannot be
detected.
● When database mirroring is established, either initially or as the result of failover and failback, then you must manually
perform a new full backup. Otherwise, incremental and differential backups that occur after the establishment of database
mirroring are not valid for restore. After you perform the full backup in this case, you cannot perform point-in-time
recoveries to a point in time before the full backup.
● To restore a database, you must break the SQL mirror.
Server virtualization
You can install SQL Server in a server virtualization environment such as VMware or Microsoft Hyper-V. There are multiple ways
that you can install and use Avamar to back up and restore SQL Server data in a server virtualization environment.
The Avamar for Hyper-V VSS User Guide and Avamar for VMware User Guide provide details on additional system
requirements, as well as installation and configuration procedures.
Introduction 19
Backup
When you perform a backup with the Avamar Plug-in for SQL Server, you can back up either all SQL Server data on a specific
server, one or more instances, or one or more databases.
You cannot use the Avamar Plug-in for SQL Server to back up individual filegroups, files, or tables. To back up individual files,
use the Avamar Client for Windows.
The SQL Server plug-in can back up both user databases and system databases such as the master, msdb, and model
databases. Backup of system databases in a SQL Server replication environment, such as the publication, distribution, and
subscription databases, is also supported.
The SQL Server plug-in does not support backup of either the Resource or tempdb database because Microsoft SQL Server
does not support backup and restore of those system databases.
Avamar can back up databases that use any of the three recovery models: simple, full, or bulk-logged. However, the recovery
model may determine the type of backup that you can perform of the database.
The SQL Server plug-in provides the ability to include and exclude data from the backup dataset. You can include and exclude
data when creating or editing a policy, or when creating or editing a dataset in the Settings pane. The Avamar Administration
Guide provides more information.
NOTE: The Avamar AUI is only supported in stand-alone Windows and Linux environments only.
Backup types
The Avamar Plug-in for SQL Server supports full, differential, transaction log (incremental), and copy-only database backups.
The following figure illustrates the different types of data that are included in each of the backup types.
20 Introduction
Full backups
Full backups include the entire database, including all objects, system tables, and data. As the backup operation progresses, it
copies the transaction logs. The timing of the transaction log backup ensures that you can recover the complete database to
the state it was in when the backup finished.
Differential backups
Differential backups include data that changed after the last full backup. The backup operation also copies relevant portions of
the transaction logs.
When you select a differential backup to restore a database, the restore process restores the last full backup, followed by the
differential backups performed after the full backup. Because a differential backup only saves changes to data, the backup is
smaller and faster than a full backup. Therefore, you can perform a differential backup more often than a full backup.
Differential backups are used primarily in heavily utilized systems where you must bring a failed database back online as quickly
as possible. Differential backups are smaller than full backups, and so have less effect on the system where they run.
Copy-only backups
Copy-only backups are special-purpose full backups that are created independently of the sequence of full, differential, and
transaction log backups. After you perform a copy-only backup, the next differential or transaction log backup is based on the
last full backup, not the new copy-only backup.
Copy-only backups are supported for all recovery models, and for performing backups at the database, instance and stripe
levels. Restoring from a copy-only backup is the same as restoring from a full backup.
Copy-only backups cannot be used as a base for differential backups and do not truncate the transaction log. If you perform a
copy-only backup on a database without a current full backup, the Avamar Plug-in for SQL Server software promotes the next
differential or transaction log backup to a full backup. Promotion to full is indicated in the Activity Window of the Avamar
Administrator with the status Completed with Promotion. When only some of the databases in the backup are promoted to
full, the status will still be indicated as Completed with Promotion.
Previous versions of Avamar identify copy-only backups as type Unknown.
Introduction 21
Microsoft SQL Server also does not allow differential backups of the master database. You can only create full backups of the
master database.
If a transaction log backup includes databases with the simple recovery model and databases with other recovery models, then
you can select how Avamar handles the databases with the simple recovery model. You can exclude the databases with the
simple recovery model and log either a warning or an error message in the log, or you can automatically perform a full backup of
the databases. When you perform the backup, the For simple recovery model databases option controls this behavior.
Databases in AlwaysOn availability groups must use the full recovery model.
If you change the recovery model of a database, perform a full backup before you try to perform a differential or transaction log
backup.
If you change the backup storage from one Data Domain system to another Data Domain system, you can restore to a point in
time between the two full backups.
22 Introduction
Multistreaming
Multistreaming enables you to improve backup and restore performance by backing up and restoring SQL Server data by using
multiple parallel data streams.
You can either back up multiple databases in parallel with one stream per database, or back up a single database with multiple
parallel streams.
If you use multiple data streams to send backup data for a single database to the Avamar server or Data Domain system, then
the backup for the database is stored as multiple files. As a result, the restore uses the same number of streams that you use
for the backup.
You can specify a maximum of 10 streams for each backup, and the minimum size of a stream.
Restore
The Avamar Plug-in for SQL Server supports a variety of restore options to accommodate a wide range of data recovery needs.
The SQL Server plug-in performs only offline restores of SQL Server data. Online restore is not supported.
NOTE: The Avamar AUI is only supported in stand-alone Windows and Linux environments only.
Introduction 23
A standard restore with a tail-log backup is perhaps the most common restore procedure. During this procedure, a tail-log
backup is created to capture transactions that are not in a backup. Then Avamar restores the database from the most recent
full backup and any differential or transaction log backups.
You may need to use the SQL Server REPLACE option for a restore, for example, if a previous database restore exited with the
following SQL Server error in the Avamar SQL restore log:
NOTE: When you use the Avamar plug-in option for the SQL Server REPLACE option, it adds an SQL WITH REPLACE
clause statement to the restore Transact-SQL command. Use of this statement overrides a SQL Server safety check to
prevent you from accidentally overwriting a different database or file. The Microsoft Transact-SQL Reference Manual
provides more information about the safety check in the RESTORE command section.
Restore to a file
If the Avamar Plug-in for SQL Server is not installed on the target server, or you want to use the standard SQL Server restore
tools for other features, then you can restore user or system databases to operating system files. You can then use SQL Server
tools, such as SQL Server Management Studio, a Transact-SQL RESTORE command, or the Microsoft SQL Server sqlcmd
utility, to restore the databases.
The SQL Server plug-in restores the backup as one or more files to the specified destination in the following path:
destination\client\instance\database\file
where:
● destination is the destination for the files that you specified in the Set Destination dialog box.
● client is the name of the computer on which SQL Server is installed.
24 Introduction
● instance is the name of the SQL Server instance from the backup.
● database is the name of the database from the backup.
● file is the name of the file.
A single backup may include multiple files, depending on the number of streams in the backup. The file name for each file is
composed of the backup type and the stream number:
○ f-0 indicates a full backup.
○ d-n indicates a differential backup.
○ i-n indicates a transaction log (incremental) backup.
where n is the sequential number of the differential or incremental backup after the preceding full backup.
For example, a full backup with two streams results in two files: f-0.stream0 and f-0.stream1.
Introduction 25
NOTE: You cannot restore a database to a different availability group in the same cluster. Restore fails with an error
message that indicates the existence of the database.
26 Introduction
Automatic restore of system databases
When you restore multiple system databases, Avamar automatically restores the databases in the correct order: master, msdb,
and model.
Avamar can also automatically manage the stop and restart of the necessary SQL Server services during the restore. For
example:
● When you restore the master database, Avamar can automatically stop the SQL Server instance, including dependent
services such as the SQL Server agent service and the Analysis Service, and restart the instance in single-user mode before
the restore. After the restore, Avamar automatically restarts the instance.
● When you restore the msdb database, Avamar can automatically stop the SQL Server agent service, and then restart it when
the restore is complete.
Tail-log backup
With a tail-log backup, Avamar backs up the tail of the transaction log during the restore process to capture the log records that
are not in a backup. After the database restore, Avamar uses the tail-log backup to recover the transactions that were not in
the backup.
To perform a tail-log backup, the database must be online and using either the full or bulk-logged recovery model. As a result,
you cannot perform a tail-log backup of system databases such as the master and msdb databases because those databases use
the simple recovery model.
When you are restoring a user-defined filegroup or secondary data file and you perform a tail-log backup, you must select the
most recent backup as the backup from which to restore. Otherwise, the restore fails and an error message is written to the log
file.
You can perform a tail-log backup when you are restoring an instance, database, filegroup, or file to its original location without
the SQL WITH REPLACE option.
You can also perform a tail-log backup when you are restoring a database to the original instance but with a new database name.
If you are performing a point-in-time restore and the point in time that you are restoring to is after the most recent transaction
log backup, then you must perform a tail-log backup.
A tail-log backup is also necessary if you restore a file from a user-defined filegroup to its original location.
Do not perform a tail-log backup if you are performing a redirected restore to a different SQL Server instance.
NOTE: If the tail-log backup fails to complete, then the restore cannot take place. Review the log file to determine the
cause of the failure. Correct the problem, and then restart the restore. Keep in mind that if you clear the Tail-log backup
checkbox to prevent the tail-log backup from occurring, then the restore includes only the transactions up to the selected
backup. Any transactions in the tail of the log are lost.
Point-in-time restore
You can restore a database with the full recovery model to a specific date and time or to a named mark in the transaction log.
You cannot perform a point-in-time restore of system databases such as the master and msdb databases because those
databases use the simple recovery model.
Introduction 27
To restore to a specific point in time, you must provide the transaction date and time or named mark to which to recover. This
information is available in the SQL Server transaction log. The SQL Server documentation on the Microsoft TechNet website
provides details on how to access transaction log information.
The point in time to which you are restoring must be after the finish time for the most recent full backup. In addition, if the point
in time is before the start time of the most recent transaction log (incremental) backup, then a tail-log backup is not necessary.
However, a tail-log backup is required if the point in time is after the most recent transaction log backup.
When you specify the point in time for restore, do not specify the start time of the selected transaction log backup if it is not
the last backup in the backup sequence. Otherwise, the restore fails, and a tail-log backup does not occur even if you select the
Tail-log backup checkbox.
You can specify the recovery operation in the following restore scenarios:
● You are restoring an instance, database, filegroup, or file to its original location.
● You are restoring a database to the original instance but with a new database name.
● You are restoring an instance, database, filegroup, or file to a different instance on either the original server or a different
server.
● You are restoring one or more system databases. Keep in mind the following points, however:
○ If you are restoring the master or model database, then you must select the RECOVERY option. Do not use either the
NORECOVERY or STANDBY options.
○ If you are restoring the msdb database, then you can select any of the recovery operation options. However, if you select
NORECOVERY or STANDBY, then all databases become inaccessible until the restore of the msdb database is complete.
○ If you are restoring the system databases, then you must select the RECOVERY option. Do not use either the
NORECOVERY or STANDBY options.
Year 2038
Avamar 19.2 and later server subsystems support backup retention until February 2106. However, in earlier releases, the Avamar
server subsystems do not start after January 2038 due to the signed 32-bit integer time format of UNIX and Linux operating
systems, and therefore cannot restore backup data after this date.
Newer Avamar releases offer support for longer retention periods:
● Backup retention after 2038 is successful when all Avamar subsystems use unsigned 32-bit integers.
● In Avamar 19.2 and later releases, the Avamar server, client, and plug-ins subsystems all use an unsigned 32-bit integer and
will continue to start and retain data until 2106.
28 Introduction
● In Avamar 19.1, only the Avamar server subsystem used an unsigned 32-bit integer, and will continue to start until 2106.
However, the Avamar client and plug-ins subsystems used a signed 32-bit integer and will only retain data until 2038.
● In Avamar 19.1 and earlier releases, the Avamar server, client, and plug-ins subsystems all used a signed 32-bit integer, and
will only continue to start and retain data until 2038.
Therefore, with an Avamar 19.2 and later server subsystem and Avamar 19.2 or later client and plug-ins subsystems, all backup
retention succeeds after 2038.
Avamar 19.2 and later clients also support restoring backups where the retention time is after 2038, and where the local (server
and client) time is after 2038. Earlier client releases do not support this.
For backups of Windows or Linux clients, do not assign a retention period for a date after February 7, 2106.
Disaster recovery
To ensure sufficient preparation for disaster recovery of a SQL Server environment, you must perform ongoing backups of the
Windows server and all system and user databases. Disaster Recovery on page 94 provides high-level procedures for preparing
for and performing disaster recovery.
Introduction 29
2
Installation
Topics:
• Preparing to install the SQL Server plug-in
• Installing the Avamar Plug-in for SQL Server
• Installing the Avamar client software
• Upgrading the Avamar client software
• Uninstalling the Avamar client software
System requirements
The environment must meet client compatibility requirements before you install Avamar client software.
See the E-lab Navigator at https://elabnavigator.emc.com/eln/modernHomeDataProtection for client compatibility
requirements and supported operating systems and application versions.
The Avamar file system client and the plug-ins that you install on the host must have the same version number.
Installation of SQL Server 2008 or SQL Server 2008 R2 in a Windows Server 2012 cluster requires SQL Server 2008 SP3 or
later, or SQL Server 2008 R2 SP1.
On Windows Server 2012, the Avamar Plug-in for SQL Server does not support backup and restore of SQL Server data on
Server Message Block (SMB) 3.0 file shares. However, on Windows Server 2012 R2, the SQL Server plug-in supports storage of
SQL Server databases and log files in an active/passive cluster on shared virtual hard disk (VHDX) files on an SMB 3.0 file
share.
The Avamar Plug-in for SQL Server does not support backup and restore of the Windows Internal Database, which is also
referred to as SQL Server Embedded Edition.
The environment must also meet other requirements, including hardware requirements, security requirements, and SQL Server
feature and configuration requirements.
Hardware requirements
The following table lists the hardware requirements for the Avamar Plug-in for SQL Server.
30 Installation
Table 4. Minimum and recommended hardware requirements (continued)
Requirement Minimum and recommended
Network interface 10BaseT minimum; 100BaseT or higher recommended,
configured with the latest drivers for the environment.
Security requirements
When Avamar connects to SQL Server for backup or restore, you can use either Windows (NT) authentication or SQL Server
authentication.
With Windows authentication, Avamar connects to SQL Server by using the Windows system service account (NT AUTHORITY
\SYSTEM), which has privileges in SQL Server. The account must have the sysadmin server-level role.
NOTE: To use the Windows authentication method, select NT authentication in the plug-in options for the Avamar Plug-
in for SQL Server.
With SQL Server authentication, Avamar connects to SQL Server by using a SQL Server login account. The account must have
the sysadmin server-level role. You must select the mixed authentication mode for the Database Engine when you configure
SQL Server.
If you do not specify an authentication method, then the SQL Server plug-in uses NT authentication and logs in with the
Windows system service account. This account has the public and sysadmin server-level roles in SQL Server by default in SQL
Server 2008 and 2008 R2. In SQL Server 2012, 2014, and 2016, you must add the account to the SQL Server administrators
group.
Steps
1. In SQL Server Management Studio, expand the Security node and then the Logins node for the instance in the Object
Explorer.
2. Right-click the user to whom you want to assign the sysadmin server role and select Properties.
The Login Properties dialog box appears.
NOTE: For Windows authentication, select the NT AUTHORITY\SYSTEM user account.
3. Select the Server Roles page from the list in the left pane.
4. In the right pane, select the checkbox next to the sysadmin server role.
5. Click OK.
Installation 31
Transaction log marking requirements
The Avamar Plug-in for SQL Server cannot successfully back up and restore databases in which database transaction log marks
contain leading or trailing white space.
Alias requirements
A SQL Server alias is a name that you configure on the client computer that points to a server, instance, or database on either
the local server or on a different computer. You can use an alias to connect with a certain network protocol, such as TCP/IP,
Named Pipes, or Shared Memory.
An alias can improve the convenience and speed of connecting to SQL Server. However, improper use of an alias can result in
connectivity issues that are difficult to isolate and troubleshoot.
If you plan to use a SQL Server alias, review the requirements and configuration steps on the Microsoft website for setting up
an alias. Also, review best practices for using and troubleshooting aliases. These best practices are available in the blogs and
Support knowledgebase articles on the Microsoft website.
32 Installation
○ Specify a numeric value for the BACKUP_PRIORITY option when you issue the CREATE AVAILABILITY GROUP or
ALTER AVAILABILITY GROUP Transact-SQL command.
A value of 1 indicates the lowest priority, and a value of 100 indicates the highest priority.
Installation 33
When you perform an Avamar backup of TDE-protected databases, manually back up the DEK. The article “Understanding
Transparent Data Encryption (TDE),” available on the Microsoft TechNet website, provides additional details.
FILESTREAM requirements
The SQL Server FILESTREAM feature enables you to configure a database to store binary large object (BLOB) data as files on
the file system instead of in the database. The Avamar Plug-in for SQL Server supports backups of SQL Server databases with
FILESTREAM data for SQL Server 2008 and later.
Backing up and restoring a database with FILESTREAM data by using either Avamar Administrator or the avsql command line
interface (CLI) are the same as backing up and restoring other databases.
34 Installation
Preparing a stand-alone server
You must perform SQL Server installation and configuration steps before you install Avamar client software on a stand-alone
server.
Steps
1. Install and configure Microsoft SQL Server.
2. Install Microsoft .NET Framework 4. This software is required to install the Avamar Plug-in for SQL Server. Search the
Microsoft Download Center for “Microsoft .NET Framework 4" to find downloads and additional information.
3. If you are using Microsoft SQL Server 2012, 2014, or 2016, then add the Windows system service account to the SQL Server
administrators group. Adding sysadmin server-level role in SQL Server Management Studio on page 31 provides instructions.
Preparing a cluster
You must perform SQL Server installation and configuration steps before you install Avamar client software in a cluster.
Steps
1. Install and prepare the cluster.
2. If you are installing SQL Server 2008 or SQL Server 2008 R2 in a Windows Server 2012 cluster, enable the COM-based
MsClust.dll library on each node.
If you do not enable this library on the cluster node, then the SQL Server setup on the node fails with an error that cluster
service verification failed.
To enable the library, enable the Failover Cluster Automation Server feature by using one of the following methods on each
node in the cluster:
● In Server Manager, expand Remote Server Administration Tools > Feature Administration Tools > Failover
Clustering Tools, and then select the Failover Cluster Automation Server checkbox.
● Run the following Windows PowerShell cmdlet from an elevated command prompt:
add-windowsfeature RSAT-Clustering-AutomationServer
3. If you are installing SQL Server 2008 or SQL Server 2008 R2 in a Windows Server 2012 cluster, install SQL Server 2008 SP3
or later, or SQL Server 2008 R2 SP1 or later.
Otherwise, a “Windows Server 2003 FILESTREAM Hotfix Check” error appears when you install and configure SQL Server in
the cluster.
To ensure that you are installing the service pack version of SQL Server, you may need to perform one of the following
steps:
● Download the correct service pack package, and run the service pack setup on each of the cluster nodes to pre-patch
the nodes with setup binaries.
The setup process closes automatically after you install setup support files. You must reopen the setup wizard to perform
the SQL Server installation.
NOTE: If the SQL Support Files from SQL Server 2008 or SQL Server 2008 R2 are currently installed on the node,
uninstall SQL Server before you run the service pack setup to install latest SQL Support Files.
● Create a slipstream package that includes the service pack, and use that to install the service pack version of SQL Server
on each node. Microsoft knowledgebase article 955392, “How to update or slipstream an installation of SQL Server
2008,” which is available on the Microsoft website, provides instructions on creating a slipstream package.
Installation 35
Downloading the software
Download the installation packages for the Avamar Client for Windows, the Avamar Plug-in for SQL Server, and the Avamar
Config Checker from the Avamar server. Then save the installation packages to a temporary folder.
Steps
1. Log in to the computer that is running SQL Server as an administrator.
2. Log in to the application_name server as an administrator.
3. Open a web browser and type the following URL:
https://Avamar_server/dtlt/home.html
where Avamar_server is the DNS name or IP address of the Avamar server.
The Avamar Web Restore page appears.
4. Click Downloads.
The Downloads list appears.
5. Click + next to the operating system headings until the applicable software installation packages appear.
6. Click the Avamar Client for Windows installation package, AvamarClient-windows-x86_64-version.msi
where version is the Avamar client version.
7. Click the link for the SQL Server plug-in installation package, AvamarSQL-windows-x86_64-version.exe.
where version is the SQL Server plug-in version.
NOTE: Ensure that you select the correct installation package for the operating system.
Steps
1. Unzip the Avamar Config Checker installation package. To install the software, run the setup program.
2. Start the Config Checker:
a. Open the Start screen.
b. Select Avamar Config Checker.
3. Click Next on the welcome page.
The Avamar Application and User Settings page appears.
4. Select the version number from the Avamar version list.
5. In the application list, select the checkbox next to the applications on the client computer. Specify credentials, if required.
6. Click Next.
7. Review the summary information.
8. Click Run Tests.
When the verification completes, the Config Check Results window appears.
9. Save or open the results in HTML format.
NOTE: The Config Checker does not automatically save the results. If you do not save the results, you must rerun the
Config Checker to view them.
36 Installation
10. Click Finish to exit the Config Checker.
11. Review the HTML result file, and correct all failed checks.
12. Rerun the Config Checker to ensure that all the checks are successful.
The Avamar Config Checker for Microsoft Windows Technical Note, available on Online Support at https://www.dell.com/
support, provides troubleshooting information and details about the results that appear for each application.
Steps
1. Log in to the system that is running SQL Server as an administrator.
2. Go to the temporary folder that contains the Avamar installation files that you downloaded.
3. Start the setup wizard:
● If UAC is disabled, double-click the installation file to open it.
● If UAC is enabled, open a command prompt as an administrator. Change the directory to the location of the installation
package, and then type one of the following commands:
Where
○ q represents the quite mode in which no UI will be shown during the installation
○ n represents no User Interface (UI)
and
version is the Avamar plug-in version.
The Ready to Install Avamar Backup Plug-in for SQL Server page appears.
5. Click Install.
NOTE: The SQL Server plug-in automatically installs to the same folder as the Avamar Client for Windows.
Installation 37
Installing the Avamar client software
To install the Avamar client software, install the Avamar Client for Windows and the plug-in on the client computer. Then
register the client with the Avamar server. In a cluster environment, perform these steps on each node, and then configure the
cluster client.
Steps
1. Install the Avamar Client for Windows on the computer that is running SQL Server.
2. Install the Avamar Plug-in for SQL Server on the computer that is running SQL Server.
3. Register the computer that is running SQL Server as a client with the Avamar server.
Steps
1. Install the Avamar Client for Windows in the same folder on each node in the cluster.
2. Install the Avamar Plug-in for SQL Server in the same folder on each node in the cluster.
3. Register each node in the cluster with the Avamar server.
4. Use the Cluster Configuration Tool to configure the Avamar cluster client.
In a failover cluster, run the tool on the active node in the cluster. In an AlwaysOn availability group environment, run the tool
on the node that is hosting the primary replica.
Steps
1. Log in to the system that is running SQL Server as an administrator.
2. Go to the temporary folder that contains the Avamar installation files that you downloaded.
3. Start the setup wizard:
● If UAC is disabled, double-click the installation file to open it.
38 Installation
● If UAC is enabled, open a command prompt as an administrator. Change the directory to the location of the installation
package, and then type one of the following commands:
Where
○ q represents the quite mode in which no UI will be shown during the installation
○ n represents no User Interface (UI)
and
version is the Avamar client version.
Steps
1. Log in to the system that is running SQL Server as an administrator.
2. Go to the temporary folder that contains the Avamar installation files that you downloaded.
3. Start the setup wizard:
● If UAC is disabled, double-click the installation file to open it.
● If UAC is enabled, open a command prompt as an administrator. Change the directory to the location of the installation
package, and then type one of the following commands:
Where
○ q represents the quite mode in which no UI will be shown during the installation
○ n represents no User Interface (UI)
and
version is the Avamar plug-in version.
Installation 39
This step installs both the Avamar Plug-in for SQL TLR and the ItemPoint software.
NOTE: Installing the Avamar Plug-in for SQL TLR will also automatically install ItemPoint for Microsoft SQL Server. TLR
using Itempoint for SQL is selected by default in Avamar 18.1. You can clear the option if you do not want to install TLR
using Itempoint for SQL.
The Ready to Install Avamar Backup Plug-in for SQL Server page appears.
5. Click Install.
NOTE: The SQL Server plug-in automatically installs to the same folder as the Avamar Client for Windows.
AvamarSQL-windows-x86_64-18.0.100-xx.exe /q
AvamarSQL-windows-x86_64-18.0.100-xx.exe /q /ComponentArgs
"EMCItemPoint":"noipinstall"
Steps
1. Log in to the server.
2. Right-click the Avamar client system tray icon, and select Manage > Activate Client.
The Activate Client Setup dialog box appears.
3. In the Administrator Server Address box, type the DNS name for the Avamar server.
4. In the Administrator Server Port box, specify the port on the Avamar server for client/server communication.
5. In the Client Domain box, type the name of the Avamar domain for the client.
The default domain is clients. Do not use a slash (/) as the first character when you type a subdomain. If you use a slash,
an error occurs and you cannot register the client.
6. Click Activate.
A confirmation message appears.
7. Click OK.
40 Installation
Configuring the cluster client in a failover cluster
The Avamar cluster client in a failover cluster enables you to back up and restore SQL Server data on shared storage in the
cluster, regardless of which node is managing the data at the time of the backup or restore. The Avamar Cluster Configuration
Tool provides the steps to configure the Avamar cluster client for the SQL Server plug-in in a failover cluster.
Steps
1. Log in to the active node in the cluster as a domain administrator. The account must also be a member of the local
Administrators group on each cluster node.
2. Start the Cluster Configuration Tool by opening the Start screen and select Cluster Configuration Tool.
The welcome page appears.
3. Click Next.
The Plug-Ins page appears.
4. Select SQL and click Next.
The Cluster Nodes page appears with a list of nodes and their status.
5. Ensure that the environment meets the following requirements:
● The status for each SQL Server node is Up.
● The installation status of the Windows client software for each node is Installed.
● The installation status of the SQL Server plug-in on each node is Installed.
6. Click Next.
The Operations page appears.
7. Select Configure a new cluster client for all nodes, and then click Next.
The Prerequisites page appears. A check mark next to a prerequisite indicates that the environment meets the prerequisite.
8. Ensure that the environment meets all prerequisites on the Prerequisites page.
If the environment does not meet a prerequisite, then exit the wizard, resolve the issue, and restart the wizard.
9. Select the IP version that the environment uses, and then click Next.
The SQL Settings page appears.
10. Select the cluster role for the cluster client from the Cluster role for cluster client list.
11. Specify whether to automatically bring the cluster client online and activate it with the Avamar server by selecting or
clearing the Bring the cluster client online and activate it with the Avamar server checkbox.
12. Click Next.
The Server Settings page appears.
13. Specify the settings for the Avamar server:
a. Type either the DNS name of the Avamar server in the Name box or the IP address in the IPv4/IPv6 address box.
b. Type the name of the Avamar domain in the Avamar client domain for the cluster client box.
To specify a domain at the root level, type /domain, where domain is the domain name. To specify a subdomain, type /
domain/subdomain, where domain is the domain name and subdomain is the subdomain name.
c. Type the data port for Avamar client/server communication in the Port number box.
NOTE: Port 28001 is the default port that the Avamar client uses to communicate with the Avamar server.
NOTE: Select a volume that the cluster owns instead of a remote pathname on the network.
16. Type the name of the client's SYSDIR directory, in the Cluster client’s SYSDIR directory box, or click Browse to select a
local folder or a shared network folder or volume.
The SYSDIR directory must have > 2 GB of available space, and can be either a local folder or a folder on a shared network
drive or volume.
17. Review the configuration settings, and then click Configure.
The Progress page provides the status of the configuration. When the configuration is complete, the Results page appears.
Installation 41
18. Click Close.
Steps
1. Log in to the node that is hosting the primary replica as a domain administrator. The account must also be a member of the
local Administrators group on each cluster node.
2. Start the Cluster Configuration Tool by opening the Start screen and select Cluster Configuration Tool.
The welcome page appears.
3. Click Next.
The Plug-Ins page appears.
4. Select SQL AlwaysOn and click Next.
The Cluster Nodes page appears with a list of nodes and their status.
5. Ensure that the environment meets the following requirements:
● The status for each SQL Server node is Up.
● The installation status of the Windows client software for each node is Installed.
● The installation status of the SQL Server plug-in on each node is Installed.
6. Click Next.
The Operations page appears.
7. Select Configure a new cluster client for all nodes, and then click Next.
The Prerequisites page appears. A check mark next to a prerequisite indicates that the environment meets the prerequisite.
8. Ensure that the environment meets all prerequisites on the Prerequisites page.
If the environment does not meet a prerequisite, then exit the wizard, resolve the issue, and restart the wizard.
9. Select the IP version that the environment uses, and then click Next.
The SQL AlwaysOn Settings page appears.
10. Select the cluster role for the cluster client from the Cluster role for cluster client list.
The name of the cluster client appears in the Cluster client name box.
NOTE: You must configure an availability group listener for each availability group. Do not configure a cluster client for
an availability group that does not have a listener.
11. Specify whether to automatically bring the cluster client online and activate it with the Avamar server by selecting or
clearing the Bring the cluster client online and activate it with the Avamar server checkbox.
12. Click Next.
The Server Settings page appears.
13. Specify the settings for the Avamar server:
a. Type either the DNS name of the Avamar server in the Name box or the IP address in the IPv4/IPv6 address box.
b. Type the name of the Avamar domain in the Avamar client domain for the cluster client box.
To specify a domain at the root level, type /domain, where domain is the domain name. To specify a subdomain, type /
domain/subdomain, where domain is the domain name and subdomain is the subdomain name.
c. Type the data port for Avamar client/server communication in the Port number box.
NOTE: Port 28001 is the default port that the Avamar client uses to communicate with the Avamar server.
NOTE: Select a volume that the cluster owns instead of a remote pathname on the network.
42 Installation
16. Type the name of the client's SYSDIR directory, in the Cluster client’s SYSDIR directory box, or click Browse to select a
local folder or a shared network folder or volume.
The SYSDIR directory must have > 2 GB of available space, and can be either a local folder or a folder on a shared network
drive or volume.
17. Click Next.
The Summary page appears.
18. Review the configuration settings, and then click Configure.
The Progress page provides the status of the configuration. When the configuration is complete, the Results page appears.
19. Click Close.
Steps
1. Log in to the node that is hosting the primary replica as a domain administrator. The account must also be a member of the
local Administrators group on each cluster node.
2. Start the Cluster Configuration Tool by opening the Start screen and select Cluster Configuration Tool.
The welcome page appears.
3. Click Next.
The Plug-Ins page appears.
4. Select SQL AlwaysOn and click Next.
The Cluster Nodes page appears with a list of nodes and their status.
5. Ensure that the environment meets the following requirements:
● The status for each SQL Server node is Up.
● The installation status of the Windows client software for each node is Installed.
● The installation status of the SQL Server plug-in on each node is Installed.
6. Click Next.
The Operations page appears.
7. Select Configure a new cluster client for all nodes, and then click Next.
The Prerequisites page appears. A check mark next to a prerequisite indicates that the environment meets the prerequisite.
8. Ensure that the environment meets all prerequisites on the Prerequisites page.
If the environment does not meet a prerequisite, then exit the wizard, resolve the issue, and restart the wizard.
9. Select the IP version that the environment uses, and then click Next.
The SQL AlwaysOn Settings page appears.
10. Select the cluster role for the cluster client from the Cluster role for cluster client list.
The name of the cluster client appears in the Cluster client name box.
NOTE: You must configure an availability group listener for each availability group. Do not configure a cluster client for
an availability group that does not have a listener.
11. Clear theBring the cluster client online and activate it with the Avamar server checkbox.
12. Click Next.
The Server Settings page appears.
13. Specify the settings for the Avamar server:
a. Type either the DNS name of the Avamar server in the Name box or the IP address in the IPv4/IPv6 address box.
b. Type the name of the Avamar domain in the Avamar client domain for the cluster client box.
To specify a domain at the root level, type /domain, where domain is the domain name. To specify a subdomain, type /
domain/subdomain, where domain is the domain name and subdomain is the subdomain name.
c. Type the data port for Avamar client/server communication in the Port number box.
NOTE: Port 28001 is the default port that the Avamar client uses to communicate with the Avamar server.
Installation 43
14. Click Next.
The Client Settings page appears.
15. Type the name of the shared network folder or volume in the Cluster client’s var directory box, or click Browse to select
a folder.
The var directory should reside on the cluster disk, and is used to store the cluster client configuration and log files. All
nodes in the cluster must have write access to directory.
NOTE: Select a volume that the cluster owns instead of a remote pathname on the network.
16. Type the name of the client's SYSDIR directory, in the Cluster client’s SYSDIR directory box, or click Browse to select a
local folder or a shared network folder or volume.
The SYSDIR directory must have > 2 GB of available space, and can be either a local folder or a folder on a shared network
drive or volume.
17. Click Next.
The Summary page appears.
18. Review the configuration settings, and then click Configure.
The Progress page provides the status of the configuration. When the configuration is complete, the Results page appears.
19. Click Close.
20. On the primary node, launch Microsoft Failover Cluster Manager.
21. Select the Cluster instance > Roles > AAG group under Configuration.
22. Under Resources, select EMC Avamar Backup Agent resource for XXX.
23. Right click Properties and select Startup parameters.
24. Remove the flag --netbind=.
25. Edit the flag --sysdir=”C:\Program Files\avs\aag\etc” (or the existing local folder).
26. Click Save and Close.
27. On all the SQL nodes, create the SYSDIR folder, if it does not already exists.
28. On each SQL AlwaysOn availability group node, create the avagent.cmd file in the var (C:\Program Files\avs\AAG
\var) folder with the --netbind=<localhostIP> option .
29. On the primary SQL node, bring the resource EMC Avamar Backup Agent resource for XXX online.
30. On all the SQL secondary nodes, copy the cid.bin file from the primary var folder (C:\Program Files\avs\AAG
\var) to all the secondary nodes var folder.
44 Installation
Upgrading in a cluster
When you upgrade Avamar client and plug-in software in a cluster, you must uninstall the current Avamar clients and plug-ins
from each node, and then install the new version.
Prerequisites
● Ensure that the environment meets all system requirements for the new version.
● Ensure that no backups are in progress or scheduled to take place during the upgrade. Otherwise, Avamar client software
files may be locked during the upgrade and you may need to restart the computer after the upgrade.
Steps
1. Uninstall the current version of the Avamar client and plug-in:
a. Use the earlier version of the Cluster Configuration Tool to uninstall the Avamar cluster client.
b. Uninstall the ItemPoint software, if it has been installed.
c. Uninstall the earlier version of the Avamar Plug-in for SQL Server.
d. Uninstall the earlier version of the Avamar Client for Windows.
The plug-in guide for the earlier version provides instructions for each of these steps.
2. Install the new version of the Avamar client and plug-in:
a. Install the Avamar Client for Windows in the same folder on each node in the cluster.
b. Install the Avamar Plug-in for SQL Server in the same folder on each node in the cluster.
c. Register each node in the cluster with the Avamar server.
d. Configure the Avamar Cluster Client.
3. Perform a full backup of all SQL Server data with the Force Incremental After Full option cleared, to ensure that
you have a current full backup with the new version.
Restore of data from a backup with an earlier release may fail, especially when you restore from a differential or incremental
backup. The E-LAB Navigator at https://elabnavigator.emc.com/eln/modernHomeDataProtection provides details on
supported versions and any version compatibility issues.
Steps
1. (Cluster only) Uninstall the Avamar cluster client.
2. Uninstall the Avamar Plug-in for SQL Server by using Programs and Features.
3. Uninstall the Avamar Client for Windows by using Programs and Features.
4. (Cluster only) Repeat step 2 and step 3 on each node.
Installation 45
Uninstalling the cluster client in a failover cluster
To uninstall the Avamar cluster client in a failover cluster, run the Cluster Configuration Tool on an active node in the cluster,
and select the removal option.
Steps
1. Log in to the active node in the cluster as a domain administrator. The account must be a member of the local Administrators
group on each cluster node.
2. Start the Cluster Configuration Tool by opening the Start screen and selecting Cluster Configuration Tool
The welcome page appears.
3. Click Next.
The Plug-ins page appears.
4. Select SQL and click Next.
The Cluster Nodes page appears with a list of nodes and their status.
5. Ensure that the status of each SQL Server node is Up, and then click Next.
The Operations page appears.
6. Select Remove the cluster client from all nodes, and then click Next.
The Prerequisites page appears. A check mark next to a prerequisite indicates that the environment meets the prerequisite.
7. Ensure that the environment meets all prerequisites on the page, and click Next.
The Uninstall SQL page appears.
8. Select the cluster role, service, or group that contains the cluster client from the Cluster role/service/group for cluster
client list, and then click Next.
9. Select the cluster client from the Cluster client name list.
10. Select the shared volume for the cluster client from the Shared volume for the cluster client list.
11. Click Next.
The Summary page appears.
12. Review the summary information, and then click Uninstall.
The Progress page provides the status of the uninstall. When the uninstall is complete, the Results page appears.
13. Click Close.
Steps
1. Log in to the cluster node with the primary replica as a domain administrator. The account must also be a member of the
local Administrators group on each cluster node.
2. Start the Cluster Configuration Tool by opening the Start screen and selecting Cluster Configuration Tool
The welcome page appears.
3. Click Next.
The Plug-ins page appears.
4. Select SQL AlwaysOn and click Next.
The Cluster Nodes page appears with a list of nodes and their status.
5. Ensure that the status of each SQL Server node is Up, and click Next.
The Operations page appears.
6. Select Remove the cluster client from all nodes, and then click Next.
The Prerequisites page appears. A check mark next to a prerequisite indicates that the environment meets the prerequisite.
7. Ensure that the environment meets all prerequisites on the page, and click Next.
The Uninstall Settings page appears.
8. Select the cluster role or service that contains the cluster client from the Cluster role/service for cluster client list, and
then click Next.
The Summary page appears.
9. Review the summary information, and then click Uninstall.
The Progress page provides the status of the uninstall. When the uninstall is complete, the Results page appears.
46 Installation
10. Click Close.
Installation 47
3
Backup
Topics:
• Perform an on-demand SQL backup by using AUI
• Configure the SQL server policy
• Scheduling backups using the AUI Policy wizard
• Monitoring backups
• Cancel backups
• Verifying backups
• Enforcement of backups to Data Domain
Steps
1. In the AUI navigation pane on the left, click , and then click Asset Management.
The Asset Management window is displayed.
2. Select the domain that contains the host of the SQL server.
A list of Avamar clients is displayed in the pane under the domains list.
3. In the list of clients, select the computer that is running the SQL Server.
Keep the following points in mind when you select a client:
● To back up databases in an AlwaysOn availability group, select the cluster client for the availability group listener.
● To back up databases on shared storage in a failover cluster, select the cluster client for the virtual server.
● You can only view clients in the domain for the login account. To view all clients, log in to the root domain.
4. Click the Backup tab.
The Backup wizard is displayed. In the Plugin pane, a list of plug-ins on the client is displayed.
5. In the Plugins pane, perform the following steps:
a. Select the Windows SQL plug-in.
b. Browse to and select one or more databases for the backup.
c. Click NEXT.
The Basic Configuration window is displayed.
6. Select the backup retention policy settings:
48 Backup
● To automatically delete this backup from the Avamar server after a specific amount of time, select Retention period.
Specify the number of days, weeks, months, or years for the retention period.
● To automatically delete this backup from the Avamar server on a specific calendar date, select End date and browse to
that date on the calendar.
● To keep this backup for as long as this client remains active in the Avamar server, select No end date.
7. From the Avamar encryption method list, select the encryption method to use for data transfer between the client and
the Avamar server during the backup.
The encryption technology and bit strength for a client/server connection depends on several factors, including the client
operating system and Avamar server version. The Avamar Product Security Guide provides additional information.
8. From the Optionally select a proxy to perform backup list, select the proxy.
The default setting is Automatic, which enables the Avamar server to choose the best proxy for this operation.
9. Click NEXT.
The More Options window is displayed.
10. Set the plug-in options.
SQL plug-in backup options provides more information about the basic backup options.
11. (Optional) Toggle the Show Advanced Options switch to view advanced configuration options.
SQL plug-in backup options provides more information about the advanced backup options.
12. Click FINISH.
To access the Source page of the Policy wizard, in the AUI navigation pane on the left, click , click Advanced Policy , and
then click ADD to create a policy.
Steps
1. In the Advanced Policy Type field, select SQL Server .
2. To add a backup group, click , and then select a backup group type from the list.
3. In the Schedule column, select a schedule for each backup group.
To ensure that backups occur on an ongoing basis, scheduled backups run automatically. You can schedule backups to run
daily, weekly, or monthly.
Alternatively, you can add a schedule by selecting Create in the drop-down list. The Create Schedule wizard is displayed
and opens to the Basic Configuration page.
Alternatively, you can add a dataset by selecting Create in the drop-down list. The Create DataSet wizard is displayed.
5. In the Retention column, select a retention policy for each backup group.
Backup 49
Retention is the time setting to automatically delete backups on an Avamar server. Retention can be set to permanent for
backups that should not be deleted from an Avamar server.
Alternatively, you can add a retention policy by selecting Create in the drop-down list. The Add Retention Policy wizard is
displayed.
6. Click NEXT.
Steps
1. Assign members to the new backup policy.
2. Assign a dataset to the new backup policy.
To create a dataset, use the Policy wizard or select Setting > Dataset > Add.
3. Assign a schedule to the new backup policy.
To create a schedule, use the Policy wizard or select Setting > Schedule > Add.
4. Assign a retention policy to the new backup policy.
To create a retention policy, use the Policy wizard or select Setting > Retention > Add.
5. Enable scheduling for the backup policy.
Creating a dataset
A dataset specifies the data to include in a scheduled backup and the options to use for the backup. Create at least one dataset
for scheduled backups on a client or group of clients. Create multiple datasets to segregate client data.
Steps
1. In the AUI navigation pane on the left, click , and then click Setting.
The Setting pane is displayed.
2. Click the Dataset tab.
3. Click ADD.
The Create Dataset window is displayed.
4. In the Dataset Name field, type a name for the dataset.
The name can include alphanumeric characters (A-Z, a-z, 0–9) and the following special characters: period (.), hyphen (-),
and underscore (_), and space. Do not use Unicode characters or the following special characters: ` ~ ! @ # $ % ^ & * ( ) =
+[]{}|\/;:'"<>,?
5. From the Plugins list, select the Windows SQL plug-in.
6. Click the Options tab, and perform the following steps:
a. To view advanced options, select the Show Advanced Options check box.
b. Set the plug-in options. SQL plug-in backup options provides details on each option.
7. Click the Source Data tab and then select the data to include in the dataset:
● To include all SQL server data on a client, select SQL.
● To specify instances or databases on a client, perform the following steps:
a. Select Select Files and/or Folders.
b. In the File/Folder Path field, type the file path by using the following format:
50 Backup
hostname\sql_instance/database_name or hostname\sql_instance
c. Click ADD.
● To back up only specific databases in an instance, perform the following steps:
a. Select the Exclusions tab, and then select the instance for the databases that you want to back up.
b. In the File/Folder Path field, type the file path by using the following format:
hostname\sql_instance/database_name or hostname\sql_instance
c. Click ADD.
d. Select the Inclusions tab, and then select the databases that you want to include in the back up.
e. In the File/Folder Path field, type the file path by using the following format:
hostname\sql_instance/database_name or hostname\sql_instance
f. Click ADD.
8. Click SUBMIT.
Steps
1. In the AUI navigation pane on the left, click , and then click Backup Policy.
The Policy page is displayed.
2. In the domain tree, select a domain or subdomain for the backup policy.
To select a subdomain for the backup policy, toggle the Include Sub-domain switch to on.
3. Select a backup policy from the list.
4. To enable a backup policy, click MORE ACTIONS > Enable Policy.
5. To disable a backup policy, click MORE ACTIONS > Disable Policy.
Monitoring backups
You can monitor and view status information for backup and restore operations by using the Activity Monitor.
Backup 51
NOTE: The AUI Activity Monitor window has been optimized for at least 1366 pixels-wide screens. Display issues might
occur for smaller screens. To properly display the AUI, ensure that your display is at least 1366 pixels wide.
The Activity Monitor provides you with options to filter the information that appears:
● Filter activities by duration—By default, the Activity Monitor displays the most recent 5,000 client activities. To select a
different duration, in the Filter activities by duration drop-down list, select Last 24 hours or Last 72 hours.
● Filter activities by domain—By default, the Activity Monitor displays all activities regardless of domain. To display only the
activities for a specific domain, in the Filter activities by domain drop-down list, select a domain or subdomain.
● Filter activities by status—By default, the Activity Monitor displays all activities regardless of status.
To display only activities with a specific status, at the top of the Activity Monitor, select one of the following options:
○ Completed
○ Failed
○ Running
○ Waiting
To filter activities by client, start time, plug-in, or type, click in their respective column.
The Activity Monitor displays the date and time that an activity began, and the total number of bytes examined during an
activity.
Cancel backups
You can cancel a backup any time before it completes. The cancellation might take 5 minutes or longer. The backup might
complete before the cancellation finishes.
Steps
1. In the AUI navigation pane on the left, click , and then click Activity.
The Activity Monitor appears with a list of activities.
2. Select the backup from the list.
3. Click CANCEL.
A confirmation dialog box is displayed.
4. Click YES.
Verifying backups
You can use the VerifyOnly restore option to verify a backup without performing a restore.
52 Backup
Enforcement of backups to Data Domain
If the Avamar server is configured to enforce backups to a Data Domain system, the server rejects backups that are not
destined for the Data Domain. This enforcement covers backups that you configure through the Avamar Administrator and the
AUI, as well as from command-line interfaces and other tools.
These backups must have additional flags that indicate the storage target. The Avamar and Data Domain System Integration
Guide provides more information about backup enforcement and the related client version requirements. Backup enforcement is
disabled by default.
Backup 53
4
Application Consistent SQL Virtual Machine
Image Backup
Topics:
• Managing advanced policies
• Prerequisites
• Add an advanced group policy
• Remove an advanced policy
• Edit an advanced policy
• View advanced policy details
• Migrate existing Backup Policy to an Advanced Policy
• View logs
Prerequisites
Review the following prerequisites before setting up an advanced policy for application-consistent SQL virtual machine
protection.
● Both administrator users and local users with the administrator role can perform advanced application-consistent SQL virtual
machine backups. However, due to the introduction of User Account Control (UAC) in Microsoft Windows 7 and later
versions, a local user with the administrator role must also turn off Admin Approval Mode in the UAC settings for the
admin group on the guest operating system. Otherwise, the Advanced Policy Builder fails to install, upgrade, or register
client agents on SQL virtual machines.
● If the vCenter inventory name of the Virtual Machine (VM) is same as the guest system name, change the mcserver.xml
setting to <entry key="allow_duplicate_client_names" value="true" />. If you do not change the setting,
the registration might fail during Avamar client registration with MCS.
Configure a source
About this task
From the Source page, perform the following steps:
To access the Source page of the Policy wizard, in the AUI navigation pane on the left, click , click Advanced Policy , click
, and then click Source.
Steps
1. In the vCenter field, select a target vCenter or add a target vCenter.
NOTE: If the vCenter is not in the list, ensure that the domain under which the policy is being created can access the
domain where the vCenter was originally added.
To access the Source page of the Policy wizard, in the AUI navigation pane on the left, click , click Advanced Policy , and
then click ADD to create a policy.
Steps
1. In the Advanced Policy Type field, select SQL Server .
Alternatively, you can add a schedule by selecting Create in the drop-down list. The Create Schedule wizard is displayed
and opens to the Basic Configuration page.
Alternatively, you can add a dataset by selecting Create in the drop-down list. The Create DataSet wizard is displayed.
5. In the Retention column, select a retention policy for each backup group.
Retention is the time setting to automatically delete backups on an Avamar server. Retention can be set to permanent for
backups that should not be deleted from an Avamar server.
Alternatively, you can add a retention policy by selecting Create in the drop-down list. The Add Retention Policy wizard is
displayed.
6. Click NEXT.
Configure members
About this task
From the Members page, perform the following steps.
NOTE: Pushing clients to a group of target virtual machines simultaneously might cause a performance impact. To improve
performance, adjust the Avamar throttling settings for vCenter and Esxi.
● vabm_esxi_throttling allows the maximum number of installation jobs to run simultaneously for each Esxi.
● vabm_vcenter_throttling allows the maximum number of vCenter requests to run simultaneously for each
vCenter
● vabm_cache_timeout allows the maximum minutes of detection cache. The detection result of operating system and
plug-in version is cached in Avamar for a specific time.
Steps
1. To automatically install, upgrade, or register client agents on these virtual machines:
a. Ensure that the UpgradeClientDownloads package has been installed on the Avamar server.
b. Select the Install/Upgrade/Register client agents on these VMs automatically check box.
2. To force register the client agent from the previous Avamar server to the target Avamar server, select Force register
client agents to this Avamar.
The target client is force that is registered to the current Avamar server.
3. In the Rule to apply field, select an option.
If no rule is listed in the drop-down list, ensure that the domain under which the policy is being created can access the
domain where the rule was originally created. One rule maps to one policy. Ensure that the rule is not already used for
another advanced policy.
4. Type the username for the virtual machine of guest operating system.
When selecting a username for the virtual machine, consider the following information:
● If the target virtual machine UAC is enabled, use the administrator account or the administrative account with Admin
Approval Mode turned off.
● If the target virtual machine UAC is disabled, use the administrator account or the administrative account.
Steps
1. To enable Auto proxy mapping, select the checkbox.
2. Select a proxy from the list.
3. To start the plug-in installation and registration, click SUBMIT.
1. In the AUI navigation pane on the left, click , and then click Advanced Policy .
The Advanced Policy window appears.
2. In the domain tree, select a domain or subdomain for the client.
3. Select the solution that you want to remove, and then click the Delete button.
Steps
1. In the AUI navigation pane on the left, click , and then click Advanced Policy .
The Advanced Policy window appears.
2. In the domain tree, select a domain or subdomain for the client.
3. Select the policy that you want to edit, and then click the Edit button.
The Advanced Policy wizard appears.
NOTE: When editing an advanced policy, you cannot change the policy name or select a different vCenter.
1. In the AUI navigation pane on the left, click , and then click Advanced Policy .
The Advanced Policy window appears and lists the configured policies.
2. Review the policy details.
3. To view detailed information for advanced policy members, click the VIEW VM LIST button.
View logs
Steps
1. In the AUI navigation pane on the left, click , and then click Advanced Policy .
The Advanced Policy window appears and lists the configured policies.
2. To view the logs for a policy, select a policy from the list, and then click .
The VM list window appears.
3. Select a virtual machine from the list, and then click View Logs.
4. To view system logs, browse to /usr/local/avamar/var/vabm/log/daemon/.
5. To view a detailed log for each virtual machine, browse to /usr/local/avamar/var/vabm/log/<vm-uuid>/<vm-
uuid.log>.
Restore requirements
To ensure a successful restore, ensure that the environment meets the necessary requirements.
The Avamar Plug-in for SQL Server performs only offline restores of SQL Server data. Online restore is not supported. The
Avamar Plug-in for SQL Server does not support the restore of individual files, except by restoring partial files from an SQL
backup into the same instance and database when the database is online during the restore.
To perform table level recovery (TLR), the Avamar Plug-in for SQL TLR is required. When the Avamar Plug-in for SQL TLR is
installed, the ItemPoint for Microsoft SQL Server is also installed.
Restore 59
Tail-log backup and point-in-time restore requirements
Review the requirements to perform a tail-log backup or point-in-time restore to ensure successful completion of the restore.
● To perform a tail-log backup during the restore process, the database must be online and using either the full or bulk-logged
recovery model. To perform a point-in-time restore, the database must be using the full recovery model. As a result, you
cannot perform either a tail-log backup or a point-in-time restore of system databases such as the master and msdb
databases because those databases use the simple recovery model.
● To restore to a specific point in time, you must provide the transaction date and time or named mark to which to recover
from the SQL Server transaction log. The SQL Server documentation on the Microsoft website provides details on how to
access transaction log information.
● The point in time that you are restoring to must be after the finish time for the most recent full backup. In addition, if the
point in time is before the start time of the most recent transaction log (incremental) backup, then a tail-log backup is not
required. However, a tail-log backup is required if the point in time is after the most recent transaction log backup.
● When you specify the point in time for restore, do not specify the start time of the selected transaction log backup if it is not
the last backup in the backup sequence. Otherwise, the restore fails and a tail-log backup does not occur even if you select
the Tail-log backup option.
60 Restore
Requirements to restore the Report Server database
Stop the SQL Server Reporting Services before you restore the Report Server database. Otherwise, the Report Server database
does not restore correctly.
NOTE: To determine the restore size for the system database, use the --restoresystem flag.
==================================================
Size of the Database (local)\DB1: 3.000 MB
Size of the Database (local)\DB1_log: 1.000 MB
----------------------------------------------------------------------------------------
Total require restore size: 4.000 MB
==================================================
In this example, DB1 is the name of the database that is being restored.
Restore 61
Determine the space required to restore multiple SQL server
databases
Before restoring multiple SQL server databases, determine the disk space requirements by using the CLI.
==================================================
Size of the Database (local)\DB2: 2.489 GB
Size of the Database (local)\DB2_log: 984.4 MB
Size of the Database (local)\DB3: 3.000 MB
Size of the Database (local)\DB3_log: 1.000 MB
----------------------------------------------------------------------------------------
Total require restore size: 3.454 GB
==================================================
Steps
1. In the AUI navigation pane on the left, click , and then click Asset Management.
The Asset Management window is displayed.
2. In the domain tree, select the domain that contains the SQL server.
You cannot view clients outside the domain for the login account. To view all clients, log in to the root domain.
A list of Avamar clients is displayed in the pane below the domains list.
3. From the list of clients, select the client that runs the SQL server.
4. To locate backups by date:
a. In the right pane, click VIEW MORE.
b. Click SEARCH.
c. In the Date field, select a day or range of days.
d. Click RETRIEVE.
The list of backups for the selected dates is displayed.
5. Select the desired backup, and then click Restore.
The Restore wizard opens on the Destination Client pane.
NOTE: If you click Restore before selecting a backup, the wizard opens on the Backup List pane, where you can then
make the backup selection.
62 Restore
The Backup Content pane displays a list of databases within the backup.
Prerequisites
Steps
1. In the AUI navigation pane on the left, click , and then click Asset Management.
The Asset Management window is displayed.
2. In the domain tree, select the domain that contains the SQL server.
You cannot view clients outside the domain for the login account. To view all clients, log in to the root domain.
A list of Avamar clients is displayed in the pane below the domains list.
3. From the list of clients, select the client that runs the SQL server.
4. To locate backups by date:
a. In the right pane, click VIEW MORE.
b. Click SEARCH.
c. In the Date field, select a day or range of days.
d. Click RETRIEVE.
The list of backups for the selected dates is displayed.
5. Select the desired backup, and then click Restore.
The Restore wizard opens on the Destination Client pane.
NOTE: If you click Restore before selecting a backup, the wizard opens on the Backup List pane, where you can then
make the backup selection.
Restore 63
b. Select the databases that you want to restore.
c. Click NEXT.
The Destination Location pane is displayed.
8. In the Destination Location pane, perform the following steps:
a. Select Restore to a different SQL Server instance or location.
b. In the Instance Location field, click CHOOSE... to browse to the SQL instance available on the destination client.
c. In the Alternate database location field, type an alternate location in the destination client where the database will be
restored. For example, C:\restore.
d. Click NEXT.
The More Options pane is displayed.
9. In the More Options pane, set the plug-in options:
(Optional) Toggle the Show Advanced Options switch to view advanced configuration options.
SQL plug-in restore options provides more information about the basic restore options.
SQL Restore Options provides more information about the advanced restore options.
Steps
1. Ensure that the environment meets the guidelines in Restore requirements on page 59.
2. In the AUI navigation pane on the left, click , and then click Asset Management.
The Asset Management window is displayed.
3. In the domain tree, select the domain that contains the SQL server.
You cannot view clients outside the domain for the login account. To view all clients, log in to the root domain.
A list of Avamar clients is displayed in the pane below the domains list.
4. From the list of clients, select the client that runs the SQL server.
5. To locate backups by date:
a. In the right pane, click VIEW MORE.
b. Click SEARCH.
c. In the Date field, select a day or range of days.
d. Click RETRIEVE.
The list of backups for the selected dates is displayed.
6. Select the desired backup, and then click Restore.
The Restore wizard opens on the Destination Client pane.
NOTE: If you click Restore before selecting a backup, the wizard opens on the Backup List pane, where you can then
make the backup selection.
64 Restore
The Destination Location pane is displayed.
9. In the Destination Location pane, perform the following steps:
a. Select Restore to the original location.
b. Click NEXT.
The More Options pane is displayed.
10. In the More Options pane:
a. From the Encryption method from Data Domain system list, select the encryption method for data transfer during
the restore if the backup was stored on a Data Domain system.
b. Leave the Use SQL REPLACE option checkbox clear.
c. Specify whether to perform a tail-log backup during the restore by selecting or clearing the Tail-log backup checkbox.
d. If you are restoring in an AlwaysOn availability group and you want to restore the database with the new name on only
the primary replica, select the Restore only on primary replica checkbox.
11. Move the Show Advanced Options slider to the right, and then perform the following under Redirected Restore:
a. In the New Database Name field, type the new database name.
b. In the Alternate database location field, specify the path to which to restore the database files, or leave the box blank
to restore the files to the original location.
c. From the Alternate log location list:
● To restore the log files to the same location as the database, select Same as alternate database.
● To restore the log files to a different location than the database, select Different location than database, and then
specify the path for the log files in the Path to alternate log location field.
12. Leave the System Databases options unselected. These options are only necessary when you restore a system database.
13. (Optional) Set other plug-in options as discussed in the following topics:
● Recovery operation options on page 89
● Authentication options on page 91
● Point-in-time recovery options on page 91
14. Click NEXT.
The Summary pane is displayed.
15. Review the provided information, and then click FINISH.
Next steps
● If you perform a tail-log backup and the tail-log backup fails to complete, then the restore cannot take place. Review the log
file to determine the cause of the failure. Correct the problem, and then restart the restore.
Keep in mind that if you clear the Tail-log backup checkbox to prevent the tail-log backup from occurring, then the restore
includes only the transactions up to the selected backup. You may lose any transactions in the tail of the log.
● After the restore completes successfully, perform a full backup of the database and clear the Force incremental backup
after full backup checkbox in the plug-in options for the backup. If the checkbox is selected when a full backup occurs
after a restore, then the transaction log backup that occurs automatically after the full backup fails.
Steps
1. Ensure that the environment meets the guidelines in Restore requirements on page 59.
2. In the AUI navigation pane on the left, click , and then click Asset Management.
The Asset Management window is displayed.
3. In the domain tree, select the domain that contains the SQL server.
You cannot view clients outside the domain for the login account. To view all clients, log in to the root domain.
A list of Avamar clients is displayed in the pane below the domains list.
4. From the list of clients, select the client that runs the SQL server.
5. To locate backups by date:
a. In the right pane, click VIEW MORE.
Restore 65
b. Click SEARCH.
c. In the Date field, select a day or range of days.
d. Click RETRIEVE.
The list of backups for the selected dates is displayed.
6. Select the desired backup, and then click Restore.
The Restore wizard opens on the Destination Client pane.
NOTE: If you click Restore before selecting a backup, the wizard opens on the Backup List pane, where you can then
make the backup selection.
Results
The backup restores as one or more files to the specified destination in the path destination\client\instance
\database\file, where:
● destination is the destination for the files that you specified in the Set Destination dialog box.
● client is the name of the computer on which SQL Server is installed.
● instance is the name of the SQL Server instance from the backup.
● database is the name of the database from the backup.
● file is the name of the file.
A single backup can include multiple files, depending on the number of streams in the backup. The file name for each file is
composed of the backup type and the stream number:
66 Restore
● f-0 for full backups
● d-n for differential backups
● i-n for transaction log (incremental) backups
where n is the sequential number of the differential or incremental backup since the preceding full backup. For example, a full
backup with two streams results in two files: f-0.stream0 and f-0.stream1.
Next steps
● Ensure that the SQL backup format files that you restored are accessible to SQL Server. You may need to make the data
visible to SQL Server or copy the data.
● Manually restore the database by using SQL Server tools.
Steps
1. In the AUI navigation pane on the left, click , and then click Asset Management.
The Asset Management window appears.
2. In the Domain pane, select clients, and then select the desired client.
3. To locate backups by date:
a. In the right pane, click VIEW MORE.
b. Click SEARCH.
c. In the Date field, select a day or range of days.
d. Click RETRIEVE.
The list of backups for the selected dates is displayed.
4. Select the desired backup, and then click Restore.
NOTE: When selecting differential backups to perform table level recovery, select only the full backup and the required
differential backup. Selecting multiple differential backups is not supported.
Restore 67
b. For Amount of time to leave AvFS mounted, select when to automatically dismount the drive. If the amount of time
needs to be extended during the recovery, use the avsqltlr command.
c. Move the Show Advanced options slider to the right, and then select the Enable debugging messages check box in
order to obtain detailed logs.
9. Click NEXT, and then click FINISH.
The mount operation might take several minutes to complete. When the mount is complete, the message Retrieving
backup contents of client completed. The mount disk avaliable now on target client appears.
10. On the SQL server, open Itempoint for MS SQL Server.
11. For Source Type, select Folder, and then select the drive on which the backups are mounted.
12. Click NEXT.
13. Select the files that you want to restore:
● To restore full or incremental backups, select all files.
● To restore differential backups, remove the incremental files (\i-n files).
68 Restore
Finding a backup
The first step to restore data is to find the backup with the data that you want to restore. You can find Avamar client backups
by searching for a specific date.
Restore 69
Table 6. Enter path to retrieve history for text box (continued)
Method Steps to specify the path
Type the path to the instance or database Type the full path to the client folder or file in the Enter
path to retrieve history for text box using one of the
following formats:
● To restore the local instance, type (local).
● To restore a database in the local instance, type
(local)/database/.
● To restore a named instance, type client
\instance/.
● To restore a database in a named instance, type client
\instance/database/.
● To restore a database if there is only one instance on the
client and it is not the local instance, type client/
database/.
where client is the name of the computer that is running
SQL Server, instance is the name of the named instance,
and database is the name of the database.
8. Click Retrieve.
The Version History table lists all versions and sizes of the content in backups for the client.
9. Select the version in the Version History table.
All backups for the client that contain the version appear in the Backups table next to the Version History table.
10. Select the backup to restore from the Backups table.
Keep in mind the following points when you select the backup:
● In the Type column in the lower-right pane, f-0 indicates a full backup, d-n indicates a differential backup, and i-n
indicates a transaction log (incremental) backup.
● If you are restoring from a transaction log or differential backup, select the backup that corresponds to the date and time
to which you want to recover.
70 Restore
During the restore process, Avamar automatically restores any necessary data from the full backup, then restores and
applies the intervening backup files as necessary. In other words, you do not need to select the full backup in addition to
the transaction log or differential backup.
● Select the most recent backup if you plan to perform a tail-log backup and recover to a point in time since that last
backup. A tail-log backup includes only transactions that have not been included yet in a backup.
11. In the two bottom panes of the Backup, Restore and Manage window, select the data to restore:
● To restore everything listed for the instance, select the checkbox next to the instance in the folder tree in the lower-left
pane.
● To restore a database and its logs, expand the node for the instance in the folder tree in the lower-left pane, and then
select the checkbox next to the database.
● To restore a filegroup, expand the node for the instance in the folder tree in the lower-left pane, select the database in
the lower-left pane, and then select the checkbox next to the files in the filegroup in the lower-right pane.
If there are multiple files in the filegroup, ensure that you select the checkbox next to each file to ensure that you restore
the entire filegroup.
The name of the filegroup to which a file belongs appears in the Filegroup column of the lower-right pane.
If you are restoring from a transaction log or differential backup and you plan to restore the files to a different instance,
ensure that you select the checkbox next to all files in all filegroups. You cannot restore individual files from a transaction
log or differential backup to a different instance.
NOTE: You cannot accurately determine the exact size of a restored database until after the restore operation
completes. As a result, database sizes that appear in Avamar Administrator when you perform a restore may be smaller
than when you perform a backup.
NOTE: When you select the Avamar option to use the SQL Server REPLACE option, it adds an SQL WITH REPLACE
clause statement to the restore Transact-SQL command. This statement overrides a SQL Server safety check to
prevent you from accidentally overwriting a different database or file. The Microsoft Transact-SQL documentation
provides more information in the RESTORE command section.
Restore 71
Steps
1. Ensure that the environment meets the guidelines in Restore requirements on page 59.
2. In Avamar Administrator, click the Backup & Restore launcher link button.
The Backup, Restore and Manage window appears.
3. Find the backup to restore:
● Finding a backup by date
● Finding a backup by content on page 69
The backup to restore is selected in the Backups table.
4. Select Actions > Restore Now.
The Restore Options dialog box appears.
5. Ensure that Windows SQL appears in the Restore Plug-in list.
6. From the Avamar encryption method list, select the encryption method to use for data transfer between the Avamar
server and the client during the restore.
The encryption technology and bit strength for a client/server connection depend on several factors, including the client
operating system and Avamar server version. The Avamar Product Security Guide provides additional information.
7. Leave the default selection of Restore to the original location.
8. Click More Options.
The Restore Command Line Options dialog box appears.
9. Select the restore and recovery options:
● To create a tail-log backup and perform a direct restore with recovery, leave the Use SQL REPLACE option checkbox
clear and the Tail-log backup checkbox selected.
● To perform a direct restore with REPLACE, select the Use SQL REPLACE option checkbox and clear the Tail-log
backup checkbox.
10. If you are restoring in an AlwaysOn availability group and you want to restore on only the primary replica, select the Restore
only on primary replica checkbox.
Leave the checkbox clear to automatically restore to both the primary replica and any secondary replicas.
11. From the Encryption method from Data Domain system list, select the encryption method for data transfer during the
restore if the backup was stored on a Data Domain system.
12. To restore system databases, set the plug-in options as discussed in System database restore options on page 90.
13. (Optional) Select Show Advanced Options, and set the advanced options as discussed in the following topics:
● Recovery operation options on page 89
● Authentication options on page 91
● Point-in-time recovery options on page 91
14. Disregard the redirected restore options, which are only necessary when you restore to a different location.
15. Click OK on the Restore Command Line Options dialog box.
16. Click OK on the Restore Options dialog box.
The following status message appears: Restore initiated.
17. Click OK.
Next steps
● If you perform a tail-log backup and the tail-log backup fails to complete, then the restore cannot take place. Review the log
file to determine the cause of the failure. Correct the problem, and then restart the restore.
Keep in mind that if you clear the Tail-log backup checkbox to prevent the tail-log backup from occurring, then the restore
includes only the transactions up to the selected backup. You may lose any transactions in the tail of the log.
● After the restore completes successfully, perform a full backup of the database and clear the Force incremental backup
after full backup checkbox in the plug-in options for the backup. If the checkbox is selected when a full backup occurs
after a restore, then the transaction log backup that occurs automatically after the full backup fails.
72 Restore
Restoring to a file
You can restore SQL Server user and system databases from an Avamar backup to operating system files.
Steps
1. Ensure that the environment meets the guidelines in Restore requirements on page 59.
2. In Avamar Administrator, click the Backup & Restore launcher link button.
The Backup, Restore and Manage window appears.
3. Find the backup to restore:
● Finding a backup by date
● Finding a backup by content on page 69
The backup to restore is selected in the Backups table.
4. Select Actions > Restore Now
The Restore Options dialog box appears.
5. Select Windows File System from the Restore Plug-in list.
6. From the Avamar encryption method list, select the encryption method to use for data transfer between the Avamar
server and the client during the restore.
The encryption technology and bit strength for a client/server connection depend on several factors, including the client
operating system and Avamar server version. The Avamar Product Security Guide provides additional information.
7. Specify the destination client in the Restore Destination Client box:
● To restore to the original client, leave the default setting of the original client domain and name.
● To restore to a different client, click Browse and then browse to the client.
8. Select Restore everything to a different location.
9. Set the destination file path for the database and log files to restore:
a. Click Set Destination.
The Set Destination dialog box appears.
b. Click Browse.
The Browse for File, Folder, or Directory dialog box appears.
c. Select Windows File System.
d. In the right pane, browse to and select the radio button for the folder to which to restore the selected files.
e. Click OK to return to the Set Destination dialog box.
f. Click NEXT to proceed to the More Options pane.
10. (Optional) Click More Options and set plug-in options for the restore. The Avamar for Windows Server User Guide provides
details on the available plug-in options.
11. Click OK on the Restore Options dialog box.
The following status message appears: Restore initiated.
12. Click OK.
Results
The backup restores as one or more files to the specified destination in the path destination\client\instance
\database\file, where:
Restore 73
● destination is the destination for the files that you specified in the Set Destination dialog box.
● client is the name of the computer on which SQL Server is installed.
● instance is the name of the SQL Server instance from the backup.
● database is the name of the database from the backup.
● file is the name of the file.
A single backup can include multiple files, depending on the number of streams in the backup. The file name for each file is
composed of the backup type and the stream number:
● f-0 for full backups
● d-n for differential backups
● i-n for transaction log (incremental) backups
where n is the sequential number of the differential or incremental backup since the preceding full backup. For example, a full
backup with two streams results in two files: f-0.stream0 and f-0.stream1.
Next steps
● Ensure that the SQL backup format files that you restored are accessible to SQL Server. You may need to make the data
visible to SQL Server or copy the data.
● Manually restore the database by using SQL Server tools.
Steps
1. Restore the database backup to a file by using the instructions in one of the following topics:
● Restoring to a file with the SQL Server plug-in
● Restoring to a file with the Windows File System plug-in on page 73
2. Ensure that the SQL backup format files that you restored are accessible to SQL Server. You may need to make the data
visible to SQL Server or copy the data.
3. Restore the full backup (f-0 file) to SQL Server:
a. Open the Restore Database window.
● If the database already exists, then right-click the database in the Object Explorer and select Tasks > Restore >
Database.
● If the database has been lost, then right-click the Databases node in the Object Explorer and select Restore
Database.
b. On the General page of the Restore Database window, select From device.
c. Click the ... button.
The Specify Backup dialog box appears.
d. Click Add.
The Locate Backup File dialog box appears.
e. Select the folder in which the full backup files are located.
f. From the Files of type list, select All files(*).
74 Restore
g. Select the full backup (f-0) file.
h. Click OK.
i. If there are multiple full backup files from multi-streaming (such as f-0.stream0, f-0.stream1, f-0.stream2, and
so on), then repeat step d through step h to add each file.
j. Click OK on the Specify Backup dialog box.
k. On the General page of the Restore Database window, select the checkboxes next to the backup files to restore.
l. In the left pane, click Options to open the Options page.
m. In the Restore the database files as list, select each file and click the ... button to specify the location to which to
restore the files.
n. For Recovery state, select RESTORE WITH NORECOVERY.
o. Click OK to begin the restore.
4. Restore the differential (d-n) or transaction log (i-n) files in order from the oldest to the most recent:
a. In the Object Explorer, right-click the database and select Tasks > Restore > Database.
b. On the General page of the Restore Database window, select From device.
c. Click the ... button.
The Specify Backup dialog box appears.
d. Click Add.
The Locate Backup File dialog box appears.
e. Select the folder in which the differential or transaction log backup files are located.
f. From the Files of type list, select All files(*).
g. Select the differential (d-n) or transaction log (i-n) backup file, where n is the sequential number of the differential or
incremental backup since the preceding full backup.
h. Click OK.
i. If there are multiple differential or transaction log backup files from multi-streaming (such as d-3.stream0,
d-3.stream1, d-3.stream2, or i-6.stream0, i-6.stream1, i-6.stream2, and i-6.stream3), then repeat
step d through step h to add each file.
j. Click OK on the Specify Backup dialog box.
k. On the General page of the Restore Database window, select the checkboxes next to the backup files to restore.
l. In the left pane, click Options to open the Options page.
m. In the Restore the database files as list, select each file and click the ... button to specify the location to which to
restore the files.
n. For Recovery state, select RESTORE WITH NORECOVERY for all except the most recent backup file. When you
restore the most recent backup file, select RESTORE WITH RECOVERY.
o. Click OK to begin the restore.
5. If the database is not already listed in SQL Server Management Studio, then refresh the list or connect to the database.
Next steps
After the restore completes successfully, perform a full backup of the database and clear the Force incremental backup after
full backup checkbox in the plug-in options for the backup. If the checkbox is selected when a full backup occurs after a
restore, then the transaction log backup that occurs automatically after the full backup fails.
Steps
1. Restore the database backup to a file by using the instructions in one of the following topics:
● Restoring to a file with the SQL Server plug-in
● Restoring to a file with the Windows File System plug-in on page 73
2. Ensure that the SQL backup format files that you restored are accessible to SQL Server. You may need to make the data
visible to SQL Server or copy the data.
3. Restore the full backup (f-0 file) to SQL Server by using a Transact-SQL command similar to the following command:
Restore 75
WITH
MOVE 'dbname_data' TO 'drive:\folder\dbname.mdf',
MOVE 'dbname_logfile' TO 'drive:\folder\dbname.ldf',
NORECOVERY
where:
● dbname is the name of the database to restore.
● The FROM DISK clause specifies the backup file from which to restore, and drive:\folder\f-0.stream0 is the path and
file name of the full backup file.
● The MOVE clauses specify the path and file name for the restored files:
○ dbname_data is the name of the database data file in the backup.
○ drive:\folder\dbname.mdf is the path and file name for the restored database file.
○ dbname_logfile is the name of the database log file in the backup.
○ drive:\folder\dbname.ldf is the path and file name for the restored database log file.
● The NORECOVERY option specifies that the database will remain in the restoring state, which enables you to restore
additional backups before setting the database online.
4. Restore all but the most recent differential (d-n) or transaction log (i-n) backup files, starting with the oldest file, by using
a Transact-SQL command similar to the command in the previous step. However, replace the f-0.stream0 file name in the
FROM DISK clause with the file name for the differential or transaction log backup file.
5. Restore the most recent differential or transaction log backup file by using a Transact-SQL command similar to the following
command:
RESTORE DATABASE dbname
FROM DISK = 'drive:\folder\i-7.stream0'
WITH
MOVE 'dbname_data' TO 'drive:\folder\dbname.mdf',
MOVE 'dbname_logfile' TO 'drive:\folder\dbname.ldf',
RECOVERY
where:
● dbname is the name of the database to restore.
● The FROM DISK clause specifies the backup file from which to restore, and drive:\folder\i-7.stream0 is the path and file
name of the most recent transaction log backup file.
● The MOVE clauses specify the path and file name for the restored files:
○ dbname_data is the name of the database data file in the backup.
○ drive:\folder\dbname.mdf is the path and file name for the restored database file.
○ dbname_logfile is the name of the database log file in the backup.
○ drive:\folder\dbname.ldf is the path and file name for the restored database log file.
● The RECOVERY option sets the database online after the restore.
6. If the database is not already listed in SQL Server Management Studio, then refresh the list or connect to the database.
Next steps
After the restore completes successfully, perform a full backup of the database and clear the Force incremental backup after
full backup checkbox in the plug-in options for the backup. If the checkbox is selected when a full backup occurs after a
restore, then the transaction log backup that occurs automatically after the full backup fails.
NOTE: You can use the Microsoft SQL Server osql utility, but Microsoft recommends the sqlcmd utility.
76 Restore
Restoring a single database from a single full backup file
sqlcmd -S server -E
1> restore database dbname
2> from disk = 'drive:\folder\f-0.stream0'
3> with recovery;
4> go
where:
● server is the server that is running SQL Server, and optionally, the instance, to which to restore the backup.
● dbname is the database to restore.
● drive:\folder\f-0.stream0 is the path and file name of the backup file from which to restore the database.
where:
● dbname is the database to restore.
● drive:\folder\f-0.stream0 is the path and file name of the full backup file from which to restore the database.
● drive:\folder\i-1.stream0 is the path and file name of the transaction log backup file from which to restore.
Restore 77
guide. Review the "Back Up and Restore Replicated Databases" topic in the SQL Server documentation on the MSDN
website for detailed steps to manually restore system databases in a replication environment.
Prerequisites
● Ensure that the environment meets the guidelines in Restore requirements on page 59.
● Close all instances of SQL Server Management Studio, and disable any other possible connections to the system databases.
If there are other connections to the system databases, then Avamar may not be able to restore the master database.
Steps
1. In Avamar Administrator, click the Backup & Restore launcher link button.
The Backup, Restore and Manage window appears.
2. Find the backup and select the system databases to restore:
● Finding a backup by date
● Finding a backup by content on page 69
3. Select Actions > Restore Now.
The Restore Options dialog box appears.
4. Ensure that Windows SQL appears in the Restore Plug-in list.
5. From the Avamar encryption method list, select the encryption method to use for data transfer between the Avamar
server and the client during the restore.
The encryption technology and bit strength for a client/server connection depend on several factors, including the client
operating system and Avamar server version. The Avamar Product Security Guide provides additional information.
6. Leave the default selection of Restore to the original location.
If you plan to restore the system databases to a file, follow the steps in Restoring to a file on page 73 instead of the steps in
this procedure.
7. Click More Options.
The Restore Command Line Options dialog box appears.
8. Select the Use SQL REPLACE option checkbox.
9. Clear the Tail-log backup checkbox.
10. From the Encryption method from Data Domain system list, select the encryption method for data transfer during the
restore if the backup was stored on a Data Domain system.
11. Select the Restore system databases checkbox.
12. Select the Manage SQL services automatically during restore checkbox.
13. (Optional) Select the Show Advanced Options checkbox, and set other plug-in options as discussed in the following topics:
● Recovery operation options on page 89
● Authentication options on page 91
14. Disregard the redirected restore options, which are only necessary when you are restoring to a different location.
15. Disregard the point-in-time recovery options, which are only supported for databases that use the full recovery model.
16. Click OK on the Restore Command Line Options dialog box.
17. Click OK on the Restore Options dialog box.
The following status message appears: Restore initiated.
18. Click OK.
78 Restore
Restoring system databases manually to the original location
When you restore system databases to the original location manually, you must manage the services and restore the databases
in the correct order.
Steps
1. Shut down the SQL Server instance, and ensure that dependent services stop, such as the SQL Server Agent service and
the Analysis Service.
2. Close all instances of SQL Server Management Studio, and disable any other possible connections to the system databases.
If there are other connections to the system databases, then Avamar may not be able to restore the master database.
3. Start the SQL Server instance in single-user mode by running the sqlservr.exe application with the -m and -c options:
● To start the default instance in single-user mode, open a command prompt and type the following command:
cd \MSSQLPATH\Binn
sqlservr.exe -m -c
● To start a named instance in single-user mode, open a command prompt and type the following command:
cd \MSSQLPATH\Binn
sqlservr.exe instance -m -c
where \MSSQLPATH\Binn is the path to the Binn folder for the instance, and instance is the name of the instance to start.
4. Wait for the Recovery Complete message to appear on the console.
If you log in to the SQL Server computer as a local or domain administrator with the SQL services running under the Local
System account, then the sqlservr.exe command may fail to correctly start SQL services in single-user mode. If that
occurs, complete step 4.a on page 79 through step 4.e on page 79 instead of running sqlservr.exe from the command
line. Otherwise, go to step 5 on page 79.
Complete the following steps if SQL services do not start in single-user mode correctly:
a. Shut down the SQL service. If SQL Server is installed on a standalone server, then use the Windows Services console. If
SQL Server is installed in a cluster, use Cluster Manager.
b. Right-click the SQL service in the Windows Services console, and then click Properties.
c. In the Start parameters box, type -m -c.
d. Click Start to start the service.
e. Click OK to close the Properties dialog box.
5. Restore the master database to the original location:
a. Ensure that the environment meets the guidelines in Restore requirements on page 59.
b. In Avamar Administrator, click the Backup & Restore launcher link button.
The Backup, Restore and Manage window appears.
c. Find the backup and select the master database to restore:
● Finding a backup by date
● Finding a backup by content on page 69
Restore 79
g. Leave the default selection of Restore to the original location.
h. Click More Options.
The Restore Command Line Options dialog box appears.
i. Select the checkbox next to the Use SQL REPLACE option and Restore system databases options.
j. Clear the Tail-log backup checkbox.
k. (Optional) Select Show Advanced Options, and set the authentication options as discussed in Authentication options
on page 91.
l. Disregard the remaining restore options, which do not apply when you restore the master database.
m. Click OK on the Restore Command Line Options dialog box.
n. Click OK on the Restore Options dialog box.
The following status message appears: Restore initiated.
o. Click OK.
After you restore the master database, the SQL Server service is stopped automatically.
6. Restart the SQL Server service:
● To start the default instance of SQL Server, open a command prompt and type net start MSSQLServer.
● To start a named instance of SQL Server, open a command prompt and type net start MSSQL$instance, where
instance is the name of the instance.
7. Restore the msdb and model databases:
a. Ensure that the environment meets the guidelines in Restore requirements on page 59.
b. In Avamar Administrator, click the Backup & Restore launcher link button.
The Backup, Restore and Manage window appears.
c. Find the backup and select the msdb and model databases to restore:
● Finding a backup by date
● Finding a backup by content on page 69
80 Restore
Restoring system databases to a different instance
When you restore system databases to a different instance, the restore process overwrites the system databases in the target
instance. You must restore the master database before you restore other system databases. You can restore the model and
msdb databases either separately or at the same time.
Prerequisites
● The target SQL Server installation for the restore must have the same SQL Server version and service pack as the SQL
Server installation on which the backup occurred.
● The name of the target instance for the restore is the same as the original SQL Server instance for the backup.
● The user account and domain for authentication is the same on the target SQL Server instance as the original SQL Server
instance for the backup.
● Close all instances of SQL Server Management Studio on the target SQL Server installation, and disable any other possible
connections to the system databases. If there are other connections to the system databases, then Avamar may not be able
to restore the master database.
● Ensure that there are no avsql or avtar processes running on the target SQL Server installation.
Steps
1. Restore the master database to the target instance:
a. In Avamar Administrator, click the Backup & Restore launcher link button.
The Backup, Restore and Manage window appears.
b. Find the backup and select the master database to restore:
● Finding a backup by date
● Finding a backup by content on page 69
Restore 81
Table 7. Advanced options (continued)
Option Selection
Tail-log backup Clear the checkbox to disable tail-log backup. Tail-log
backup is not supported when you restore to a different
instance.
Encryption method from Data Domain system Select the encryption method for data transfer during the
restore if the backup was stored on a Data Domain
system.
Restore system databases Select the checkbox.
Manage SQL services automatically during restore Select the checkbox.
3. If you did not restore the model database in the previous step, then restore the model database by using the same steps and
options that you used to restore the master and msdb databases.
82 Restore
Restoring to the original availability group
When you restore to the original location in an AlwaysOn availability group, the restore process can automatically restore the
databases on both the primary replica and the secondary replicas. You can also restore databases only on the primary replica.
Steps
1. Perform the steps in Restoring to the original location on page 71. During the restore, set the following values:
● Select the client for the availability group listener when you search for a backup to restore.
● Leave the Restore only on primary replica checkbox selected in the plug-in options.
● Leave the System Databases options clear. SQL Server does not support system databases in an availability group.
● (Optional) Perform a tail-log backup or use SQL REPLACE to force a restore even if the database already exists.
● Disregard the Redirected Restore options.
● (Optional) Specify authentication information.
● (Optional) Perform a point-in-time recovery.
After you restore a database on only the primary replica, the corresponding database on the secondary replicas is in a
restoring state.
2. (Optional) Restore the databases on the secondary replicas by manually preparing and restoring the databases, and then
joining them to the availability group on the secondary replicas.
Restore 83
○ (Optional) Select the location for the restored database log files.
○ (Optional) Specify authentication information.
○ (Optional) Perform a point-in-time recovery.
Steps
1. Perform the steps in Restoring to a different instance. During the restore, set the following values:
● Select the client for the original availability group listener when you search for a backup to restore.
● Leave the Use SQL REPLACE option checkbox clear in the plug-in options.
● Clear the Tail-log backup checkbox. This restore scenario does not support tail-log backup.
● Leave the Restore only on primary replica checkbox selected.
● (Optional) Specify recovery operation options.
● Leave the System Databases options clear. SQL Server does not support system databases in an availability group.
● Disregard the Redirected Restore options. You already specified these settings on the Set Destination dialog box.
● (Optional) Specify authentication information.
● (Optional) Perform a point-in-time recovery.
2. After the restore completes, join the new database to the availability group.
When you add the database to the availability group, the process automatically creates and synchronizes the databases on
the secondary replicas.
Steps
1. Perform a transaction log backup of the intact database log by issuing the following Transact-SQL command:
BACKUP LOG dbname TO DISK = 'drive:\folder\filename' WITH NO_TRUNCATE
where dbname is the name of the database and drive:\folder\file is the path to the folder and file name to which to save the
backup.
2. In Avamar Administrator, find the most recent backup of the database by using the instructions in Finding a backup by
content on page 69.
84 Restore
3. In Avamar Administrator, restore the backup to its original location by using the instructions in Restoring to the original
location on page 71.
On the Restore Command Line Options dialog box during the restore, select the Show Advanced Options checkbox,
and then configure the settings as follows:
● Select the Use SQL REPLACE option checkbox.
● Clear the Tail-log backup checkbox.
● (Optional) If the backup is stored on a Data Domain system, select the encryption method for data transfer from the
Data Domain system to the client during the restore by using the Encryption method from Data Domain system list.
● Select NORECOVERY from the Recovery operation list.
● Disregard the remaining options, which do not apply to this restore.
4. Restore the transaction log backup of the intact database log by issuing the following Transact-SQL command:
RESTORE LOG dbname FROM DISK = 'drive:\folder\filename' WITH RECOVERY
where dbname is the name of the database and drive:\folder\file is the path and file name for the transaction log backup
file.
5. If the database does not appear in SQL Server Management Studio, then refresh the list or connect to the database.
Next steps
After the restore completes successfully, perform a full backup of the database and clear the Force incremental backup after
full backup checkbox in the plug-in options for the backup. If the checkbox is selected when a full backup occurs after a
restore, then the transaction log backup that occurs automatically after the full backup fails.
Restore 85
Figure 11. Restore Command Line Options dialog box
86 Restore
Encryption method from Data Domain system
If the backup is stored on a Data Domain system, the Encryption method from Data Domain system option specifies the
encryption method to use for data transfer between the Data Domain system and the client during the restore.
Normal restore
Performs a normal restore of the databases. Selecting this option allows you to also select the Use SQL REPLACE option
checkbox, the Tail-log backup checkbox, and the Restore only on primary replica checkbox.
Select the checkbox only when you are restoring an instance, database, filegroup, or file to its original location and you need to
force the overwrite of the original data. You may need to force the overwrite if a previous database restore exited with the
following SQL Server error in the Avamar SQL restore log:
One or more devices or files already exist. Reissue the statement using the WITH REPLACE
option to overwrite these files and devices.
Use this option also when you restore system databases.
Tail-log backup
When you select the Tail-log backup checkbox on the Restore Command Line Options dialog box, Avamar backs up the tail
of the transaction log during the restore to capture the log records that are not in a backup. The restore process then uses the
tail-log backup after the database restore to recover the transactions that were not in the backup.
To perform a tail-log backup, the database must be online and using either the full or bulk-logged recovery model. As a result,
you cannot perform a tail-log backup of system databases such as the master and msdb databases because those databases use
the simple recovery model.
When you are restoring a user-defined filegroup or secondary data file and you perform a tail-log backup, you must select the
most recent backup as the backup from which to restore. Otherwise, the restore fails and an error message is written to the log
file.
You can perform a tail-log backup when you are restoring an instance, database, filegroup, or file to its original location without
the SQL WITH REPLACE option. In other words, if you select the Use SQL REPLACE option checkbox when you are restoring
to the original location, then leave the Tail-log backup checkbox clear.
You can also perform a tail-log backup when you are restoring a database to the original instance but with a new database name.
If you are performing a point-in-time restore and the point in time to which you are restoring is after the most recent
transaction log backup, then you must perform a tail-log backup.
A tail-log backup is also required if you are restoring a file from a user-defined filegroup to its original location.
Do not perform a tail-log backup if you are performing a redirected restore to a different SQL Server instance.
NOTE: If the tail-log backup fails to complete, then the restore cannot take place. Review the log file to determine the
cause of the failure. Correct the problem, and then restart the restore. If you clear the Tail-log backup checkbox to
prevent the tail-log backup, then the restore includes only the transactions up to the selected backup. You may lose any
transactions in the tail of the log.
Restore 87
When you select the checkbox and restore the databases on only the primary replica, the corresponding database on the
secondary replicas is in a restoring state. To restore the databases on the secondary replicas as part of the availability group,
you can manually prepare and restore the databases, and then join them to the availability group on the secondary replica.
You can also set the database on a secondary replica online without rejoining it to the availability group by restoring the
database with the RECOVERY recovery operation. The SQL Server documentation available on the Microsoft website provides
details.
Select the checkbox in the following restore scenarios:
● You are restoring to a different location in the original availability group.
● You are restoring to a different availability group.
● You are restoring to an on-premise primary replica in a hybrid IT environment with Microsoft Azure.
You can also select the checkbox if you want to restore to only the primary replica in the original availability group.
AG Considerations
For AG environments, individual restore operations can only be performed on the primary node.
88 Restore
If the AG database is removed from AG while performing an individual restore operation:
1. On the primary node, search for the required checkpoint by performing an incremental or differential restore.
2. Manually join the database to the AG.
You can use either of the following methods:
● Use the SQL server.
● Perform a restore operation in the Avamar Administrator:
a. In the Recovery operation field, select RECOVERY.
b. Select the Overwrite defaul recovery plan checkbox.
c. Disable the Restore primary only checkbox.
d. Click OK.
VerifyOnly restore
This options performs a verify-only restore, which verifies the backup but does not restore it.
Restore 89
Table 8. Recovery operation options (continued)
Recovery operation Description
You can specify the recovery operation in the following restore scenarios:
● You are restoring an instance, database, filegroup, or file to its original location.
● You are restoring a database to the original instance but with a new database name.
● You are restoring an instance, database, filegroup, or file to a different instance on either the original server or a different
server.
● You are restoring one or more system databases. Keep in mind the following points, however:
○ If you are restoring the master or model database, then you must select the RECOVERY option. Do not use either the
NORECOVERY or STANDBY options.
○ If you are restoring the msdb database, then you can select any of the recovery operation options. However, if you select
NORECOVERY or STANDBY, then all databases become inaccessible until the restore of the msdb database is complete.
○ If you are restoring the system databases, then you must select the RECOVERY option. Do not use either the
NORECOVERY or STANDBY options.
You do not need to specify the recovery operation when you are restoring to an operating system file.
If you specify either the NORECOVERY or STANDBY recovery operation, then you can bring the database back online after any
manual operations by using one of the following methods:
● Restore the database again by using the Avamar Plug-in for SQL Server, but select RECOVERY from the Recovery
operation list.
● Issue a RESTORE DATABASE dbname WITH RECOVERY command by using SQL Server Management Studio, where
dbname is the name of the database to restore.
90 Restore
Redirected restore options
The redirected restore options on the Restore Command Line Options dialog box enable you to control the database name
and file locations when you restore a database to the original instance but with a new name.
Steps
1. In the Restore Command Line Options dialog box, select the Show Advanced Options checkbox.
Several advanced options, including the point-in-time recovery options, appear in red.
2. (Optional) If you are restoring a single database with a new name, specify the new name in the New Database name box.
3. To restore the database files to a different path than the original path, type the full path of the new database file (*.mdf)
location on the client in the Alternate database location box. An example path is C:\temp.
4. Select the path to which to restore the database log file (*.ldf):
● To restore the database log file to the same location as the database files (as specified in the Alternate database
location box), select Same as alternate database location from the Alternate log location list.
● To restore the database log file to a different location than the database files, select Different location from the
Alternate log location list, and then type the path to the location on the client in the Path to alternate log location
box. An example path is C:\temp\logs.
Authentication options
Authentication options enable you to specify whether Avamar uses Windows (NT) authentication or SQL Server authentication
to connect to SQL Server when you restore an instance, database, filegroup, or file to either its original location or to a different
location.
Steps
1. In the Restore Command Line Options dialog box, select the Show Advanced Options checkbox.
Several advanced options, including the authentication options, appear in red.
2. In the SQL server address box, specify the hostname or IP address of the server to connect to.
3. From the Authentication method list, select whether to use NT authentication or SQL Server authentication.
4. If you select SQL Server authentication, specify the login ID and password for the SQL Server account in the SQL login ID
and SQL password boxes, respectively.
Restore 91
To restore to a specific point in time, you must provide the transaction date and time or named mark to which to recover from
the SQL Server transaction log. The SQL Server documentation on the Microsoft website provides details on how to access
transaction log information.
The point in time to which you are restoring must be after the finish time for the most recent full backup. In addition, if the point
in time is before the start time of the most recent transaction log (incremental) backup, then a tail-log backup is not required.
However, a tail-log backup is required if the point in time is after the most recent transaction log backup.
When you specify the point in time for restore, do not specify the start time of the selected transaction log backup if it is not
the last backup in the backup sequence. Otherwise, the restore fails and a tail-log backup does not occur even if you select the
Tail-log backup option.
Steps
1. In the Restore Command Line Options dialog box, select the Show Advanced Options checkbox.
Several advanced options, including the point-in-time recovery options, appear in red.
2. From the Point-in-time recovery mode list, select whether to recover to a point in time or a named mark:
3. In the Point-in-time or mark name string box, specify either the point in time or the named mark to which to recover:
● To recover to a specific point in time, specify the date and time in yyyy-mm-ddThh:mm:ss format. For example,
2013-10-15T14:15:45 is October 15, 2013 at 2:15:45 p.m.
● To recover to a named mark, specify the mark.
4. If you specified a mark, select whether to include the mark in the recovery:
● To specify that the log record immediately before the mark is the recovery point, select Before mark from the Mark
recovery point list. In other words, the recovery rolls forward to the mark and excludes the marked transaction.
● To specify that the marked transaction is the recovery point, select At mark from the Mark recovery point list. In other
words, the recovery rolls forward to the mark and includes the marked transaction.
5. If you specified a mark and named marks are not unique in the transaction log, then use the Mark is after date/time box to
locate the mark to which to recover. The recovery process stops at the first mark with the specified name, exactly at or
after the specified date and time. Specify the date and time in yyyy-mm-ddThh:mm:ss format.
92 Restore
Monitor restores
You can monitor and view status information for backup and restore operations in the Activity Monitor.
To filter activities by client, start time, plug-in, or type, click in their respective column.
The Activity Monitor displays the date and time that an activity began, and the total number of bytes examined during an
activity.
Cancel restores
You can cancel a restore any time before it completes. The cancellation might take 5 minutes or longer. The restore might
complete before the cancellation finishes.
Steps
1. In the AUI navigation pane on the left, click , and then click Activity.
The Activity Monitor appears with a list of activities.
2. Select the restore from the list.
3. Click CANCEL.
A confirmation dialog box is displayed.
4. Click YES.
Restore 93
6
Disaster Recovery
Topics:
• Preparing for disaster recovery
• Performing disaster recovery
94 Disaster Recovery
A
SQL Plug-in Options
Topics:
• How to set plug-in options
• SQL plug-in backup options
• Backup options
• SQL plug-in restore options
• SQL TLR plug-in options
Copy-only Backup Instructs the SQL plug-in to perform a copy-only full backup.
Availability group replica for backup Controls the replica on which the backup occurs in an AlwaysOn environment. One
of the following values:
● Primary — Specifies that the backup should occur on the primary replica.
● Prefer secondary — Specifies that the backup should occur on a secondary
replica except when the primary replica is the only available replica. This is the
default value.
● Secondary only — Specifies that the backup should occur on the secondary
replica. If no secondary replica is available, then the backup does not occur.
● SQL Server defined — Specifies that the backup should use the backup
preference specified in SQL Server settings.
You can increase performance of the primary replica when you perform backups
on a secondary replica. However, the secondary replica must meet the AlwaysON
availability group requirements.
In a hybrid IT environment with Microsoft Azure and AlwaysOn availability groups,
ensure that the backup occurs on an on-premise replica. Avamar cannot back up
databases on a replica on a Microsoft Azure virtual machine.
Enhanced data deduplication Controls the type of compression for data in a backup by setting the --
compress option in avtar. Enhanced data deduplication typically reduces the
amount of client data that the backup process must send to the server, but
requires additional client CPU resources. Select one of the following values:
● Default — The avtar process evaluates some of the data in the backup to
determine whether the data supports compression. If the evaluated data
supports compression, then avtar compresses all data in the backup. If the
evaluated data does not support compression, then avtar does not compress
any data.
● Disabled — The avtar process does not compress data during the backup.
● Enabled — Forces avtar to compress data during the backup, even if the
data does not support compression. Select this value only when you are certain
that data in the backup supports compression. Otherwise, avtar
unnecessarily uses additional client CPU resources to try to perform
compression on data that does not support compression.
Force incremental backup after full If a full backup exists and then another full backup occurs, this option creates a
backup transaction log (incremental) backup. The transaction log backup contains
transactions from the end of the first full backup or the most recent transaction
log backup, whichever is later, until the time that the forced transaction log
backup occurs (after the first backup of the new backup cycle).
This ensures that a point-in-time recovery to a point in time between the two full
backups can occur, if required.
You cannot perform a transaction log backup on databases that use the simple
recovery model because those databases do not support transaction log backups.
This includes system databases such as the master and msdb databases. Use the
For simple recovery model databases list to control what Avamar does when
you try to perform transaction log backups of databases that use the simple
recovery model.
Enable consistency check Instructs the SQL plugin to perform a consistency check of the database prior to
performing a backup.
*Truncate database log Controls database transaction log truncation behavior. One of the following values:
● (Default) Only for incremental backup — The backup process truncates the
database transaction log if the backup type is incremental (transaction log). No
log truncation occurs if the backup type is full or differential.
● For all backup types — The backup process truncates the database
transaction log regardless of the backup type. This setting breaks the chain of
log backups. Do not use this setting unless the backup type is full.
This value is not supported for SQL Server 2008 R2 and later environments.
● Never — The backup process does not truncate the database transaction log
under any circumstances.
*For simple recovery model databases Specifies what Avamar does when you try to perform incremental (transaction
log) backups of databases that use the simple recovery model, which does not
support transaction log backups:
● Skip incremental with error — If you select databases with different recovery
models for the backup, then the backup does not include the databases with
the simple recovery model. The backup completes with exceptions, and an
error message is written to the log. If you select only databases with the simple
recovery model for the backup, then the backup fails.
● Skip incremental with warning — If you select databases with different
recovery models for the backup, then the backup does not include databases
with the simple recovery model. The backup completes successfully, and a
warning is written to the log for each database that uses the simple recovery
model. If you select only databases with the simple recovery model for the
backup, then the backup fails.
● Promote incremental to full — A full backup occurs automatically instead of a
transaction log backup for databases that use the simple recovery model.
Promotion to full is indicated in the Activity Window of the Avamar
Administrator with the status Completed with Promotion. When only some
of the databases in the backup are promoted to full, the status still indicates as
Completed with Promotion.
*Enable debugging messages Specifies to write maximum information to log files for debugging purposes. The
backup process generates large log files.
*Skip log gap detection For transaction log backups, controls whether the Avamar Plug-in for SQL Server
checks the full transaction log backups that are already saved for a database to
verify that there are no "log gaps." This log gap detection ensures that there is a
valid chain of SQL Server transaction logs so that point-in-time restore can occur.
If a log gap is detected, the backup is promoted to a full backup. Promotion to full
is indicated in the Activity Window of the Avamar Administrator with the status
Completed with Promotion. When only some of the databases in the backup are
promoted to full, the status still indicates as Completed with Promotion.
Log gap detection may require as many as 20 to 30 seconds to complete for each
database. Transaction log backups may take an excessive amount of time to
complete in environments with a significant number of databases. If the
performance issues outweigh the risk of possible log gaps, then you can disable log
gap detection by selecting this option to improve performance.
Encryption method to Data Domain Specifies the encryption method for data transfer between the client and the Data
system Domain system during the backup.
Multi-streaming options
Maximum number of streams Specifies the maximum number of streams to use for backup and restore. The
default is 2, and the maximum value is 10.
If you select a value of 1, then Avamar backs up one database at a time with one
stream.
Minimum stream size Specifies the minimum size of each data stream.
Authentication options
*SQL server address Connect to this hostname or IP address for the computer that is running SQL
Server.
*Authentication method Specifies whether to use Windows (NT) authentication or SQL Server
authentication to connect to SQL Server.
If you do not specify an authentication method, then the SQL Server plug-in uses
NT authentication and logs in with the NT AUTHORITY\SYSTEM account.
*SQL login ID If you select SQL server authentication in the Authentication method list,
connect to the server with this login ID.
*SQL password If you select SQL server authentication in the Authentication method list, type
the password for the SQL login account.
Backup options
Backup options for the avsql command enable you to control backup behavior. Many of these options are the same as the
plug-in options that you specify in Avamar Administrator when you perform an on-demand backup or create a dataset for
scheduled backups.
The following avsql options are available for the backup operation.
--consistency-check={true | Instructs the SQL plugin to perform a consistency check of the database
extendedlogicalchecks | before performing a backup.
physicalonly}
● true enables consistency checks using the default behavior.
● extendedlogicalchecks performs an extended logical consistency
check, which includes checks on indexed view, as well as XML and
spatial indexes.
● physicalonly performs a physical-only consistency check (column-
integrity checks are not performed).
--ddr-index=n Specifies the index number (1, 2, 3, and so forth) of the Data Domain
system on which to store the backup. The index number is assigned to the
Data Domain system when it is added to the Avamar server configuration.
This option is an avtar option.
--encrypt=value Specifies the encryption method for data transfer between the client and
the Avamar server during the backup. One of the following values:
● proprietary
● tcp
● ssl
● sslverify
● tls
● tls-sa
Use this option with the --encrypt-strength option. The Avamar
Product Security Guide provides details on how to correctly specify the --
encrypt and --encrypt-strength option values together to ensure
proper encryption settings.
This option is an avtar option.
--encrypt-strength=high Specifies the encryption strength for data transfer between the client and
the Avamar server during the backup. The only allowed value is high.
Use this option with the --encrypt option. The Avamar Product Security
Guide provides details on how to correctly specify the --encrypt and --
encrypt-strength option values together to ensure proper encryption
settings.
--expires={days | timestamp} Specifies backup expiration as a number of days from today (days) or an
absolute timestamp. This option is an avtar option.
--retention-type=type Assigns advanced retention to the backup. One of the following values:
--retentiontype=type ● none — Do not explicitly assign any retention type to this backup. That
is, treat the backup as a normal on-demand backup.
● daily — Explicitly designate this backup as a daily backup.
● weekly — Explicitly designate this backup as a weekly backup.
● monthly — Explicitly designate this backup as a monthly backup.
● yearly — Explicitly designate this backup as a yearly backup.
This option is an avtar option.
--max-streams=n Specifies the maximum number of streams to use for backup and restore.
The default is 1, and the maximum value is 10.
--min-snapup-size=MB Specifies the minimum size of each data stream in MB. The default value is
200.
--prefix=value Specifies a prefix for the log filename.
--skip-log-gap-detection For transaction log backups, controls whether the Avamar Plug-in for SQL
Server checks the full and transaction log backups that are already saved
for a database to verify that there are no "log gaps." This log gap detection
ensures that there is a valid chain of SQL Server transaction logs so that
point-in-time restore can occur. If a log gap is detected, the backup is
promoted to a full backup. Promotion to full is indicated in the Activity
Window of the Avamar Administrator with the status Completed with
Promotion. When only some of the databases in the backup are promoted
to full, the status still indicates as Completed with Promotion.
Log gap detection may require as many as 20 to 30 seconds to complete
for each database. Transaction log backups may take an excessive amount
of time to complete in environments with a significant number of
databases. If the performance issues outweigh the risk of possible log
gaps, then you can disable log gap detection by specifying this option to
improve performance.
--truncatelog_ts= {default | enable Specifies database transaction log truncation behavior. One of the
| disable} following values:
● default — The backup process truncates the database transaction
log if the backup type is set to incremental (transaction log). No log
truncation occurs if the backup type is full or differential.
● enable — The backup process truncates the database transaction log
regardless of the backup type. This setting breaks the chain of log
backups and should not be used unless the backup type is set to full.
This value is not supported for SQL Server 2008 R2 and later
environments.
● disable — The backup process does not truncate the database
transaction log under any circumstances.
You may need to use this option if a previous database restore exited with the
following SQL Server error in the Avamar SQL restore log:
One or more devices or files already exist. Reissue the
statement using the WITH REPLACE option to overwrite
these files and devices.
You should also use this option when restoring system databases.
Tail-log backup Backs up the tail of the transaction log to capture the log records that have
not been backed up. The restore process uses the tail-log backup after the
database restore to recover the transactions that were not in the backup.
Tail-log backup is available only for databases that use the full and bulk-logged
recovery models. Perform a tail-log backup during a direct restore without the
SQL REPLACE option.
Clear the checkbox when you perform a redirected restore to a different SQL
Server instance.
Restore only on primary replica Restores the database on only the primary replica in an AlwaysOn availability
group. When you select this option, you must manually perform database
synchronization on the secondary replicas. Restoring to an AlwaysOn
availability group on page 82 provides details on restoring to an AlwaysOn
availability group.
VerifyOnly restore Performs a verify-only restore, which verifies the backup but does not restore
it.
*Recovery operation Specifies the recovery operation that occurs after the restore:
● RECOVERY — The database is fully recovered and online. This is the
default setting.
● NORECOVERY — The database remains in a restoring state. This enables
you to perform additional manual restore tasks, such as applying additional
SQL log files.
● STANDBY — The database is in standby (read-only) mode.
This option creates a file with recovery changes. You can use the file to
revert the recovery changes, if required. The size of the file depends on
the volume of undo actions from uncommitted transactions. Specify the
path to this file in the Standby file location box.
STANDBY enables you to bring up a database for read-only access
between transaction log restores. Use this setting with either warm
standby server situations or special recovery situations in which it is useful
to inspect the database between log restores.
Do not use STANDBY when a database upgrade is necessary. You may
need to perform a database upgrade when restoring backup sets from an
earlier version of SQL Server.
*Standby file location When you select STANDBY from the Recovery operation list, use this setting
to specify the path to the standby file with recovery changes.
*Enable debugging messages Specifies to write maximum information to log files for debugging purposes.
The restore process generates very large log files.
System Databases options
Restore system databases Causes the plug-in to create an expanded list of databases to restore that
includes system databases and user databases. By default, the plug-in only
shows user databases.
Manage SQL services automatically during When you restore the master database, this option automatically stops the
restore SQL Server instance, including dependent services such as the SQL Server
agent service and the Analysis Service. This step then restarts the instance in
single-user mode before the restore. After the restore, the instance
automatically restarts.
When you restore the msdb database, this option automatically stops the SQL
Server agent service, and then restarts it when the restore is complete.
When you select both system and user databases for restore, you must select
this option to ensure that all system databases restore in the proper order and
with the necessary service stops and restarts.
*Alternate database location If you are relocating the database, type the full path of the new database file
(*.mdf) location on the client, such as C:\temp.
You also can specify the file locations by clicking Set Destination on the
Restore Options dialog box. If you specify the file locations in the Restore
Options dialog box, then you do not need to specify them as plug-in options
on the Restore Command Line Options dialog box. If you are restoring a
database with multiple filegroups or files and you want to restore the files to
different locations, then you must use the redirected restore options on the
Restore Options dialog box.
*Alternate log location Specifies whether the database log file (*.ldf) restores to the same location
as the database or to a different location.
*Path to alternate log location If you are restoring the database log file to a different location than the
database, type the full path of the new database log file location on the client,
such as C:\temp\logs.
Authentication options
*SQL server address Connect to this hostname or IP address for the computer that is running SQL
Server.
*SQL login ID If you select SQL server authentication in the Authentication method list,
connect to the server with this login ID.
*SQL password If you select SQL server authentication in the Authentication method list,
type the password for the SQL login account.
Point-in-Time Recovery options
*Point-in-time recovery mode Specifies whether to recover the database to a specific date and time or a
named mark in the transaction log. Available only if the database uses the full
recovery model.
*Point-in-time or mark name string If you select Point-in-time or Mark name from the Point-in-time recovery
mode list, then this option specifies the point in time or named mark to which
to recover:
● Point-in-time — To recover to a specific point in time, specify the date
and time in yyyy-mm-ddThh:mm:ss format. For example,
2014-05-25T14:15:45 is May 25, 2014 at 2:15:45 p.m.
● Mark name — If named marks are inserted in the transaction log for
recovery purposes, then you can recover to a specific mark. Specify the
mark name.
*Mark recovery point Specifies whether to include the mark in the recovery:
● Before mark — Specifies that the log record immediately before the mark
is the recovery point. In other words, the recovery rolls forward to the
mark and excludes the marked transaction.
● At mark — Specifies that the marked transaction is the recovery point. In
other words, the recovery rolls forward to the mark and includes the
marked transaction.
*Mark is after date/time If named marks are not unique in the transaction log, then you can specify a
date and time to locate the mark to which it recovers. The recovery process
stops at the first mark with the specified name, exactly at or after the
specified date and time. Specify the date and time in yyyy-mm-ddThh:mm:ss
format. For example, 2014-05-25T14:15:45 is May 25, 2014 at 2:15:45 p.m.
Amount of time to leave AvFS mounted Select when to automatically dismount the drive that is being mounted for
the SQL backup data:
● 2 hours
● 8 hours
● 16 hours
● 24 hours
The drive dismounts even if the drive is in use.
Advanced Options
Enable debugging messages Select the checkbox to write maximum information to the log files for
debugging. Use caution when you select this option. The restore process
creates large log files.
Command reference
The avsql command enables you to browse for SQL Server plug-in data to back up or restore, perform the backup, or perform
the restore.
Synopsis
avsql --operation={browse | backup | restore} [options]
Operations
The operation that you specify with the avsql command controls the task that avsql performs. Available operations include
browse, backup, and restore.
Supply one of the operations in the following table for avsql by using the --operation option.
Options
The options that you specify with the avsql command control browse, backup, and restore behavior. Some options are
available for multiple operations, such as the account options for connecting to the Avamar server. Other options apply only to
backups or restores.
Common options
Common options for the avsql command are general options that are available for multiple operations.
The following common options are available for the avsql command.
--version Displays the build version of the Avamar Plug-in for SQL
Server.
--sqltimeoutsecs=seconds The number of seconds after which the connection to SQL
Server times out. If not specified, then the timeout occurs
after 100 seconds.
Account options
Account options for the avsql command enable you to specify credentials to connect to the Avamar server for backups and
restores.
The following account options are available for the avsql command.
--account=domain/client Required for all backup and restore operations. Specifies the
--acnt=domain/client client to back up or restore from using the following format:
--path=domain/client domain/client
where domain is the Avamar domain to which the client
belongs and client is the name of the client computer or the
Avamar cluster client.
This option is an avtar option.
--hostname-sql=client Specifies the name of the client to browse, back up, or restore
from.
Required for browse, backup, and restore in an AlwaysOn
availability group or a failover cluster. Specify the Avamar
cluster client as the client.
--id=user@domain/client Required for all backup and restore operations. Specifies the
Avamar username for authentication.
NOTE: You can specify the values for the --id and --
[avtar]account options simultaneously by specifying
--id=user@domain/client.
--password=password Required for all backup and restore operations. Specifies the
password for the Avamar account.
--pswd=password
--ap=password
--server=Avamar_server Required for all backup and restore operations. Specifies the
hostname or IP address of the Avamar server. This option is
--hfsaddr=Avamar_server
an avtar option.
Logging options
Logging options for the avsql command enable you to specify the path and file name for the avsql log file, and to control
how much information the plug-in writes to the log file.
The following logging options are available for the avsql command.
--log=file Specifies the full path and file name of the avsql plug-in log
file.
--logfile=file
NOTE: The Activity Monitor in Avamar Administrator
displays only avtar logs for backups with the command
line interface. To create a plug-in log for CLI activities, you
must specify the --log or --logfile option on the
command line.
Browse options
In addition to the following browse option for the avsql command, you may want to use the --sqlserver or --hostname-
sql account options during certain browse operations.
The following browse option is available for the avsql command.
--usesmoversion = SMOVERSION Specifies the version of the SQL Server Management Objects
(SMO) that should be used when the node has multiple SQL
versions installed. The respective SMO version will then
determine the SQL server that is being used.
Allowed values are:
● For SQL server 2008, SMOVERSION = 8
● For SQL server 2012, SMOVERSION = 11
● For SQL server 2014, SMOVERSION = 12
● For SQL server 2016, SMOVERSION = 13
Backup options
Backup options for the avsql command enable you to control backup behavior. Many of these options are the same as the
plug-in options that you specify in Avamar Administrator when you perform an on-demand backup or create a dataset for
scheduled backups.
The following avsql options are available for the backup operation.
--consistency-check={true | Instructs the SQL plugin to perform a consistency check of the database
extendedlogicalchecks | before performing a backup.
physicalonly}
● true enables consistency checks using the default behavior.
● extendedlogicalchecks performs an extended logical consistency
check, which includes checks on indexed view, as well as XML and
spatial indexes.
● physicalonly performs a physical-only consistency check (column-
integrity checks are not performed).
--ddr-index=n Specifies the index number (1, 2, 3, and so forth) of the Data Domain
system on which to store the backup. The index number is assigned to the
Data Domain system when it is added to the Avamar server configuration.
This option is an avtar option.
--encrypt=value Specifies the encryption method for data transfer between the client and
the Avamar server during the backup. One of the following values:
● proprietary
● tcp
● ssl
● sslverify
● tls
● tls-sa
Use this option with the --encrypt-strength option. The Avamar
Product Security Guide provides details on how to correctly specify the --
encrypt and --encrypt-strength option values together to ensure
proper encryption settings.
This option is an avtar option.
--encrypt-strength=high Specifies the encryption strength for data transfer between the client and
the Avamar server during the backup. The only allowed value is high.
Use this option with the --encrypt option. The Avamar Product Security
Guide provides details on how to correctly specify the --encrypt and --
encrypt-strength option values together to ensure proper encryption
settings.
--expires={days | timestamp} Specifies backup expiration as a number of days from today (days) or an
absolute timestamp. This option is an avtar option.
--retention-type=type Assigns advanced retention to the backup. One of the following values:
--retentiontype=type
● none — Do not explicitly assign any retention type to this backup. That
is, treat the backup as a normal on-demand backup.
● daily — Explicitly designate this backup as a daily backup.
● weekly — Explicitly designate this backup as a weekly backup.
● monthly — Explicitly designate this backup as a monthly backup.
● yearly — Explicitly designate this backup as a yearly backup.
This option is an avtar option.
--forceincremental= {true | false} If a full backup exists and another full backup occurs, this option creates a
transaction log (incremental) backup that contains transactions which
occur from the end of the first full backup or the most recent transaction
log backup, whichever is later. This action proceeds until the time that the
forced transaction log backup occurs (after the first backup of the new
backup cycle). This step ensures that a point-in-time recovery to a point in
time between the two full backups can occur, if required.
Three backup sessions occur when a forced transaction log backup occurs:
● The first session contains transactions that occur from the end of the
first full backup until the start time of the forced transaction log
backup.
● The second session contains transactions that occur from the end of
the second full backup until the time that the forced transaction log
backup occurs.
● The third session contains only the full backup.
To restore and recover the database to a point after the forced transaction
log backup, select the last backup from the last backup session that has
the most recent full backup, during the restore process.
NOTE: You cannot perform a transaction log backup on databases that
use the simple recovery model because those databases do not support
transaction log backups. This includes system databases such as the
master and msdb databases. As a result, set --
forceincremental=false when you back up a database that uses
the simple recovery model.
--max-streams=n Specifies the maximum number of streams to use for backup and restore.
The default is 1, and the maximum value is 10.
--min-snapup-size=MB Specifies the minimum size of each data stream in MB. The default value is
200.
--prefix=value Specifies a prefix for the log filename.
--skip_or_prom_sdm= Specifies what Avamar does when you try to perform incremental
{skip_with_error | (transaction log) backups of databases that use the simple recovery model,
skip_with_warning | which does not support transaction log backups:
promote_to_full}
● skip_with_error — If you select databases with different recovery
models for the backup, then the backup does not include the databases
with the simple recovery model. The backup completes with exceptions,
and an error message is written to the log. If you select only databases
with the simple recovery model for the backup, then the backup fails.
● skip_with_warning — If you select databases with different
recovery models for the backup, then the backup does not include
databases with the simple recovery model. The backup completes
successfully, and a warning is written to the log for each database that
uses the simple recovery model. If you select only databases with the
simple recovery model for the backup, then the backup fails.
● promote_to_full — A full backup occurs automatically instead of a
transaction log backup for databases that use the simple recovery
model. Promotion to full is indicated in the Activity Window of the
Avamar Administrator with the status Completed with Promotion.
When only some of the databases in the backup are promoted to full,
the status will still be indicated as Completed with Promotion.
The default value is skip_with_error.
--truncatelog_ts= {default | enable Specifies database transaction log truncation behavior. One of the
| disable} following values:
● default — The backup process truncates the database transaction
log if the backup type is set to incremental (transaction log). No log
truncation occurs if the backup type is full or differential.
● enable — The backup process truncates the database transaction log
regardless of the backup type. This setting breaks the chain of log
backups and should not be used unless the backup type is set to full.
This value is not supported for SQL Server 2008 R2 and later
environments.
● disable — The backup process does not truncate the database
transaction log under any circumstances.
--ddr-encrypt-strength={high | medium | Specifies the encryption method for data transfer between the Data
none} Domain system and the client when the backup is stored on a Data
Domain system. The default value is high. This option is an avtar
option.
--dblocation=path If you are relocating the database, this option specifies the full path
of the new database file (*.mdf) location on the client, where path
is a value such as C:\temp.
--encrypt=value Specifies the encryption method for data transfer between the
Avamar server and the client during the restore. One of the
following values:
● proprietary
● tcp
● ssl
● sslverify
● tls
● tls-sa
Use this option with the --encrypt-strength option. The
Avamar Product Security Guide provides details on how to correctly
--encrypt-strength=value Specifies the encryption strength for data transfer between the
Avamar server and the client during the restore. One of the
following values:
● cleartext
● medium
● high
Use this option with the --encrypt option. The Avamar Product
Security Guide provides details on how to correctly specify the --
encrypt and --encrypt-strength option values together to
ensure proper encryption settings.
--handle-sql-services-automatically When restoring system databases, this option stops and restarts
--handlesqlservicesautomatically SQL services automatically as necessary.
When you restore both system and user databases, you must specify
this option to ensure that all system databases restore in the proper
order and with the necessary service stops and restarts.
--history-optimization={true | false} Enables or disables history search optimization, which you can
further refine by using the --after-date=date option. The
default setting is --history-optimization=true, which
enables history search optimization.
--logtail Backs up the tail of the transaction log to capture the log records
that are not in a backup. After the database restore, Avamar uses
the tail-log backup to recover the transactions that were not in the
backup.
Tail-log backup is available only for databases that use the full and
bulk-logged recovery models. Perform a tail-log backup during a
direct restore without the SQL REPLACE option.
Do not use this option when you restore to a different SQL Server
instance.
--metadata Retrieves the SQL metadata file from the backup and displays the
metadata as screen output. When you use this option, Avamar does
not restore any data.
--newdbname=name Restores the database with the specified name (instead of its
original name) when you are restoring it to either a different instance
on the same server or to a different server.
--overwrite-default-recoveryplan Specify this option to perform individual incremental or differential
backups of the SQL server database.
--pitormark={none | pointintime | Whether to recover the database to a specific date and time or a
markname} named mark in the transaction log. Available only if the database
uses the full recovery model. One of the following values:
● none — Do not recover to a specific point in time.
--print-restore-size Prints the size required to restore SQL data. No actual restore takes
place when this option is used.
--recovery-primary-only={true | false} Specify true to restore the database on only the primary replica in
an AlwaysOn availability group. When you specify true, you must
manually perform database synchronization on the secondary
replicas.
Specify false to restore to both primary and secondary replicas.
--recoveryoperation={RECOVERY | Specifies the recovery operation that occurs after the restore. One
NORECOVERY | STANDBY} of the following values:
● RECOVERY — The database is fully recovered and online. This is
the default setting.
● NORECOVERY — The database remains in a restoring state. This
enables you to perform additional manual restore tasks, such as
applying additional SQL log files.
● STANDBY — The database is in standby (read-only) mode.
This option creates a file with recovery changes. You can use the
file to revert the recovery changes, if required. The size of the
file depends on the volume of undo actions from uncommitted
transactions. Specify the path to this file with the --
standbyfilelocation=path option.
STANDBY enables you to bring up a database for read-only
access between transaction log restores. Use this setting with
either warm standby server situations or special recovery
situations in which it is useful to inspect the database between
log restores.
Do not use STANDBY when a database upgrade is necessary. You
may need to perform a database upgrade when you restore
backup sets from an earlier version of SQL Server.
--recoverypoint={beforemark | atmark} When you perform a point-in-time restore to a named mark, this
option specifies whether to include the mark in the recovery. One of
the following values:
● beforemark — Specifies that the log record immediately
before the mark is the recovery point. In other words, the
recovery rolls forward to the mark and excludes the marked
transaction.
● atmark — Specifies that the marked transaction is the recovery
point. In other words, the recovery rolls forward to the mark and
includes the marked transaction.
--redirecttofile={true | false} Specifies whether to restore database files as operating system files
to the specified location.
--restore-destination={original | Specifies the restore destination for the data:
multiple | single}
● original – Restore the data to its original location. This is the
default value.
● multiple – Restore the data to a different location. Use the
--target={path | client\instance} option to specify the
location.
● single – Restore the data to operating system files. Use the
--target={path | client\instance} option to specify the
location.
This option is an avtar option.
--restoresystem Attempts to restore databases that have the system attribute set.
--standbyfilelocation=path If --recoveryoperation=STANDBY, then this option specifies
the path on the destination client to the standby file with recovery
changes.
Use the following format:
drive:\folder\subfolder
where drive is the drive letter on the destination client, and folder
\subfolder is the path on the drive letter in which to create the file.
If a file with recovery changes already exists in the specified
location, then SQL Server overwrites it.
You can use the file to revert the recovery changes, if required.
--target={path | client\instance} Specifies the target location for the restored files:
● If --restore-destination=single, then specify the path
on the original client to which to restore the files, such as --
target=C:\sqldata.
Help option
The --help option displays a list of available operations and options for the avsql command. You can view all help output for
avsql, or only the options for a specific operation.
The following command displays all help output for the avsql command:
avsql --help
The following command provides a list of options for the backup operation:
avsql --help --operation=backup
--debug
--logfile=avamarclient.log
--verbose=5
● Create an option file as a text file, and then specify the option file on the command line by using the --flagfile=path
option, where path is the full pathname of the option file.
● Pass options to the CLI as environment variables. For example, if you specify AvamarServer=12.34.56.78 in the
environment variables, then you can specify the environment variable instead of the IP address of the Avamar server in the
command, as shown in the following example:
avsql --operation=backup --server=%AvamarServer%
--id=AvamarAdmin --ap=password --brtype=full
--path=/SQL/SQLServer3 --label=SQL1Full
--log=C:\Program Files\avs\var\avsql.log “ ”
Password encoding
You can use avtar to encode passwords that you type on the command line or store in script files, and then use the encoded
string with the --password, --ap, or --pswd option.
Steps
1. Type the following command on the command line on the SQL Server client:
avtar --encodepassword=password
where password is the password to encode.
CLI examples
Review the avsql command examples for details on how to use options to control browse, backup, and restore behavior.
Browsing a database
The following command returns detailed information about the database, including the creation date, size, and owner for the
database:
Backing up a database
To back up a specific database on a client, specify the client, instance, and database as the backup target between the
quotation marks at the end of the command, using the format client\instance/database, or (local)/database if the database
is in the local instance.
Excluding the local instance from a backup of all SQL Server data
The following command performs a full backup of all SQL Server data except for the local instance on the SQLServer1 client
in the SQL domain, and stores the backup on the Avamar server with an IP address of 12.34.56.78:
avsql --operation=backup --server=12.34.56.78 --id=AvamarAdmin
--ap=password --brtype=full --path=/SQL/SQLServer1
--log=C:\Program Files\avs\var\avsql.log
--exclude=(local) " "
Including a database from an excluded instance in a backup of all SQL Server data
The following command performs the same backup as the previous example, but includes the database named DB3 in the
backup:
avsql --operation=backup --server=12.34.56.78 --id=AvamarAdmin
--ap=password --brtype=full --path=/SQL/SQLServer1
--log=C:\Program Files\avs\var\avsql.log
--exclude=(local) --include=(local)/DB3 " "
You must run the previous command from a command line on the SQLServer2 (destination) client.
Restoring to a file
To restore a SQL Server database from an Avamar backup to operating system files, use the --redirecttofile=true
option and specify the target path for the files by using the --target option.
You must run the previous command from a command line on the original client.
You must run the previous command from a command line on the WinServer3 (destination) client.
When you restore the databases on only the primary replica, the corresponding database on the secondary replicas is in a
restoring state. To restore the databases on the secondary replicas as part of the availability group, manually prepare and
restore the databases, and join them to the availability group on the secondary replica.
Run the previous command on the primary replica of the target cluster with the SQLGroup3 availability group.
Point-in-time restore
To restore to a specific point in time, set --pitormark=pointintime and specify the date and time with the --
pitormarkstr option.
To restore to a named mark, set --pitormark=markname, specify the named mark using the --pitormarkstr option, and
specify whether to include the mark in the recovery using the --recoverypoint option. If named marks are not unique in the
transaction log, then use the --aftertime option to specify a date and time to locate the mark.
avsqltlr synopsis
avsqltlr --extendmnttime=time
avsqltlr options
One option is supported by the avsqltlr command, to extend the amount of time that a database backup mounted for table
level recovery will remain mounted.
The following option is available for the avsqltlr command.
Troubleshooting 133
Starting up database database_name
will be generated repeatedly in the Event Monitor of the Avamar Administrator. This indicates that SQL Auto Close setting is
enabled for these databases, which closes the database when the last connection closes. The solution to this problem is to
disable the SQL Auto Close feature on the SQL server.
--remote-connection-alive-timeout=<timeout>
avagent.cmd file with above flag should be added to var folder as well as Cluster client's var directory on the
primary node and all the secondary nodes. The Cluster client's var folder for AlwaysOn group is created while
configuring wccw.
We should also add the following flag in avsql.cmd file in var folder as well as Cluster client's var directory on
all the nodes:
--secondary-replica-timeout=<timeout>
134 Troubleshooting
D
Cluster Configuration Tool CLI
Topics:
• Cluster Configuration Tool CLI Overview
• Plugins
• Operations
• Cluster Configuration Tool CLI examples
Command reference
The av_cluster_config_console command enables you to configure the cluster, remove the existing configuration, and
view the existing configuration for the SQL and SQLAlwayson plugins.
Synopsis
av_cluster_config_console - -plugin= {SQL | SQLAlwayson} - -operation= {configure |
remove | view} [Options]
Plugins
The plugin that you specify with the av_cluster_config_console command controls the plugin that is used during the
configuration.
Supply one of the plugins specified in the following table by using the - - plugin option.
av_cluster_config_console --help
--plugin="SQL"
av_cluster_config_console --help
--plugin="SQLAlwayson"
Operations
The operation and options that you specify with the av_cluster_config_console command controls the task that the tool
performs.
Supply one of the operations in the following table along with the listed options.
clusterservice Name of the SQL fail over instance cluster resource group name.
To get the list of available cluster resource group names use the view command.
[OPTIONAL]sharedvolume Shared volume for the cluster client. If the fail over instance has a single shared disk
then the tool automatically detects the disk and uses it as a shared volume for the
configuration. If multiple shared volumes are present, this field is mandatory.
[OPTIONAL]bringonline Whether to bring the Avamar cluster client online and register with Avamar server.
Valid values are "TRUE" or "FALSE".
The default value is "TRUE".
[OPTIONAL]clientdomain Specifies the Avamar domain that the cluster client is associated with.
The default value is /clients.
You can provide either the FQDN name of the server or the IP
address.
av_cluster_config_console.exe --
plugin="SQLAlwayson" --operation="view"
[OPTIONAL]ipversion IP version that is being used on the nodes. If this option is not
specified, then IPV4 is used as the default value. IPV4 is
supported for the configurations.
[OPTIONAL]mcsport Avamar port number. This is the port that is used to
communicate with the Avamar server.
If this option is not specified, then 28001 is used as the
default port number.
[OPTIONAL]bringonline Whether to bring the Avamar cluster client online and register
with the Avamar server.
Valid values are "TRUE" or "FALSE".
If this option is not specified, then "TRUE" is used as the
default value.
av_cluster_config_console.exe --
plugin="SQLAlwayson" --operation="view"
av_cluster_config_console.exe --help
View list of available options for configure operation for SQL plugin
The following command returns the list of available options for the configure operation for the SQL plugin.
View list of available options for remove operation for SQL plugin
The following command returns the list of available options for the remove operation for the SQL plugin.
Configure new cluster client on all nodes for a SQL fail over instance for
Avamar
The following command configures the new cluster client on all nodes for a SQL fail over instance.
Remove existing cluster client on all nodes for a SQL fail over instance for
Avamar
The following command removes the existing cluster client on all nodes for a SQL fail over instance.
View list of available options for the configure operation for SQLAlwayson
plugin
The following command returns the list of available options for the configure operation for the SQL plugin.
View list of available options for the remove operation for SQLAlwayson
plugin
The following command returns the list of available options for the remove operation for the SQL plugin.
Configure new cluster client on all nodes for SQLAlwayson group Grp1 for
Avamar
The following command configures the new cluster client on all nodes for an SQLAlwayson group Grp1.
Remove the existing cluster client on all nodes for an SQLAlwayson fail
over instance for Avamar
The following command removes the existing cluster client on all nodes for an existing SQLAlwayson group.
View the existing cluster client information for the SQL Alwayson
configuration
The following command displays the existing cluster client configuration for all the available SQL Alwayson groups.
● SQL 2012
● SQL 2014
● SQL 2016
Remote Blob Stores (RBSs):
● FILESTREAM Provider
● Metalogix StoragePoint Provider (v4.2 1320 or higher)
● StorSimple SharePoint Database Optimizer
Virtual Environments Virtual operation of tape devices may have restrictions that
are imposed by virtual operating systems.
Additional Software Microsoft .NET Framework:
● 4.0
In order for ItemPoint for Microsoft SQL Server to operate
fully, you must ensure that the source database files are on
EMC storage. If not, attempts to open a source database
produces an error message.
administrator
Person who normally installs, configures, and maintains software on network computers, and who adds users and defines user
privileges.
alias
A SQL Server feature that enables you to configure a name on a computer with SQL Server that points to a server, instance, or
database on either the local computer or on a different computer.
authentication
The method by which users and applications, such as Avamar client software, connect to SQL Server. Authentication methods
include Windows authentication and SQL Server authentication.
avagent
The name of the client agent process.
availability group
In a cluster environment with SQL Server 2012, 2014, or 2016, a group of databases stored locally on each node that can fail
over from one node to another for high availability.
See also AlwaysOn availability group
availability replica
A SQL Server instance on a cluster node that hosts an AlwaysOn availability group.
See also replica
Avamar Administrator
A graphical management console software application that is used to remotely administer an Avamar system from a supported
Windows or Linux client computer.
Avamar client
A computer or workstation that runs Avamar software and accesses the Avamar server over a network connection. Avamar
client software comprises a client agent and one or more plug-ins.
Avamar server
The server component of the Avamar client/server system. Avamar server is a fault-tolerant, high-availability system that
efficiently stores the backups from all protected clients. It also provides essential processes and services required for data
restores, client access, and remote system administration. Avamar server runs as a distributed application across multiple
networked storage nodes.
avsql
The application executable and command line interface for the Avamar Plug-in for SQL Server. You can use avsql to perform on-
demand backups and restores of SQL Server data.
avtar
The Avamar process that performs backups and restores.
Glossary 145
B
backup
A point-in-time copy of client data that can be restored as individual files, selected data, or as an entire backup.
backup policy
In the AUI, a backup policy specifies a dataset, schedule, and retention settings that are applied to a client or a group of clients.
A backup policy must contain at least one Avamar client. If the backup policy contains two or more clients, the clients must
belong to the same Avamar domain. You can override backup policy settings at the client level.
browse
The process of viewing data that is available for backup on a client computer or restore from the Avamar server.
C
client activation
The process of passing the client ID (CID) back to the client, where it is stored in an encrypted file on the client file system.
See also activation
client agent
A platform-specific software process that runs on the client and communicates with the Management Console Server (MCS)
and with any plug-ins installed on that client.
client registration
The process of establishing an identity with the Avamar server. When Avamar recognizes the client, it assigns a unique client ID
(CID), which it passes back to the client during client activation.
See also registration
cluster
Two or more independent network servers, usually with exact copies of the same software and data, that operate and appear to
clients as if they are a single unit. A cluster configuration enables work to be shifted from one server to another, providing high
availability, which allows application services to continue despite most hardware or software failures.
D
database
A collection of data arranged for ease and speed of update, search, and retrieval by computer software.
database mirroring
A high availability strategy where SQL Server maintains two copies of a single database that must reside on different SQL
Server instances.
See also mirroring
146 Glossary
dataset
A policy that defines a set of files, directories, and file systems for each supported platform that are included or excluded in
backups across a group of clients. A dataset is a persistent and reusable Avamar policy that can be named and attached to
multiple groups.
default instance
The default instance on a computer with SQL Server. The name of the default instance is the name of the local computer.
See also local instance
differential backup
A type of backup that includes only data that changed after the last full backup. The backup also copies relevant portions of the
transaction logs.
disaster recovery
Recovery from any disruptive situation, such as hardware failure or software corruption, in which ordinary data recovery
procedures are not sufficient to restore a system and its data to normal day-to-day operations. A disaster recovery can be a
bare metal recovery.
DNS
Domain Name Server. A dynamic and distributed directory service for assigning domain names to specific IP addresses.
domain
A feature in Avamar Administrator that is used to organize large numbers of clients into named areas of control and
management.
F
Failover Cluster Instances (FCIs)
A single instance of SQL Server that is installed across Windows Server Failover Clustering (WSFC) nodes. On the network, an
FCI appears to be an instance of SQL Server running on a single computer, but the FCI provides failover from one WSFC node
to another if the current node becomes unavailable.
filegroup
Named collections of SQL Server files that are used to help with data placement and administrative tasks such as backup and
restore operations. The two types of filegroups are the primary filegroup and user-defined filegroups.
file system
Software interface used to save, retrieve, and manage files on storage media by providing directory structures, data transfer
methods, and file association.
full backup
A type of backup that includes the entire database, including all objects, system tables, and data, as well as the transaction log.
G
group
A level of organization in Avamar Administrator for one or more Avamar clients. All clients in an Avamar group use the same
group policies, which include the dataset, schedule, and retention policy.
group policy
In Avamar Administration, a group policy is defined as a dataset, schedule, and retention policy for all clients in an Avamar group.
H
hybrid IT environment
An information technology (IT) environment where an enterprise provides and manages some resources on-premise but uses
cloud-based services for other resources.
Glossary 147
I
incremental backup
A type of backup that includes only the transaction log. Also called a transaction log backup.
instance
A single occurrence of the SQL Server Database Engine. You can install multiple instances on a single computer. The two types
of instances are the local instance, also called the default instance, and named instances.
L
LAN
Local Area Network.
local instance
The default instance on a computer with SQL Server. The name of the local instance is the name of the local computer.
See also default instance
M
mark
The user-defined name for a starting point of a specific type of transaction in the transaction log. You can perform a point-in-
time restore for a database to a mark.
See also named mark
master database
The system database that records all of the system level information for a SQL Server system.
MCS
Management console server. The server subsystem that provides centralized administration (scheduling, monitoring, and
management) for the Avamar server. The MCS also runs the server-side processes used by Avamar Administrator.
metadata
Data about the backup, including information about the original database files, the backup types, the date and time of the
backup, and other information necessary for restore.
Microsoft Azure
The Microsoft cloud computing platform and infrastructure. Formerly known as Windows Azure.
mirroring
A high availability strategy where SQL Server maintains two copies of a single database that must reside on different SQL
Server instances.
See also database mirroring
model database
The system database that provides the template for all databases that you create on a SQL Server instance.
msdb database
The system database for scheduling alerts and jobs, and for recording operators. The msdb database also contains history
tables, such as the backup and restore history tables.
multi-streaming
The process of backing up or restoring data using multiple parallel data streams. Multi-streaming enables you to improve backup
and restore performance in most environments.
N
named instance
All instances of the database engine other than the local instance. You specify the name of the instance when you install the
instance.
148 Glossary
named mark
The user-defined name for a starting point of a specific type of transaction in the transaction log. You can perform a point-in-
time restore for a database to a named mark.
See also mark
P
plug-in
Avamar client software that recognizes a particular kind of data resident on that client.
plug-in options
Options that you specify during backup or restore to control backup or restore functionality.
point-in-time restore
The process of restoring a database with the full recovery model to a specific date and time or to a named mark in the
transaction log.
policy
A set of rules for client backups that can be named and applied to multiple groups. Groups have dataset, schedule, and retention
policies.
primary filegroup
The filegroup that contains the primary data file and any other files that are not specifically assigned to another filegroup. All
pages for the system tables are allocated in the primary filegroup.
primary replica
The availability replica that handles read/write activity from clients and sends transaction log updates to the secondary replicas.
R
recovery model
A database property that controls how transactions are logged, whether the transaction log requires and allows backups, and
the available restore operations. Three recovery models exist: simple, full, and bulk-logged.
recovery operation
The type of recovery to perform when you restore SQL Server data. The recovery operation controls the status of restored
databases after the restore. The three recovery models are RECOVERY, NORECOVERY, and STANDBY.
redirected restore
The process of restoring a backup to a different location than the original location where the backup occurred.
registration
The process of establishing an identity with the Avamar server. When Avamar recognizes the client, it assigns a unique client ID
(CID), which it passes back to the client during client activation.
See also client registration
replica
A SQL Server instance on a cluster node that hosts an AlwaysOn availability group.
See also availability replica
Resource database
A read-only system database that contains copies of all system objects that ship with SQL Server. The Avamar Plug-in for SQL
Server cannot back up the Resource database because SQL Server cannot back up the Resource database.
restore
An operation that retrieves one or more file systems, directories, files, or data objects from a backup and writes the data to a
designated location.
Glossary 149
retention
The time setting to automatically delete backups on an Avamar server. Retention can be set to permanent for backups that
should not be deleted from an Avamar server. Retention is a persistent and reusable Avamar policy that can be named and
attached to multiple groups.
S
schedule
The ability to control the frequency and the start and end time each day for backups of clients in a group. A schedule is a
persistent and reusable Avamar policy that can be named and attached to multiple groups.
secondary replica
An availability replica that contains a copy of the databases for the availability group. The database copies synchronize with the
databases on the primary replica through transaction log updates from the primary replica.
sqlcmd utility
A command line utility for entering Transact-SQL statements and scripts.
system databases
Databases that store system-level information, objects, and templates for a SQL Server instance. The master, msdb, model, and
Resource databases are system databases.
T
tail-log backup
A transaction log backup of log records that have not yet been backed up (the “tail of the log”). A tail-log backup occurs before
you restore data from a backup. The backup prevents work loss and keeps the log chain intact.
transaction log
A log file that contains a history of database transactions.
Transact-SQL
An extension of Structured Query Language (SQL). You can use Transact-SQL statements to back up and restore SQL Server
data.
U
user-defined filegroup
Any filegroup that you define in SQL Server. Log files are never part of a filegroup.
150 Glossary
V
virtual device interface (VDI)
The Microsoft application programming interface (API) that the Avamar Plug-in for SQL Server uses to back up and restore SQL
Server data.
W
Windows authentication
An authentication method by which users and applications, such as Avamar client software, connect to SQL Server using a
Windows user account that has privileges in SQL Server.
Glossary 151