Professional Documents
Culture Documents
14
Microsoft SQL Server User Guide
July 2023
Rev. 01
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.
© 2020 - 2023 Dell Inc. or its subsidiaries. All rights reserved. Dell Technologies, Dell, and other trademarks are trademarks of Dell Inc. or its
subsidiaries. Other trademarks may be trademarks of their respective owners.
Contents
Figures.......................................................................................................................................... 7
Tables........................................................................................................................................... 9
Preface........................................................................................................................................10
Chapter 2: Enabling the Microsoft Application Agent for Microsoft SQL Server.......................... 23
Microsoft SQL Server data protection and replication requirements.................................................................. 23
Microsoft SQL Server operational log files for backup and restore operations.................................................24
Protecting a stand-alone Microsoft SQL Server.......................................................................................................25
Protecting Microsoft SQL Server clustered environments.................................................................................... 25
Install, update, and uninstall the application agent................................................................................................... 26
Prerequisites ................................................................................................................................................................26
Install the Microsoft application agent with the wizard.....................................................................................26
Install the Microsoft application agent with a silent installation...................................................................... 29
Update the Microsoft application agent................................................................................................................ 32
Update the application agent in the PowerProtect Data Manager UI........................................................... 33
Uninstall the Microsoft application agent with the setup file...........................................................................34
Uninstall the Microsoft application agent with a silent uninstallation............................................................ 34
Required privileges for Application Direct backup and recovery..................................................................... 35
Stagger Microsoft SQL Server discovery jobs in host scale-out environments.......................................... 36
Configure the database backup stripe level..........................................................................................................36
Enable multi-stream backups for Microsoft SQL Server protection policy...................................................37
Manage the Microsoft application agent.....................................................................................................................38
Changing the preferred host address.....................................................................................................................39
View application agent details.................................................................................................................................. 39
Configurable ports for Microsoft SQL Server.............................................................................................................41
Support for existing Microsoft application agent backups with PowerProtect Data Manager......................41
Supporting existing Microsoft application agent backups with PowerProtect Data Manager................ 42
Using the backup discovery tool for PowerProtect Data Manager management of existing
backups......................................................................................................................................................................43
Microsoft application agent for application-aware protection...............................................................................44
Contents 3
Multiple virtual networks (MVLANs) for Microsoft SQL Server application-aware protection...............45
Naming conventions for backups with VM Direct...............................................................................................45
Minimum required privileges for VM Direct backup and recovery.................................................................. 46
4 Contents
Recovering the PowerProtect agent service from a disaster.......................................................................... 87
Manage the cloud tier operations with PowerProtect Data Manager for application agents........................88
Add a Cloud Tier objective to a Microsoft SQL protection policy...................................................................88
Tier the PowerProtect Data Manager backups from DD to the cloud...........................................................89
Restore the cloud tier backups to DD.................................................................................................................... 90
Contents 5
Centralized restore of Microsoft SQL Server system databases........................................................................ 149
Centralized restore of a Microsoft SQL Server stand-alone database...............................................................151
Centralized restore of a Microsoft SQL Server AAG database............................................................................153
Centralized restore of multiple Microsoft SQL Server databases.......................................................................156
Chapter 9: Protecting Virtual Machines Using the Transparent Snapshots Data Mover .............205
Overview of Transparent Snapshots Data Mover.................................................................................................. 205
vSphere Installation Bundle monitoring and management....................................................................................205
Transparent snapshots data mover system requirements................................................................................... 206
Prerequisites to virtual machine protection with the Transparent Snapshots Data Mover......................... 207
Additional privileges required for a dedicated vCenter user account to use Transparent Snapshot
Data Mover.............................................................................................................................................................207
Creating VMkernel ports for Transparent Snapshots Data Mover...............................................................207
Configuring Microsoft SQL Server application-aware protection with TSDM................................................ 208
Transparent Snapshots Data Mover unsupported features and limitations.....................................................209
Transparent Snapshots Data Mover performance and scalability........................................................................211
Migrating assets to use the Transparent Snapshots Data Mover....................................................................... 213
6 Contents
Figures
Figures 7
41 VM Direct: Instant Access Active Mounts page.............................................................................................193
8 Figures
Tables
1 Revision history..........................................................................................................................................................11
2 Related documentation............................................................................................................................................11
3 Style conventions..................................................................................................................................................... 12
4 Supported configurations....................................................................................................................................... 17
5 Required silent installation command options...................................................................................................29
6 Optional silent installation command options....................................................................................................30
7 Application agent information...............................................................................................................................40
8 Special characters supported with VM Direct..................................................................................................45
9 Required backup and retention types.................................................................................................................54
10 Centralized protection schedules........................................................................................................................ 54
11 Additional full backups for extended retention.................................................................................................54
12 Backup terminology and frequency..................................................................................................................... 57
13 Supported attributes and matching criteria by asset type............................................................................69
14 Supported special characters............................................................................................................................... 98
15 Software requirements........................................................................................................................................ 206
16 Minimum required vCenter user account privileges......................................................................................207
17 Scalability limits for the vCenter and ESXi server.......................................................................................... 211
18 TSDM maximum concurrent protection operations and memory consumption..................................... 212
19 Microsoft SQL Server skipped database cases and descriptions..............................................................226
Tables 9
Preface
As part of an effort to improve product lines, periodic revisions of software and hardware are released. Therefore, all versions of
the software or hardware currently in use might not support some functions that are described in this document. The product
release notes provide the most up-to-date information on product features.
If a product does not function correctly or does not function as described in this document, contact Customer Support.
NOTE: This document was accurate at publication time. To ensure that you are using the latest version of this document,
go to the Customer Support website.
Product naming
Data Domain (DD) is now PowerProtect DD. References to Data Domain or Data Domain systems in this documentation, in the
user interface, and elsewhere in the product include PowerProtect DD systems and older Data Domain systems.
Isilon is now PowerScale. References to Isilon, Isilon products, or Isilon appliances in this documentation, in the user interface,
and elsewhere in the product include PowerScale products and appliances.
In many cases the user interface has not yet been updated to reflect these changes.
Language use
This document might contain language that is not consistent with Dell Technologies current guidelines. Dell Technologies plans
to update the document over subsequent future releases to revise the language accordingly.
This document might contain language from third-party content that is not under Dell Technologies control and is not consistent
with the current guidelines for Dell Technologies own content. When such third-party content is updated by the relevant third
parties, this document will be revised accordingly.
Acronyms
The acronyms used in this document might not be familiar to everyone. Although most acronyms are defined on their first use, a
definition is not always provided with later uses of the acronym. For a list of all acronyms and their definitions, see the glossary
at the end of the document.
Website links
The website links used in this document were valid at publication time. If you find a broken link, provide feedback on the
document, and a Dell Technologies employee will update the link in the next release as necessary.
Purpose
This document describes how to configure and use the Dell PowerProtect Data Manager with the Microsoft application agent
to back up and restore Microsoft SQL Server. The PowerProtect Data Manager Administrator Guide provides additional details
about configuration and usage procedures.
Audience
This document is intended for the host system administrator who configures and uses the PowerProtect Data Manager with the
Microsoft application agent to back up and restore Microsoft SQL Server.
10 Preface
Revision history
The following table presents the revision history of this document.
Compatibility information
Software compatibility information for the PowerProtect Data Manager software is provided by the E-Lab Navigator.
Related documentation
The following publications are available at Customer Support and provide additional information:
Preface 11
Table 2. Related documentation (continued)
Title Content
PowerProtect Data Manager Oracle RMAN User Guide Describes how to configure and use the software to back up
and restore the data in an Oracle Server environment.
PowerProtect Data Manager SAP HANA User Guide Describes how to configure and use the software to back up
and restore the data in an SAP HANA Server environment.
PowerProtect Data Manager Storage Direct User Guide Describes how to configure and use the software with the
Storage Direct agent to protect data on VMAX storage arrays
through snapshot backup technology.
PowerProtect Data Manager Network-Attached Storage Describes how to configure and use the software to protect
User Guide and recover the data on network-attached storage (NAS)
shares and appliances.
PowerProtect Data Manager Virtual Machine User Guide Describes how to configure and use the software to back
up and restore virtual machines and virtual machine disks
(VMDKs) in a vCenter Server environment with VADP or the
Transparent Snapshots Data Mover (TSDM).
PowerProtect Data Manager Storage Array User Guide Describes how to configure and use the software to protect
and restore data on PowerStore storage arrays.
VMware Cloud Foundation Disaster Recovery With Provides a detailed description of how to perform an end-to-
PowerProtect Data Manager end disaster recovery of a VMware Cloud Foundation (VCF)
environment.
PowerProtect Data Manager Public REST API documentation Contains the Dell Technologies APIs and includes tutorials to
guide you in their use.
vRealize Automation Data Protection Extension for Data Describes how to install, configure, and use the vRealize Data
Protection Systems Installation and Administration Guide Protection Extension.
Typographical conventions
The following type style conventions are used in this document:
You can use the following resources to find more information about this product, obtain support, and provide feedback.
12 Preface
Where to find product documentation
To find the latest documentation, navigate to the PowerProtect Data Manager Info Hub or type www.dell.com/ppdmdocs in
your browser, or scan the following QR code on your mobile device.
Support Library
The Support Library contains a knowledge base of applicable solutions that you can search for either by solution number (for
example, KB000xxxxxx) or by keyword.
To search the Support Library:
1. Go to the Customer Support website.
2. On the Support tab, click Support Library.
3. In the search box, type either the solution number or keywords. 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.
Live chat
To participate in a live interactive chat with a support agent:
1. Go to the Customer Support website.
2. On the Support tab, click Contact Support.
3. On the Contact Information page, click the relevant support, and then proceed.
Service requests
To obtain in-depth help from a support agent, submit a service request. To submit a service request:
1. Go to the Customer Support website.
2. On the Support tab, click Service Requests.
NOTE: To create a service request, you must have a valid support agreement. For details about either an account or
obtaining a valid support agreement, contact a sales representative. To find the details of a service request, in the
Service Request Number field, type the service request number, and then click the right arrow.
Preface 13
Online communities
For peer contacts, conversations, and content on product support and solutions, go to the Community Network. Interactively
engage with customers, partners, and certified professionals online.
14 Preface
1
PowerProtect Data Manager for Microsoft
Application Agent Overview
Topics:
• PowerProtect Data Manager overview
• Introducing the Microsoft application agent
• VM Direct limitations
• Prerequisites
• Supported Internet Protocol versions
• Encryption in-flight
• PowerProtect Data Manager new deployment overview
• PowerProtect Data Manager existing deployment overview
• Security configuration
PowerProtect Data Manager supports the coexistence of the Microsoft application agent and the File System agent on
Windows. When a volume includes any application database and log files:
● File System agent block-based backups of the volume automatically exclude the database and log files from the file
system backup.
● File System agent file-based backups of the volume do not automatically exclude the database and log files, but you
can explicitly exclude those files through the exclusion filters in the policy. It is recommended that you exclude the
application database and log files from file system backups if you use the corresponding application agent to back up the
files.
In both cases, File System agent backups do not involve any database writer, regardless of whether or not the database and
log files are excluded. The backups do not interfere with the database backup chaining.
VM Direct limitations
The Microsoft application agent does not support the following items for VM Direct operations due to VMware restrictions and
feature limitations:
● Application-consistent quiescing for virtual machines with IDE disks.
● Dynamic disks on the virtual machine.
● Multiple virtual network (MVLAN) environment where the application-aware client is connected to the data network only.
NOTE: The Microsoft application agent supports an MVLAN environment where the application-aware client is
connected to both data and management networks. In this case, the PowerProtect Data Manager server must have
an additional non-default virtual network that is tagged against Data, not against Management.
● Read-only volumes mounted on the Microsoft SQL Server virtual machine.
● VMware encrypted virtual machines.
● VMware Fault Tolerant virtual machines.
● RDM storage.
CAUTION: If this process is not followed, you might not be able to restore assets that have been backed up.
Steps
1. Ensure that all replication DD network interfaces used by the Microsoft SQL Server virtual machines have a name and have
the Data network purpose selected.
NOTE: Including IPv4 or IPv6 in the interface names can make it easier to follow the remaining steps.
2. Assign all assets of IPv4 Microsoft SQL Server hosts and their databases to the names of one or more IPv4 replication DD
network interfaces.
3. Assign all assets of IPv6 Microsoft SQL Server hosts and their databases to the names of one or more IPv6 replication DD
network interfaces.
Prerequisites
Ensure that your environment meets the requirements for a new deployment or update of PowerProtect Data Manager.
Requirements:
NOTE: The most up-to-date software compatibility information for the PowerProtect Data Manager software and the
application agents is provided by the E-Lab Navigator.
● A list of hosts that write backups to DD systems is available.
For example, if the Microsoft SQL Server host was previously registered to PowerProtect Data Manager with Application
Direct during the Microsoft application agent installation, the protection type for that host may not be changed to VM
Direct, even if the Microsoft application agent is uninstalled.
NOTE:
For performing a backup of 100 databases on a Microsoft SQL Server host, it is recommended to use 32 GB of RAM and
the default stream count values of 4 for full and differential backups and 1 for log backups.
Application agents integrated NOTE: If both IPv4 and IPv6 are configured and the PowerProtect Data Manager FQDN
with PowerProtect Data is used, the agent uses IPv6 for network communication.
Manager:
● File System IPv4, IPv6, or both
● Microsoft Exchange Server IPv4 only or both IPv4 and IPv6
● Microsoft SQL Server IPv4, IPv6, or both
(Application Direct)
● Microsoft SQL Server (VM IPv4 only or IPv6 only
Direct) NOTE: Only the Microsoft SQL Server agent supports VM Direct.
Disaster recovery
Recovering a PowerProtect Data Manager server might result in a conflict with protection-policy configurations. For instance, if
the recovered server is configured to use only IPv4, a protection policy that is configured to use IPv6 cannot run.
Name resolution
Name resolution and reverse IP lookup must be configured to ensure the following:
● Fully qualified domain names of PowerProtect Data Manager, its components, and DD components resolve to a valid IPv4 or
IPv6 address.
● If both IPv4 and IPv6 addresses are used for DD, both addresses resolve to the same FQDN.
● All IPv4 and IPv6 addresses are valid and reachable.
● The FQDNs of application-agent hosts that use FQDN as their preferred host address resolve to a valid IPv4 or IPv6
address.
● Each application-agent host that uses FQDN as its preferred host address resolves the FQDN of PowerProtect Data
Manager to an IP address of the same protocol that it uses. For example, if a host uses IPv4, it resolves the FQDN of
PowerProtect Data Manager to an IPv4 address.
Server updates
IPv6 is only supported with new deployments of PowerProtect Data Manager 19.12 or later. Using IPv6 after updating from
PowerProtect Data Manager 19.11 or earlier is unsupported.
Encryption in-flight
PowerProtect Data Manager provides centralized management of encryption in-flight for supported workloads. Encryption
in-flight is supported for both centralized and self-service policies, where applicable.
You can ensure that backup and restore content is encrypted when read on the source, transmitted in encrypted form, and then
decrypted before it is saved on the destination. This prevents another party from intercepting private data.
PowerProtect Data Manager only supports encryption in-flight for File System, Kubernetes clusters, Microsoft SQL Server,
Microsoft Exchange Server, network-attached storage (NAS), PowerStore storage arrays, Oracle, SAP HANA, and VMware
virtual machine workloads. This is a global setting that is applicable to all supported workloads.
For File System, Microsoft Exchange Server, Oracle, SAP HANA, and NAS workloads, encryption in-flight is only supported for
Application Direct hosts. For File System agents, restore encryption is supported for image-level restore only. For Microsoft SQL
Server agents, restore encryption is supported for database-level restore only.
The PowerProtect Data Manager Administrator Guide and PowerProtect Data Manager Security Configuration Guide provide
more information about encryption in-flight, such as how to enable the feature and important considerations to understand
before enabling.
Steps
1. Design how to group the backups, based on the storage requirements and retention policies.
The account team can help with backup storage design.
2. Install PowerProtect DD Management Center.
PowerProtect Data Manager uses PowerProtect DD Management Center to connect to the DD systems. The DD
Management Center Installation and Administration Guide provides instructions.
NOTE: PowerProtect DD Management Center is required with a DDOS version earlier than 6.1.2. With DDOS version
6.1.2 or later, you can add and use a DD system directly without PowerProtect DD Management Center.
NOTE: After you create a centralized protection job, the first backup is a full backup.
9. Add Service Level Objectives to the protection policy to verify that the protected assets meet the Service Level Agreements
(SLAs).
The PowerProtect Data Manager Administrator Guide provides instructions.
Configuration is complete.
10. Monitor protection compliance in the PowerProtect Data Manager dashboard.
Steps
1. Install PowerProtect DD Management Center.
PowerProtect Data Manager uses PowerProtect DD Management Center to connect to the DD systems. The DD
Management Center Installation and Administration Guide provides instructions.
NOTE: PowerProtect DD Management Center is required with a DDOS version earlier than 6.1.2. With DDOS version
6.1.2 or later, you can add and use a DD system directly without PowerProtect DD Management Center.
5. Add new or approve pending agent requests in the PowerProtect Data Manager according to the instructions in the next
"Enabling" chapter.
6. After the approval of agent requests, PowerProtect Data Manager must run a discovery operation to discover the assets.
The PowerProtect Data Manager Administrator Guide provides information.
7. Add a protection policy for groups of assets that you want to back up.
You must add credentials to the database so that PowerProtect Data Manager can access the database and create backups.
The PowerProtect Data Manager Administrator Guide provides instructions.
NOTE: After you create a centralized protection job, the first backup is a full backup.
8. Add Service Level Objectives to the protection policy to verify that the protected assets meet the Service Level Agreements
(SLAs).
The PowerProtect Data Manager Administrator Guide provides instructions.
Configuration is complete.
Security configuration
A separate guide provides some server configuration tasks which are intended specifically for PowerProtect Data Manager
security administrators, whose role may be separate from the PowerProtect Data Manager host system administrator.
The PowerProtect Data Manager Security Configuration Guide provides detailed instructions for all security-related tasks,
including but not limited to:
● Port requirements for and between the following components:
○ PowerProtect Data Manager
○ Configured DD systems
○ VM Direct appliances (embedded and external)
○ Application-agent hosts
○ Web and REST API clients
○ Callhome (SupportAssist)
○ ESXi
○ vCenter
● Configuring identity providers
● Managing local and external user accounts
● Changing and resetting passwords
● Assigning users and groups to roles and associated privileges
● Managing credentials for local and remote components
● Creating resource groups to define scopes of authority
● Managing security certificates, where applicable
Role-based security
PowerProtect Data Manager provides predefined user roles that control access to areas of the user interface and to protected
operations. Some PowerProtect Data Manager functionality is reserved for particular roles and may not be accessible from
every user account.
By using the predefined roles, you can limit access to PowerProtect Data Manager and to backup data by applying the principle
of least privilege.
The PowerProtect Data Manager Security Configuration Guide provides more information about user roles, including the
associated privileges and the tasks that each role can perform.
The operational logs are deleted after 15 days by default. To override this default behavior and have the logs deleted
before 15 days, you can add the parameter setting purgeOperationalLogDays = <number_of_days> in the file
For VM Direct, the PowerProtect Data Manager export log for backup or restore must include the trace ID.
Steps
1. Add storage for DD Management Console or the external DD.
The PowerProtect Data Manager Administrator Guide provides information.
2. Install the Microsoft application agent on the Microsoft SQL Server host.
Install the Microsoft application agent with the wizard provides information.
3. Add or approve the Microsoft application agent in PowerProtect Data Manager.
Manage the Microsoft application agent provides information.
4. Discover and add the credentials for the Microsoft SQL Server application host.
Discover a Microsoft SQL Server application host provides information.
5. Create a protection policy to protect the Microsoft SQL Server host.
Protection policies for Microsoft SQL Server database protection provides information.
NOTE: You cannot perform a backup to a secondary DD device. You can only restore from a secondary DD device.
NOTE: You cannot perform a backup to a secondary DD device. You can only restore from a secondary DD device.
● In the PowerProtect Data Manager UI, click and select Downloads from the System Settings menu. Under
Microsoft SQL Server, select Download Agent to download the Microsoft application agent download package,
msappagent1914_win_x64.zip, to the Windows Microsoft SQL Server host.
● Log in to the Microsoft SQL Server host as an administrator to install the Microsoft application agent.
● To deploy the Common Language Runtime (CLR) assembly, ensure that you have administrator access to the Microsoft SQL
Server host and master database. If the Microsoft SQL Server host is running in a domain, ensure that you have access as a
Domain administrator.
● Ensure that the required permissions are set up for the discovery of Microsoft SQL Server instances and databases by the
PowerProtect agent service. Required privileges for Application Direct backup and recovery provide more information.
● Ensure that the sysadmin privilege is set, as required to integrate the Microsoft SQL Server host with the PowerProtect
Data Manager and facilitate the discovery of assets with the correct size. Setting the sysadmin privilege for Microsoft SQL
Server hosts provides more information.
NOTE:
Install the same version of Microsoft application agent on each node in an AAG or FCI cluster that is registered to
PowerProtect Data Manager.
Starting with Microsoft application agent 19.14, migration of the Microsoft application agent from an Application Direct
configuration to a VM Direct configuration or vice versa is not supported. During installation, if you try to migrate from
either type of configuration to the other, an error message is displayed about an invalid data path selection.
Steps
1. In the PowerProtect Data Manager UI:
a. Click , and then select Downloads from the System Settings menu.
b. Under Microsoft SQL Server, select Download Agent.
The Microsoft application agent download package, msappagent1914_win_x64.zip, is downloaded.
c. Upload the package to the Microsoft SQL Server host on Windows.
NOTE: To verify the authenticity and integrity of the downloaded package, follow the instructions in the PowerProtect
Data Manager Security Configuration Guide.
The Microsoft application agent supports only the Application Direct and VM Direct workflows.
Ensure that the Microsoft SQL Server host was not previously registered to PowerProtect Data Manager with
the VM Direct option or as part of a virtual machine application-aware protection policy.
For example, if the Microsoft SQL Server host was previously registered to PowerProtect Data Manager with VM
Direct during the Microsoft application agent installation, the protection type for that host may not be changed
to Application Direct, even if the Microsoft application agent is uninstalled.
○ To install the SQL Server Management Studio (SSMS) plug-in user interface, select SSMS Plug-in.
You can use the SSMS plug-in to perform self-service Microsoft SQL Server backup and restore operations.
○ To enable table-level restores, select ItemPoint Granular Recovery.
This option installs ItemPoint for Microsoft SQL Server, which you can use to perform table-level restores.
○ Specify the PowerProtect Data Manager appliance details by performing the following steps:
a. Select PowerProtect Data Manager Registration at the top of the group box.
NOTE: Selecting an FQDN ensures continued communication between PowerProtect Data Manager and the
application agent host when the IP address changes. Using an FQDN is recommended for DHCP environments
and other environments where static IP addresses can change. If the preferred address is an FQDN, ensure
that lookup is enabled in the PowerProtect Data Manager UI. If lookup is not enabled, the preferred address
defaults to an IP address.
If the Microsoft application agent is configured to use the VM Direct data path, the use of an FQDN is
unsupported, and the preferred host address can only be an IPv4 address or an IPv6 address.
e. Select Port and specify the port number from the supported port ranges 7000 to 7009 and 7012 to 7020.
The specified port is used for communication between the Microsoft application agent and PowerProtect Data
Manager.
NOTE: If you do not specify a port number, the default port 7000 is used as the communications port. The
ports 7010 and 7011 are used by the agent service message bus.
● To install the VM Direct Engine onto a virtual machine that is not part of a protection policy, so as to recover application-
aware virtual machine backups from a differential virtual machine, select the following options as required:
NOTE:
By default, when a Microsoft SQL Server virtual machine is added to a virtual machine application-aware protection
policy in PowerProtect Data Manager, the Microsoft application agent and ItemPoint are silently installed on the
protected virtual machine. Before you restore a VM Direct Engine backup to an alternate virtual machine that is not
part of a protection policy, you must install the Microsoft application agent on the target virtual machine.
As part of centralized restores, PowerProtect Data Manager also has centralized management for installing the
Microsoft application agent on the virtual machine application-aware host that acts as a recovery-only host.
○ Select VM Direct in the Data Paths group box.
NOTE: The PowerProtect Data Manager appliance and local network configuration options are disabled when
you select the VM Direct option. PowerProtect Data Manager does not support the selection of a non-
default communications port for Microsoft SQL Server application-aware (VM Direct) operations with Microsoft
application agent.
Ensure that the Microsoft SQL Server host was not previously registered to PowerProtect Data Manager with the
Application Direct option. For example, if the Microsoft SQL Server host was previously registered to PowerProtect
c. In the User name and Password fields respectively, type the username and the password of the user who has the
privileges to deploy the CLR assembly.
d. Click Deploy.
e. Click Install.
f. After the deployment is complete, click Next.
11. On the Complete the Setup page, click Finish.
NOTE: The ItemPoint software cannot be installed silently. To install ItemPoint for granular-level recovery, use the
Microsoft application agent installation wizard.
The following table describes the required silent installation command options.
EnableSSMS={0|1} Specifies whether to install the SSMS plug-in. The default value is 1, which
installs the SSMS plug-in.
EnableVMDirect={0|1} Installs VM Direct when you specify the value 1. The default value is 0,
which does not install VM Direct.
EnableProtectPoint={0|1} Installs the Storage Direct hardware provider when you specify the value 1.
The default value is 0, which does not install Storage Direct.
EnableSSMSProtectPoint={0|1} Installs the Storage Direct hardware provider and the SSMS plug-in for
Storage Direct when you specify the value 1. The default value is 0, which
does not install these options.
InstallPPDMAgentCheckBox={0|1} Integrates the Microsoft application agent with the PowerProtect Data
Manager server during installation when you specify the value 1. The
default value is 0.
NOTE: Installation of the PowerProtect agent requires the port
specified by ClientPort (port 7000 by default) to be open
bidirectionally. Ensure that you use the EnableFirewallRules=1
command option setting to open the Windows firewall. The
ClientPort port or default port 7000 is required to enable
communication between the Microsoft application agent and the
PowerProtect Data Manager appliance.
EnableFirewallRules={0|1} Specifies to configure the Windows firewall when you specify the value
1. The default value is 0. The Windows firewall enables the bidirectional
inbound and outbound connections for the agent service over the port
specified by ClientPort, which enables the communication between the
Microsoft application agent and PowerProtect Data Manager.
PPDMHostname="<hostname/IP>" Specifies the hostname or IP address of the PowerProtect Data Manager
server where the backup information is reported.
EnableCLR={0|1} Specifies whether to deploy CLR. By default, this option is enabled and has
the value 1, which deploys CLR.
ClientPort=<port_number> Specifies the port on Microsoft SQL Server to be used for communication
between the Microsoft application agent and PowerProtect Data Manager.
The port number must be from the port ranges 7000 to 7009 and 7012 to
7020.
NOTE: If you do not specify a port number, the default port 7000 is
used as the communications port. The ports 7010 and 7011 are used by
the agent service message bus.
PreferredAddress="<agent_hostname/IP>" Specifies the address of the application agent host to be used for
communication between the Microsoft application agent and PowerProtect
● The following command installs the Microsoft application agent with VM Direct:
● The following command installs the Microsoft application agent with the Application Direct SSMS plug-in:
● The following command installs the Microsoft application agent without deploying CLR:
● The following command installs the Microsoft application agent with Storage Direct only:
● The following command installs the Microsoft application agent with Storage Direct and the SSMS plug-in:
● The following command installs the Microsoft application agent with PowerProtect Data Manager:
● The following command installs the Microsoft application agent (including the agent service) to a custom location that is not
on the system drive:
The same version of Microsoft application agent must be installed on each node in an AAG or FCI cluster that is registered
to PowerProtect Data Manager.
During an update from an earlier version, first update the PowerProtect Data Manager to version 19.14 as needed and then
proceed to update the Microsoft application agent on the Microsoft SQL Server host.
If a table-level restore was performed since the last reboot of the host, Microsoft application agent requests a reboot
during an uninstall operation. The Microsoft application agent installs and uses the Eldos CBFS driver for table-level
restores. The Eldos CBFS driver is loaded during the table-level restore operation. Microsoft requires the driver to be
unloaded before an uninstall operation.
1. Launch emcmsappagent-19.14.0.0.exe. The installation wizard appears.
2. On the Welcome Wizard page, select I agree to the license term and agreements, and then click Next.
3. By default, the PowerProtect Data Manager option is selected and the IP address is displayed. If these components were
installed in the previous version, SSMS Plug-in and ItemPoint Granular Recovery are also selected.
Whether the PowerProtect Data Manager option was previously selected or you select the option during this update,
you can change the firewall rule setting by the Configure the Windows Firewall option. Select the option to enable
the PowerProtect Data Manager communications port by creating the Windows firewall rule that grants the agent service
inbound and outbound access.
NOTE:
The Microsoft application agent requires a selected port on Microsoft SQL Server (selected from port ranges 7000 to
7009 and 7012 to 7020) and port 8443 on PowerProtect Data Manager to be open bidirectionally. These ports enable
communication between the Microsoft application agent and PowerProtect Data Manager. If you do not select a port
from the port ranges, the default port 7000 is used as the communications port.
If the File System agent is already installed and firewall rules are configured, then the Configure the Windows Firewall
option is selected by default but disabled for the Microsoft application agent.
Click Upgrade.
4. On the CLR assembly deployment wizard page, perform the following steps:
NOTE: When you deploy the CLR assembly during the Microsoft application agent update, the deployment creates a
Microsoft SQL Server login with the name ddbmaCLRExtLogin. The CLR procedures run under this account.
a. Select or clear the Microsoft SQL Server instances on which you want to deploy the CLR assembly. By default, all the
Microsoft SQL Server instances are selected.
b. To deploy CLR assembly, select one of the following authentication options:
● Current Windows User
● Use Windows Authentication
● Use Database Authentication
c. In the User name and Password fields, respectively, type the username and password of the user who has the
privileges to deploy the CLR assembly.
d. Click Deploy.
e. Click Install.
f. After the deployment is completed, click Next.
5. On the Complete the Setup page, click Finish.
Prerequisites
The precheck and update operations are only available for registered clients and application agent versions 19.10 and later.
Steps
To perform a precheck:
1. From the left navigation pane in the PowerProtect Data Manager UI, select Infrastructure > Application Agents.
The Application Agents window opens.
2. Select the check box next to each application agent host to be included in the precheck.
When the application agent versions on the selected hosts are 19.10 or later and the versions are earlier than the current
PowerProtect Data Manager version, the More Actions button becomes enabled.
3. Click More Actions > Precheck Update.
The Precheck Update window opens.
4. On the Schedule Precheck page:
a. In the Name text box, type a name for the precheck operation.
b. Select one of the following options:
● Precheck now—Performs the precheck immediately.
● Precheck later—Schedules the precheck to occur at a later time. If you select this option, specify the date and time
to perform the precheck.
c. Click Next.
5. On the Summary page, review the information for the selected application agent hosts, and then click OK.
The precheck verifies that the application agent hosts meet the minimum update requirements, including system memory,
disk space, and version requirements. If the precheck passes, PowerProtect Data Manager downloads the update software
package on each application agent host.
You can monitor the progress of the precheck operation in the System Jobs window.
To perform an update:
6. From the left navigation pane in the PowerProtect Data Manager UI, select Infrastructure > Application Agents.
The Application Agents window opens.
7. Select the check box next to each application agent host to be included in the update.
NOTE: In a cluster environment, select each host of the cluster; otherwise, any unselected hosts are automatically
selected for the update. Ensure that each host of a cluster has the same application agent version.
When the application agent versions on the selected hosts are 19.10 or later and the versions are earlier than the current
PowerProtect Data Manager version, the More Actions button becomes enabled.
8. Click More Actions > Configure Update.
The Configure Update window opens.
9. On the Schedule Updates page:
a. In the Name text box, type a name for the update operation.
b. Select one of the following options:
● Update now—Performs the update immediately.
● Update later—Schedules the update to occur at a later time. If you select this option, specify the date and time to
perform the update.
NOTE: A reboot is not required after the completion of the software update.
./pushupdate.sh -r -n
Steps
1. Launch emcmsappagent-19.14.0.0.exe.
2. On the Install Modification page, select Remove, and then click Next.
3. On the Configure Uninstallation Options page, click Remove.
4. On the Removing the CLR assembly page:
a. Select the required Microsoft SQL Server instances to remove the CLR assembly.
By default, all the Microsoft SQL Server instances are selected.
b. Select one of the following options to remove the CLR assembly:
● Use Windows Authentication
● Use Database Authentication
c. In the User name and Password fields, type the credentials for the user who has the privileges to remove CLR
assembly.
d. Click Remove.
e. After the removal is completed, click Next.
5. On the Complete the Setup page, click Finish.
where:
● -q indicates a silent uninstallation.
● UninstallAgentService=1 is mandatory for a silent uninstallation. If this option is not added in the uninstall command,
then the agent service still exists after the Microsoft application agent is uninstalled.
● -log specifies the path where the log file must be created or saved.
NOTE: The log file displays the status of the uninstallation. For a silent uninstallation, you must use the -log
<log_file_path> option.
Consider the following example command to silently uninstall the Microsoft application agent:
USE <database_name>;
GO
EXEC sp_addextendedproperty
@name = N'ppdmDiffStripes',
@value = '4';
EXEC sp_addextendedproperty
@name = N'ppdmFullStripes',
@value = '8';
EXEC sp_addextendedproperty
@name = N'ppdmLogStripes',
@value = '2';
Steps
1. Select Infrastructure > Application Agents.
The Application Agents window appears.
NOTE: If the PowerProtect agent service could register during the installation, the Microsoft SQL Server host is already
listed and does not need to be added.
"ppdm.dell.com"
"ppdm2.dell.com"
Next steps
Discover a Microsoft SQL Server application host describes how to set the host credentials before you schedule a backup.
NOTE: Using an FQDN is only available as of version 19.14 of the application agent.
It is recommended to use an FQDN as the preferred host address in DHCP environments and other environments where static
IP addresses can change. When DHCP is used instead of an IP address and the IP address of the host changes, the following
benefits occur:
● Communication between PowerProtect Data Manager and the host is uninterrupted.
● Backup and restore operations succeed.
● Reregistration of the application agent is not required.
If the Microsoft application agent is configured to use the VM Direct data path, the use of an FQDN is unsupported, and the
preferred host address can only be an IPv4 address or an IPv6 address.
Steps
1. From the left navigation pane, select Infrastructure > Application Agents.
2. Select the entry for the host.
3. Click More Actions and select Set Preferred Address.
4. From the Preferred Address drop-down, select the preferred address.
NOTE: DNS name resolution must be enabled to select a fully qualified domain name. If it is not enabled, enable it by
selecting Infrastructure > Application Agents and clicking Configure DNS Name Resolution. After it is enabled,
repeat these steps.
At the end of the Agent update status row, you can click to view information about scheduled updates. The Schedules
table appears and displays the following information:
● Update/Precheck Name
● Date and Time
● Schedule Status
● Host Count
● Actions
If you do not specify a port number, the default port 7000 is used as the communications port. The ports 7010 and 7011 are
used by the agent service message bus.
Port configuration is not supported for a silent update. A silent update uses the previously configured port number, and
disregards any ClientPort option setting. Port configuration is supported for an update only through the Microsoft
application agent installation wizard.
For a AAG configuration, it is recommended to use the same port number for all the nodes in the AAG.
After the port configuration, the Microsoft application agent operations might display the following messages in certain cases:
● When the specified port is invalid (not in the supported port range):
In a coexistence scenario, the Microsoft application agent is installed as the primary agent with a specified port number, and
the File System agent is installed as a secondary agent. The File System agent installation can use the same port number as
specified for the primary agent. If the port number of the secondary agent is then changed for some reason, the updated port
number is used for both agents. The same results occur when the File System agent is installed as the primary agent and the
Microsoft application agent is installed as the secondary agent. The secondary agent installation can use the same port number
as specified for the primary agent.
Importing Microsoft SQL Server backup copies to PowerProtect Data Manager is supported only from backups that are
performed with Microsoft application agent 4.7 and later.
Retention lock is not supported for discovered existing backups in PowerProtect Data Manager.
Importing is not supported for DD Boost-over-FC backups and 32-bit FCI instance backups.
With the importing capability, PowerProtect provides the following centralized features:
● Visibility of both existing backups and any new self-service or PowerProtect Data Manager policy-driven backups of
imported assets.
● Automatic configuration of target protection storage based on the PowerProtect Data Manager protection policies that are
used for your database.
● All the other functionality that is provided for PowerProtect Data Manager protection policies.
When you create a protection policy, the PowerProtect Data Manager software can either create or reuse a storage unit on the
specified DD system backup host, subject to limitations. All subsequent backups of assets in that protection policy go to this
storage unit. This implementation uses scripts (T-SQL or CLI) or the Microsoft application agent SSMS plug-in UI to override
the storage unit information that is provided in any running backup with the storage unit information from PowerProtect Data
Manager.
Steps
1. Update the Microsoft application agent on the Microsoft SQL Server host.
Update the Microsoft application agent provides information.
2. Run the backup discovery tool, AgentBackupDiscovery.exe, to enable management of existing Microsoft application
agent backups with PowerProtect Data Manager.
Using the backup discovery tool for PowerProtect Data Manager management of existing backups provides information.
NOTE: This step enables the discovery of old backup copies that the Microsoft application agent created during
self-service backups with stand-alone deployments.
3. Register and approve the Microsoft application agent in PowerProtect Data Manager.
Manage the Microsoft application agent provides information.
After a few minutes of approving the Microsoft SQL Server host, older backup copies are discovered. Depending on the
number of backups, the discovery and subsequent visibility of the backups in PowerProtect Data Manager can take some
time. The retention time of the discovered existing backup copies equals the retention time that was set in the protection
policy plus 14 days, rounded off to the next day.
4. Discover and add the credentials for the Microsoft SQL Server application host.
Discover a Microsoft SQL Server application host provides information.
5. Create a protection policy to protect the Microsoft SQL Server host. For importing assets, only a subset of databases can be
imported. It is not mandatory for all the databases on the host to be imported.
Protection policies for Microsoft SQL Server database protection provides information.
The first backup after importing must be a full backup:
● The first centralized backup is automatically promoted to a full backup.
● The first self-service backup is automatically performed as a full backup.
NOTE: You cannot perform a backup to a secondary DD system device. You can restore only from a secondary DD
system device.
6. Perform a self-service backup of the Microsoft SQL Server databases. Imported assets can be part of either a centralized or
self-service protection policy.
Performing self-service Microsoft SQL Server database backups provides information.
Importing Microsoft SQL Server backup copies to PowerProtect Data Manager is supported only from backups
that are performed with Microsoft application agent 4.7 and later.
Retention lock is not supported for discovered existing backups in PowerProtect Data Manager.
You cannot use the backup discovery tool to discover existing DD Boost-over-FC backups or 32-bit FCI instance
backups.
If you delete a Microsoft SQL Server database before importing but the database backup copies exist on the DD
system, then after importing, PowerProtect Data Manager will not manage those backup copies.
After you run the backup discovery tool, you can continue to use the existing backup scripts to perform the
Microsoft application agent backups. Ensure that all the databases backed up with a particular script are added
to a single protection policy. By default, the PowerProtect Data Manager overrides the DD details by using
the storage unit from the protection policy. If you do not want the DD details to be overridden, use the -a
"SKIP_DD_OVERRIDE=TRUE" option in the backup scripts.
To discover the existing backups by using the backup discovery tool, perform the following steps.
1. In the Microsoft application agent installation directory, C:\Program Files\DPSAPPS\MSAPPAGENT\bin, run
AgentBackupDiscovery.exe as the administrator.
The Discovery of existing backups dialog box appears.
NOTE: If the program does not start but displays the following message, an ongoing backup discovery process is
running, as invoked by the PowerProtect Data Manager:
When the discovery process is complete, you can run the backup discovery tool.
2. In the DD system list in the dialog box, select the appropriate DD IP address or hostname, storage unit, and username for the
existing backups that you want the PowerProtect Data Manager software to discover.
NOTE: Select only one storage unit at a time. After discovery is complete for the storage unit, you can run the backup
discovery tool again to discover the backups of another storage unit.
3. In the Client hostname field, you can change the client hostname from the default local hostname as needed.
To enable the backup discovery for an AAG or FCI, you must specify the appropriate client hostname:
● If the host is part of an AAG, specify the Windows cluster name.
● If the host is part of a Microsoft SQL Server virtual server or FCI, specify the virtual server name.
4. In the Backup discovery time period field, select the number of months for the time period, as the time in the past when
the backups were performed. You can select 1 month, 2 months, or 3 months for the time period.
5. In the Application field, select SQL as the application.
6. After you have specified the required field values, click Generate.
When the PowerProtect Data Manager software completes the generation of the backup metadata or breadcrumbs, the
following message appears in the dialog box. Depending on the number of old backups, the generation of breadcrumbs can
take some time:
The retention time for the discovered backup is the same as the expiration time set when the backup was taken.
NOTE: After you set disk.EnableUUID to TRUE, ensure that you reboot the virtual machine.
● The virtual machine must use SCSI disks only, and the number of available SCSI slots must at least match the number
of disks. For example, a virtual machine with 7 disks only requires one SCSI controller, but a virtual machine with 8 disks
requires 2 SCSI controllers.
● The VM Direct Engine requires live network connectivity to the ESXi where the targeted Microsoft SQL Server virtual
machine resides.
Windows permissions required for the domain user or local user for VM Direct
workflow
With vmtools version 11.x or later installed on the VM system, you can configure the protection policies and perform the VM
Direct backup and restore operations by using domain user or local user credentials with enabled UAC.
To enable the support for a domain user or local user with enabled UAC, make the user a member of the "Administrators" Active
Directory group in Computer Management > System Tools > Local Users and Groups.
The user can be an Administrator, a domain user with local Administrator privileges, or a local user with local Administrator
privileges.
NOTE: UAC is enabled by default on a Windows VM system. If you need to enable UAC, complete the following steps:
1. Select Control Panel > User Accounts > User Accounts > Change User Account Control Settings, and move the
slider to select Notify me only when apps try to make changes to my computer.
2. Select Local Security Policy > Local Policies > Security Options > User Account Control: Run all
administrators in Admin Approval Mode, and select Enabled on the Local Security Setting tab.
3. Reboot the VM system.
When you configure a protection policy, edit the policy and select the domain user or local user.
NOTE: To use the SSMS plug-in as the local user to perform a self-service restore of a VM Direct backup, you must launch
the SSMS plug-in by selecting Run as administrator.
Steps
1. From the PowerProtect Data Manager user interface, select Infrastructure > Asset Sources, and then click + to reveal
the New Asset Source tab.
2. In the pane for the asset source that you want to add, click Enable Source.
The Asset Sources window updates to display a tab for the new asset source.
Steps
1. From the PowerProtect Data Manager UI, select Infrastructure > Asset Sources, and then select the tab of the asset
source that you want to disable.
If no host registration is detected, a red Disable button appears.
2. Click Disable.
Results
PowerProtect Data Manager removes the tab for this asset source.
Steps
1. From the PowerProtect Data Manager UI, select Infrastructure > Asset Sources, and then select the tab for the type of
asset source that you want to delete.
2. Select the asset source name in the asset source list, and then click Delete.
3. At the warning prompt that appears, click Continue.
The asset source is deleted from the list.
Results
PowerProtect Data Manager removes the specified asset source in the Asset Sources window.
Any associated assets that are protected by the protection policy are removed from the protection policy and their status is
changed to deleted. These assets are removed automatically as part of daily PowerProtect Data Manager cleanup after all
associated backup copies have been deleted. These assets can also be removed manually. The PowerProtect Data Manager
Administrator Guide provides details on how to remove assets from PowerProtect Data Manager.
The copies of assets from the asset source are retained (not deleted). You can delete the copies from the copies page, if
required.
Steps
1. Remove the assets from the protection policies:
a. From the left navigation pane in the PowerProtect Data Manager UI, select Protection > Protection Policies.
The Protection Policies window appears.
b. Select the protection policy that you want to modify, and click Edit.
The Edit Policy window opens on the Summary page.
c. In the Assets row, click Edit.
The Assets page appears.
d. To remove the assets from the protection policy, select the assets and click Remove.
The Assets page is updated with the changes.
2. Delete the Microsoft SQL Server host by deleting the asset source according to Delete an asset source. This procedure
unregisters the host from PowerProtect Data Manager and removes the host assets after all the asset copies have expired.
The assets and asset source of the original host are still in the "Deleted" state, unless the asset copies have expired and
garbage collection has run.
NOTE: If you unregister and reregister the Microsoft application agent instead of completing this deletion step, then
duplicated asset names might appear in the PowerProtect Data Manager UI.
3. To delete the asset copies, follow the instructions in Delete backup copies.
Steps
1. Go to Control Panel > Programs > Programs and Features.
2. Use the Change option for the Microsoft application agent to reinstall the Microsoft application agent.
3. In the installation wizard, select the PowerProtect Data Manager option.
Results
After the installation completes, the Microsoft application agent is reregistered to the PowerProtect Data Manager server.
NOTE: This procedure is only supported for a host with application agent release 19.11 or later installed.
Complete the following steps to ensure that the database OS account on each host has the sysadmin privilege.
1. Log in to each Microsoft SQL Server instance, open the SQL Server Management Studio (SSMS), and select View > Object
Explorer.
2. In the Object Explorer, expand Security and then expand Logins.
3. Right-click the database OS account name, and then select Properties.
4. In the Login properties window, select Server Roles.
5. Select sysadmin under Server roles.
6. Click OK.
The Login properties window closes.
7. In the PowerProtect Data Manager UI, select Infrastructure > Asset Sources, and then select the SQL tab.
8. Select the required hostname in the list, and then click Edit Credentials.
9. On the Set Credential page, specify the database OS credentials and select the option Use the credentials for both
asset discovery and backup.
NOTE: On the Set Credential page, the option Use the credentials for both asset discovery and backup does not
appear when the database OS credentials setting is None or the application agent release is earlier than 19.11.
10. Click Save.
Steps
1. Select Infrastructure > Asset Sources.
The Asset Sources window appears.
7. Click Yes.
Results
If the application host is properly configured and discovery is successful, the database assets can now be added to a
PowerProtect Data Manager protection policy.
Replication objective
A replication objective contains a replication target and one or more schedules.
The replication target determines where and how PowerProtect Data Manager stores the replicas:
● Which protection storage system and storage unit to use.
● Which network interface is necessary to reach the selected protection storage system.
● Whether to enable retention locking that protects against accidental deletion or tampering.
The schedules determine what and when PowerProtect Data Manager replicates:
● The types of backups to replicate.
● When replication should start.
● How often to replicate.
● How long to retain each replica.
● The times when PowerProtect Data Manager can and cannot replicate.
Replication triggers
PowerProtect Data Manager orchestrates protection policy replication objectives independently of the primary backup. When
you add a replication objective to a policy, select one of the available triggers.
The default replication trigger is a schedule window that you define by setting a recurrence period plus start and end times.
Replication occurs during the defined window. For example, every day between 8 p.m. and 12 a.m.
You can also trigger replication immediately after the completion of the associated primary backup, whether scheduled or
manual. At the start of the primary backup, PowerProtect Data Manager generates an associated replication job that remains
queued until the end of the protection job. If the backup fails or completes with exception, the associated replication job is
skipped. Restarting the protection job queues the associated replication job again.
When you create a replication objective, you can specify either scheduled replication or replication after backup completion,
which is applicable to both centralized and self-service protection policies.
NOTE: For replication after backup completion, it is recommended that you update the application agents to the latest
version.
Depending on the type of backup, the following versions are required to ensure that replication occurs immediately after the
backups complete:
● For self-service primary backups, update all application agents to PowerProtect Data Manager version 19.12 or later.
● For centralized primary backups, update all application agents to PowerProtect Data Manager version 19.11 or later.
If you want to replicate only specific backups, perform a manual replication of these backups in advance.
Using a schedule can help you manage network traffic by replicating during off-peak hours. However, for larger backup sets, the
primary backup may not finish before the start of the replication schedule, which creates a replication backlog. Replication after
backup completion prevents a replication backlog from forming.
To prevent data loss, the replication after backup completion trigger replicates new backups from the primary objective and any
outstanding backups that have not yet replicated.
The backup of this asset completed successfully but the copy metadata information has
not yet been discovered by PowerProtect Data Manager. If the 'Replicate immediately upon
backup completion' option is enabled for this protection policy, the replication job
for the copy might appear in 'Unknown' or 'Cancel' state. Once the copy metadata is
discovered by PowerProtect Data Manager, the copy will be replicated.
Review the backup copy details in the View Copies pane of the PowerProtect Data Manager
UI Infrastructure > Assets window to determine when the discovery is complete.
If you see this message, the replication backup is not immediately available.
Once you save changes for an enabled or disabled policy, most changes take effect immediately. For a disabled policy's
primary backup schedules, however, the changes do not take effect until you reenable the policy, since these schedules do
not run in Disabled state.
Notes
● For each database that you add as an asset in a protection policy, ensure that the database has only one hostname. A single
database must not have more than one hostname.
● If a database is protected in an Always On availability group, you cannot configure stand-alone backups of that database in a
protection policy group.
● You can only protect an asset with one policy at a time. Assets can move between protection policies, depending on the
protection rule priorities. Protection rules do not automatically move assets that were manually added to a policy to a
different policy.
● When creating a policy, limit the number of database assets within the policy to under 500 and stagger the start time of
replication policies. These actions prevent potential replication failures.
● Before scheduling weekly, monthly, or yearly backups, set the PowerProtect Data Manager time zone to the local time zone.
Otherwise, the backup still runs but is triggered based on the PowerProtect Data Manager time zone.
● Policy-level credentials are mandatory. Credentials that you set at the asset level and host level take precedence over the
credentials that you set at the protection policy level. Asset-level credentials have the highest precedence.
● For database backups, PowerProtect Data Manager chains the dependent backups together. For example, the incremental
or transaction log backups are chained to their base full backup. The backups do not expire until the last backup in the chain
expires. As a result, all incremental and transaction log backups are recoverable until they have all expired.
● When a new asset is added to a protection policy, the asset is not protected until the next full backup runs, whether or not
the asset is added within the backup schedule window. To immediately start protecting the asset, run a manual full backup of
the entire policy from the policy page or the newly added asset from the assets page.
Initial configuration
● Enable the Microsoft SQL database asset source.
● Review the authentication requirements for a Microsoft SQL database.
● Add any required Microsoft SQL database credentials.
● Set the sysadmin privilege for the Microsoft SQL database hosts.
● Register the application hosts with PowerProtect Data Manager.
● Perform a discovery of the application hosts.
● Where applicable, configure any necessary Service Level Agreements (SLAs). The PowerProtect Data Manager
Administrator Guide provides instructions.
Objectives
● For replication after backup completion, PowerProtect Data Manager 19.12 or later and application agents 19.12 or later are
required. It is recommended that you update the application agents to the latest version.
● To move a backup or replica to Cloud Tier, the corresponding objectives must have a retention time of 14 days or more.
Storage
● Add protection storage.
The PowerProtect Data Manager Administrator Guide provides more information about working with storage units, such as
the relationships between storage units and policies, and applicable limitations.
● Before you add a replication objective, add remote protection storage for the replication target.
● Before you add a Cloud Tier objective, PowerProtect Data Manager requires the discovery of protection storage with a
configured Cloud unit.
NOTE: PowerProtect Data Manager does not support the automatic retention lock (ARL) setting on the DD system. The
option to create a storage unit during protection policy configuration does not support compliance mode retention locking,
only governance mode. To use compliance mode retention locking, create and configure a storage unit before you configure
an associated protection policy. If you enable retention locking and select a storage unit where the retention lock mode
Networking
If applicable, complete all of the virtual network configuration tasks before you assign any virtual networks to the protection
policy. The PowerProtect Data Manager Administrator Guide provides more information.
NOTE: In some situations, a full backup might be performed even though a synthetic-full backup was scheduled. Possible
reasons for a full backup include the following:
● There is no existing full backup.
● The size of a volume has changed.
● There has been a file path change.
● The asset host has been rebooted.
You can increase the backup frequency of a protection policy by scheduling more full or synthetic-full backups with different
retention times to meet your requirements.
Steps
1. From the left navigation pane, select Protection > Protection Policies.
The Protection Policies window appears.
2. In the Protection Policies window, click Add.
The Add Policy wizard appears.
3. On the Type page, specify the following fields, and then click Next:
● Name—Type a descriptive name for the protection policy.
● Description—Type a description for the policy.
● Type—Select Microsoft SQL Server.
Results
The wizard moves to the Purpose page. Continue to Select a protection policy purpose.
Steps
1. On the Purpose page, select one of the following options to indicate the purpose of the new protection policy group, and
then click Next:
● Centralized Protection—PowerProtect Data Manager manages the complete protection life cycle. The backup trigger
is part of the protection policy.
● Self-Service Protection—The local application on the host handles backing up data and provides backup triggers. The
local application passes backup data to PowerProtect Data Manager, which manages the rest of the protection life cycle.
● Exclusion—Marks the specified assets as intentionally exempt from data protection operations. Otherwise, assets
that are not assigned to any protection policy are reported as unprotected. PowerProtect Data Manager restricts the
specified assets from being assigned to other protection policies.
2. If you selected Centralized Protection, click Set Credentials to specify new policy-level credentials or select existing
credentials from the list.
The supported syntax for credentials is <user>@<host> or <user>@<domain>. The syntax <host>\<user> or
<domain>\<user> is not supported.
Results
The wizard moves to the Assets page. Continue to Select protection policy assets.
● List view ( )—This view uses a table display that enables you to see all unprotected assets within a table, and then select
individual unprotected assets that you want to include in the protection policy.
● Hierarchical view ( )—This view uses a tree view that shows the hierarchical relationships of the Microsoft SQL Server
hosts, their application servers or instances (including Failover Cluster Instances (FCIs)), stand-alone database assets, and
any Always On availability groups (AAGs) with their database assets.
For FCIs and AAGs, when you select the node of one host, the same selection automatically applies to the other hosts in
the cluster.
The hierarchical view is supported only for an Application Direct protection policy, not an application-aware protection
policy.
The hierarchical view is also available on the following pages in the PowerProtect Data Manager UI:
When you select a host or instance within the hierarchical view, the and icons appear on the container line. If a selected
instance is the only instance on a host, the icons appear on the host line above the instance, not on the instance line.
● Dynamic Protection ( )—Dynamic protection is enabled by default. When dynamic protection is enabled, a dynamic
protection rule is automatically created to ensure that all the selected assets within the selected host or instance container
are dynamically protected by the protection policy. PowerProtect Data Manager manages the protection rule. The rule is
updated automatically when you edit the policy and make changes to the container selections, or when assets are moved
into or out of a selected container.
With dynamic protection, any new databases or assets that you add to the instance or AAG or container after the policy
is created or edited will be automatically added to the protection policy. Any databases or assets that you remove from
the instance or AAG or container are also removed from the policy. When any selection overlap occurs between different
policies, the UI displays the overlaps and helps you to resolve the asset assignment conflicts by adjusting the protection
rules' priority.
To disable the dynamic protection for a container, click and then click Disable in the displayed text box. When the
dynamic protection is disabled, the protection policy does not dynamically protect the selected container and its objects. As
a result, all the selected objects within the container become static selections that are not automatically protected by the
policy.
After you create or edit a protection policy that has dynamic protection, you can select Protection > Protection Rules to
see the protection rule details for the protection policy, including the priority of the protection rule. Dynamic protection rules
apply only at the container level.
● AAG Selection ( )—This icon appears when the selected host or instance includes one or more AAGs. By default, the icon
is enabled and all the AAGs within the host or instance are selected. When you want to exclude all the contained AAGs from
the protection policy, click and then click Exclude in the displayed text box.
In the hierarchical view, you might see in the Protection Policy column, next to a selected host, instance, database, or AAG
to indicate that one of the following issues exists. Hover over to see the issue description:
● When the Microsoft application agent version is earlier than 19.9, an AAG folder might display an incomplete hierarchical
view of the data. To obtain a complete view of the data, update the Microsoft application agent. Version 19.9 is not
supported.
● An asset assignment conflict exists because the host, instance, or contained object is already protected by another
protection policy. After you click Next on the Assets page and click OK on a notification page, the Check conflicts
due to rule priority page appears, where you can adjust the protection rule priorities and resolve the conflicts.
Steps
1. On the Assets page, select the unprotected assets that you want to add to the backup of this protection policy group.
The window enables you to filter by asset name to locate the required assets.
2. Click Next.
If the Assets page included any asset assignment conflicts with other protection policies, a notification page appears that
describes the assets that are already assigned to other protection policies:
● To continue, click OK.
Results
For exclusion policies, the wizard moves to the Summary page. Continue to Review the protection policy summary.
For all other policy purposes, the wizard moves to the Objectives page. Continue to Add protection policy objectives.
Prerequisites
NOTE:
When a new asset is added to a protection policy during a scheduled backup window, the backup starts right away.
However, if an asset is added to a protection policy outside of the scheduled backup window, the backup does not start
until the next time that backups are configured to run.
If a new asset is added to a protection policy that has a weekly or monthly backup schedule and the current time is within
the scheduled Start and End times, the backup runs right away, regardless of the date. If the current time is not within the
scheduled Start and End times, the backup does not start until the next time that backups are configured to run.
NOTE: Any backup that starts before the End time continues until completion.
Steps
1. Click Add under Primary Backup.
The Add Primary Backup dialog appears.
2. On the Target pane, specify the following fields:
a. Storage Name—Select a backup destination from the list of protection storage, or select Add to add protection storage
and complete the details in the Storage Target dialog.
b. Storage Unit—Select whether this protection policy should use a New storage unit on the selected protection storage
system, or select an existing storage unit from the list.
Hover over a storage unit to view the full name and statistics for available capacity and total capacity, for example,
testvmpolicy-daily-123ab (300 GB/1 TB).
The Space field indicates the total amount of space, and the percentage of available space, on the protection storage
system.
When you select New, PowerProtect Data Manager creates a storage unit on the selected protection storage system
upon policy completion. The storage unit name follows the format policy name-hostname-unique identifier.
e. SLA—From the list, select an existing service level agreement that you want to apply to this objective, or select Add to
create an SLA within the Add Backup Service Level Agreement wizard.
The PowerProtect Data Manager Administrator Guide provides instructions.
3. On the Schedules pane, specify the following fields to schedule a full backup of this protection policy:
a. Create a Full backup every—Specify how often to create a full backup.
b. Retain for—Specify the retention period for the full backup.
For database backups, PowerProtect Data Manager chains the dependent backups together. For example, the
incremental or log backups are chained to their base full backup. The backups do not expire until the last backup in
the chain expires. This ensures that all incremental and log backups are recoverable until they have all expired.
c. Start and End—The activity window. Specify a time of day to start the full backup, and a time of day after which
backups cannot be started.
d. Click Save.
4. Optionally, click Add backup and specify the following fields to schedule other backup types (differential or log) for this
protection policy:
NOTE: When you select this option, the backup chain resets.
a. Create a <backup_type> backup every—Specify the backup type from the drop-down list, and then specify the
interval at which the backup job runs within the window that you specify.
Available backup types are Differential or Log. The backup interval depends on the backup interval of the full backup
schedule:
● If the full backup schedule is hourly or daily, the backup interval of subsequent backup levels can be between 1 and 12
hours or between 1 and 60 minutes.
● If the full backup schedule is weekly or monthly, the backup interval of subsequent backup levels can be daily,
between 1 and 12 hours, or between 1 and 60 minutes.
b. Retain for—Specify the retention period for this backup.
CAUTION: If you set a shorter retention period for a differential or log backup than for the corresponding
full backup, data loss might occur and you might be unable to recover the point-in-time copies.
c. Start and End—The activity window. Specify a time of day to start the backup, and a time of day after which backups
cannot be started.
5. Click Add Backup and repeat the procedure for creating full backups if you want to create additional backup copies at
different intervals with different retention periods.
Within this protection policy, when a full schedule conflicts with another full backup schedule, a message appears, indicating
that there is a conflict. Schedule occurrences can conflict with each other when the activity windows are identical or occur
entirely within the same time range. To avoid full schedule conflicts in a policy, edit the activity windows.
If you proceed with conflicting schedules, the backup of the lower priority schedule will be skipped. Schedule priority is
ranked according to the following criteria:
● Full schedules have a higher priority than Synthetic Full schedules.
● For schedules of the same backup type, the schedules that run less frequently have a higher priority than schedules that
run more frequently.
● For schedules with the same backup type and frequency, the schedule with the longest activity window has the higher
priority. If the activity windows are also identical, only one of these schedules will run.
When a schedule conflict between full backups occurs, PowerProtect Data Manager runs the full backup with the longest
retention period.
Next steps
After completing the objective, you can change any details by clicking Edit next to the objective.
Configure any remaining objectives. When you have configured all required objectives, click Next.
The wizard moves to the Options page. Continue to Configure protection policy options.
Steps
1. Click Add under Primary Retention.
The Add Primary Retention dialog appears.
2. On the Target pane, specify the following fields:
a. Storage Name—Select a backup destination from the list of protection storage, or select Add to add protection storage
and complete the details in the Storage Target dialog.
b. Storage Unit—Select whether this protection policy should use a New storage unit on the selected protection storage
system, or select an existing storage unit from the list.
Hover over a storage unit to view the full name and statistics for available capacity and total capacity, for example,
testvmpolicy-daily-123ab (300 GB/1 TB).
The Space field indicates the total amount of space, and the percentage of available space, on the protection storage
system.
When you select New, PowerProtect Data Manager creates a storage unit on the selected protection storage system
upon policy completion. The storage unit name follows the format policy name-hostname-unique identifier.
For example, testvmpolicy-daily-123cd.
e. SLA—From the list, select an existing service level agreement that you want to apply to this objective, or select Add to
create an SLA within the Add Backup Service Level Agreement wizard.
The PowerProtect Data Manager Administrator Guide provides instructions.
3. On the Retention (Self Service) pane, change any required retention periods.
By default, all backup types share the same retention period.
4. To change the retention periods for specific backup types:
CAUTION: If you set a shorter retention period for a differential or log backup than for the corresponding full
backup, then data loss might occur and you might be unable to recover the point-in-time copies.
a. Clear Set the same retention time for all backup types.
b. Change the Retain <backup_type> For field values as required.
After changing this option, you can create additional backup patterns with different retention periods. For example, you can
add a full backup pattern Retain full backups created every week on the Monday and Tuesday for 2
months.
5. Click Save to save the changes and return to the Objectives page.
The Objectives page updates to display the name and location of the storage target under Primary Retention.
Prerequisites
NOTE: When creating multiple replicas for the same protection policy, it is recommended to select a different storage
system for each copy.
NOTE: If you select a storage unit that is the target of another objective for the same policy, the UI issues a warning. The
PowerProtect Data Manager Administrator Guide provides information about replicating to shared protection storage to
support PowerProtect Cyber Recovery. Verify the storage targets and the use case before you continue.
Steps
1. Next to the primary backup or retention objective, click Replicate.
An entry for Replicate appears to the right of the primary backup or retention objective.
2. Under Replicate, click Add.
The Add Replication dialog appears, with information in the left pane for each schedule that has been added for the
primary objective of this protection policy.
NOTE: PowerProtect Data Manager replicates backups for all the listed schedules. You cannot select individual
schedules for replication.
3. Select a storage target:
a. Storage Name—Select a replication destination from the list of protection storage, or select Add to add protection
storage and complete the details in the Storage Target window.
b. Storage Unit—Select whether this protection policy should replicate to a New storage unit on the selected protection
storage system, or select an existing storage unit from the list.
c. Network Interface—Select a network interface from the list, if applicable.
d. Retention Lock—Move the Retention Lock slider to the right to enable retention locking for these replicas.
The retention lock mode setting comes from the configuration of the selected storage unit. When you enable retention
locking, the Retention Lock Mode field displays the corresponding storage unit setting.
e. SLA—Select an existing replication service level agreement that you want to apply to this schedule from the list.
Or, select Add to create a replication SLA within the Add Replication Service Level Agreement wizard.
The PowerProtect Data Manager Administrator Guide provides more information about replication targets.
4. Select when to replicate the backups or retentions:
Replication triggers provides more information.
● To replicate after the backup finishes, move the Replicate immediately upon backup completion slider to on.
● For scheduled replication, move the Replicate immediately upon backup completion slider to off, and then complete
the schedule details in the Add Replication dialog.
For replication of the primary backup, the schedule frequency can be every day, week, month, or x hours.
By default, all replicas of the primary objective inherit the retention period from the Retain For value of the synthetic full
and full backup schedules.
5. To specify a different retention period for replicas of different backup or retention types:
CAUTION: If you set a shorter retention period for the replicas of additional backup types than for the
corresponding full backup, you may be unable to recover from those replicas. The additional backup types
include log, incremental, differential, and so on, where applicable.
a. Clear Set the same retention time for all replicated copies.
b. Click Edit in the row of each schedule that you want to change.
c. Update the value in the Retain For field.
d. Click Save.
6. Click Save to save your changes and return to the Objectives page.
Next steps
Configure any remaining objectives. When you have configured all required objectives, click Next.
The wizard moves to the Options page. Continue to Configure protection policy options.
Prerequisites
To move a backup or replica to Cloud Tier, the corresponding objectives must have a retention time of 14 days or more.
Cloud Tiering happens at 00:00 UTC each day. Depending on your time zone, this time may be within business hours and thus
Cloud Tiering may impact available network bandwidth. Cloud Tiering applies to both centralized and self-service protection
policies.
Steps
1. Click Cloud Tier next to or under one of the following:
● A primary backup objective.
● A primary retention objective.
● A replication objective.
The wizard creates an entry for Cloud Tier to the right of, or below, the associated objective.
2. Under the entry for Cloud Tier, click Add.
The Add Cloud Tier Backup dialog appears, with summary information for the parent objective to indicate whether you are
adding this Cloud Tier objective for the primary objective or the replication objective.
3. To tier the backups from all the full primary backup or replication schedules of this policy, keep the All applicable full
backups slider to the right.
Otherwise, move the slider to the left and select one or more full schedules to tier.
4. Set the following parameters:
● Select the appropriate Cloud Unit from the Cloud Target list.
● For Tier After, set a time of 14 days or more.
NOTE: If either of the following conditions are true, you can still select this schedule for tiering:
● The retention period of a schedule is less than the minimum 14 days required before tiering occurs.
However, you must edit the retention period of this schedule, or its backup or replica, to a value greater than the Tier
After field before the retention period of the copy expires. Otherwise, PowerProtect Data Manager will not move the
backup or replica of this schedule to the cloud tier.
5. Click Save to save your changes and return to the Objectives page.
Next steps
Configure any remaining objectives. When you have configured all required objectives, click Next.
The wizard moves to the Options page. Continue to Configure protection policy options.
Steps
1. Exclude Simple Database—Select this option to exclude the databases in simple recovery model from the transaction log
backups.
2. Exclude System Databases—Select this option to exclude the Microsoft SQL Server system databases (including
databases named master, model, and msdb) from the differential and transaction log backups.
3. Exclude Unprotectable Database—Select this option to exclude the databases in an unprotectable state from all backups.
4. Backup Promotion—Select one of the following backup promotion options to use for differential and transaction log
backups:
Option Description
ALL Enables backup promotion. This setting is the default backup promotion setting.
NONE Disables backup promotion, without displaying a warning during backups.
NONE_WITH_WARNINGS Disables backup promotion, but displays a warning during a backup when a backup promotion
would normally occur.
5. To enable the debug logs for troubleshooting purposes, select Troubleshooting.
6. Click Next.
Results
The wizard moves to the Summary page. Continue to Review the protection policy summary.
Preferred alternatives
When you define an extended retention objective for a protection policy, you define matching criteria that select preferred
backups to retain. If the matching criteria do not identify a matching backup, PowerProtect Data Manager automatically retains
the preferred alternative backup according to one of the following methods:
● Look-back—Retain the last available full backup that was taken before the matching criteria.
● Look-forward—Retain the next available full backup that was taken after the matching criteria.
For example, consider a situation where you configured a protection policy to retain the daily backup for the last day of the
month to extended retention. However, a network issue caused that backup to fail. In this case, look-back matching retains the
backup that was taken the previous day, while look-forward matching retains the backup that was taken the following day.
By default, PowerProtect Data Manager uses look-back matching to select the preferred alternative backup. A grace period
defines how far PowerProtect Data Manager can look in the configured direction for an alternative backup. If PowerProtect
Data Manager cannot find an alternative backup within the grace period, extended retention fails.
Centralized protection
An hourly primary backup schedule starts on Sunday at 8:00 p.m., and ends on Monday at 6:00 p.m. with a weekly extended
retention objective set to repeat every Sunday. PowerProtect Data Manager selects the first available backup starting after
8:00 p.m. on Sunday for long-term retention.
The following diagram illustrates the behavior of backups with extended retention for a configured protection policy. In this
example, full daily backups starting at 10:00 p.m. and ending at 6:00 a.m. are kept for 1 week. Full weekly backups are set to
repeat every Sunday and are kept for 1 month.
Self-service protection
For self-service backups, PowerProtect Data Manager uses a default backup window of 24 hours. A backup schedule starts on
Sunday at 12:00 p.m, and ends on Monday at 12:00 p.m. with a weekly extended retention objective set to repeat every Sunday.
PowerProtect Data Manager selects the first available backup that is taken between 12:00 p.m. on Sunday and 12:00 p.m. on
Monday for long-term retention.
Protection rules
Protection rules comprise one or more conditions that select matching assets and automatically assign them to a corresponding
protection policy. PowerProtect Data Manager applies these rules to assets at discovery time.
You can apply protection rules to policies for the following asset types:
● Virtual machine
● File System
● Kubernetes
● Microsoft Exchange
● Microsoft SQL
● Network Attached Storage (NAS)
● Oracle
● SAP HANA
● PowerStore block volumes
Before defining a protection rule, note the following:
● Creating protection rules requires at least one existing protection policy.
● An asset can only belong to one protection policy.
● Assets can move from one policy to another policy based on the priorities of the protection rules. You can manually move
an asset into a protection policy and override automatic placement through protection rules. Manual assignment protects the
Oracle DB Name Begins with, Contains, The addition of a protection rule is not
databases Does not contain, Does supported for a newly discovered Oracle
Host/Cluster/Group Data Guard asset. When a PowerProtect
not equal, Ends with,
Name Data Manager system is updated from an
Equals, Matches RegEx,
Does Not Match RegEx earlier version, the Oracle Data Guard asset
continues to be associated with previously
Host Type Equals defined protection rules.
Oracle Version Begins with, Contains,
Does not contain, Does
not equal, Ends with,
Equals, Matches RegEx,
Does Not Match RegEx
Steps
1. From the PowerProtect Data Manager UI, select Protection > Protection Rules.
The Protection Rules window appears.
2. Select the tab that corresponds to the asset type or host for which you would like to add the protection rule, and then click
Add.
PowerProtect Data Manager supports the application of protection rules for the following asset types:
● Virtual machine
● File System (Block Volumes)
● Kubernetes namespaces
● Microsoft Exchange
● Microsoft SQL
● Network Attached Storage (NAS)
● Oracle
● SAP HANA
● PowerStore block volumes
The Add Protection Rule window opens to the Select Protection Policy page.
3. Select the target protection policy for the protection rule and then click Next.
The Add Rule Description page appears.
4. Define the purpose of the protection rule:
a. Name. For example, Rules Prod Finance. The name must be unique.
b. Description. For example, Finance department production servers
c. Click Next.
The Add Conditions page appears.
5. Define the protection rule:
a. Select an attribute. The available attributes depend on the selected host type.
b. Select a matching criteria. The available matching criteria depend on the selected attribute.
NOTE: Where the available matching criteria includes regular expressions, click for a list of supported operators
and effects in a separate dialog box.
c. Depending on the selected attribute, supply a search phrase to compare against the attribute or select an option from
the list.
The wizard displays a count of matching assets beside the rule and enables new Add Rule options for compound rules.
For example, a rule with the filters VM Folder Name, Contains, and Finance can match assets belonging to your
finance department to the selected protection policy.
6. To define a compound rule:
The wizard only enables some Add Rule options after the successful validation of other rules in the same container. For
example, rules cannot be empty.
a. Select a logical operation, and then click the corresponding Add Rule option.
● If you select + (AND), the new rule appears in the same container.
● If you select Add Rule - OR, the new rule appears in a separate container.
b. Repeat the previous step to define the new protection rule.
c. To remove a rule from a compound rule, click for that rule.
NOTE: The wizard disables for any rules whose deletion would result in an empty container. To remove these
rules, remove the entire container.
The wizard removes the selected rule and any associated Add Rule options.
d. To remove an entire container and any rules within it, click for that container.
The wizard also removes any associated Add Rule options.
e. To remove all rules, click Reset Rules.
Results
The new protection rule automatically protects any matching assets.
Prerequisites
NOTE: For SQL, Oracle, SAP HANA, file system, and block volume asset types, the protection rule runs only on scheduled
discovery in PowerProtect Data Manager. Ensure that you schedule discovery for these asset types.
Steps
1. From the PowerProtect Data Manager UI, select Protection > Protection Rules.
The Protection Rules window appears.
2. Select the required protection rules, and then click Run.
PowerProtect Data Manager runs all of the selected protection rules for the current asset type.
Steps
1. Select Infrastructure > Asset Sources.
2. Select the tab for the type of asset source that you want to discover.
3. Select the asset source name in the asset source list, and then click Discover.
4. From the Discovery Schedule list, select the time of day to initiate the discovery.
Steps
1. Select Protection > Protection Rules.
The Protection Rules window appears.
NOTE: On the Protection Rules window, the Source column lists Protection Policy and User created rules. The
Protection Policy rules, that is, the protection rules that are created dynamically while adding or editing the protection
policy cannot be edited or deleted. Unselect the server/host of an asset by editing the protection policy to delete such
rules.
2. To edit a protection rule, select the rule and then click Edit.
The Edit Protection Rule window appears.
a. Select a protection policy, and then click Next.
b. Modify the name, description, or filter rules, and then click Next.
Add a protection rule provides more information about working with rules.
c. Review the protection rule summary, and then click Finish.
3. To delete a protection rule, select the rule and then click Delete.
PowerProtect Data Manager removes from protection policies any assets that were added because of this protection rule.
PowerProtect Data Manager adds those assets again if you do not update related protection rules.
Steps
1. From the left navigation pane, select Protection > Protection Rules.
The Protection Rules window appears.
2. Click the link in the Assigned Assets Count column for the protection rule.
The Assets List window appears and displays the matched assets.
3. To export asset records for the protection rule, in the Assets List window, click Export All.
Steps
1. Select Protection > Protection Rules.
The Protection Rules window appears.
If you update from a previous release of PowerProtect Data Manager, the configured behavior for protection rule changes
still applies to the current release. For example, in PowerProtect Data Manager 19.12, if you did not configure protection
rules through application.properties to move assets across policies, then you cannot change the behavior with this
method in PowerProtect Data Manager 19.13 or later.
However, if you updated the configuration file to enable protection rules to move assets across policies, then this behavior
continues to apply after the update.
When a job completes before the cancel request reaches the application host, the status of the canceled job transitions to
either success or failure.
You can also cancel a queued restore job. However, you cannot cancel a restore job that is in progress. The restore job
status transitions to either success or failure based on the restore status on the application host.
You can cancel many other types of jobs, in addition to protection and restore jobs. The PowerProtect Data Manager
Administrator Guide provides more information.
Perform the following steps to cancel an application agent protection job in the PowerProtect Data Manager UI.
Steps
1. From the PowerProtect Data Manager UI left navigation pane, select Jobs > Protection Jobs.
The Protection Jobs window opens to display a list of protection jobs and job groups.
2. In the Protection Jobs window, perform the required type of job cancellation:
● To cancel a job group:
a. In the Protection Jobs window, select the required job group and click Cancel.
A job group warning prompt appears.
b. Click OK at the prompt.
You can monitor the job group cancellation in the Protection Jobs window. The job group status changes to Canceled
when the cancellation of all the asset jobs is complete.
You can monitor the asset job cancellation in the Job ID Summary window. The asset job status changes to Canceled
when the job cancellation is complete.
NOTE: When the cancel request for a job cannot be completed, an informational alert is displayed.
Steps
1. Select Infrastructure > Assets.
2. From the Assets window, select the tab for the asset type for which you want to edit the retention period. If a policy has
been assigned, the table lists the assets that have been discovered, along with the associated protection policy.
3. Select a protected asset from the table, and then click View Copies. The Copy Locations pane identifies where the
backups are stored.
4. In the left pane, click to the right of the icon for the asset. The table in the right pane lists the backup copies.
5. Select one or more backup copies from the table, and click Edit Retention.
6. Select one of the following options:
● To select a calendar date as the expiration date for backups, select Retention Date.
● To define a fixed retention period in days, weeks, months, or years after the backup is performed, select Retention
Value. For example, you can specify that backups expire after 6 months.
NOTE: When you edit the retention period for copies that are retention locked, you can only extend the retention
period.
Steps
1. From the PowerProtect Data Manager UI, select Infrastructure > Assets.
2. From the Assets window, select the tab for the asset type for which you want to delete copies. If a policy has been
assigned, the table lists the assets that have been discovered, along with the associated protection policy.
3. Select a protected asset from the table, and then click View Copies. The Copy Locations pane identifies where the
backups are stored.
4. In the left pane, click to the right of the icon for the asset. The table in the right pane lists the backup copies.
5. Select one or more copies from the table that you want to delete from the DD system, and then click Delete.
A preview window opens and displays the selected backup copies and all the backup copies that depend on the selected
backup copies.
NOTE: If you delete a backup copy, PowerProtect Data Manager deletes the specified backup copy and all backup
copies that depend on the specified backup copy.
6. For all asset types, you can choose to keep the latest backup copies or delete them. By default, PowerProtect Data Manager
keeps the latest backup copies. To delete the latest backup copies, clear the check box next to Include latest copies.
7. To delete the backup copies, in the preview window, click Delete.
NOTE: The delete operation may take a few minutes and cannot be undone.
An informational dialog box opens to confirm the copies are being deleted. To monitor the progress of the operation, click Go
to Jobs. To view the list of backup copies and their status, click OK.
When the job completes, the task summary provides details of each deleted backup copy, including the time that each copy
was created, the backup level, and the retention time. The time of copy creation and the retention time are shown in UTC.
An audit log is also generated and provides details of each deleted backup copy, including the time that each copy was
created, the backup level, and the retention time. The time of copy creation and the retention time are shown in UTC. Go to
Alerts > Audit Logs to view the audit log.
8. Verify that the copies are deleted successfully from protection storage. If the deletion is successful, the deleted copies no
longer appear in the table.
Steps
1. From the PowerProtect Data Manager UI, select Infrastructure > Assets.
2. From the Assets window, select the tab for the asset type for which you want to delete copies. If a policy has been
assigned, the table lists the assets that have been discovered, along with the associated protection policy.
3. Select a protected asset from the table, and then click View Copies. The Copy Locations pane identifies where the
backups are stored.
Steps
1. From the PowerProtect Data Manager UI, select Infrastructure > Assets.
2. From the Assets window, select the tab for the asset type for which you want to export results of deleted backup copies. If
a policy has been assigned, the table lists the assets that have been discovered, along with the associated protection policy.
3. Select one or more protected assets from the table, and then select More Actions > Export Deleted Copies.
If you do not select an asset, PowerProtect Data Manager exports the data for deleted backup copies for all assets for the
specific asset type.
4. Specify the following fields for the export:
a. Time Range
The default is Last 24 Hours.
b. Copy Status
In order to export data for deleted backup copies, the backup copies must be in one of the following states:
● Deleted—The copy is deleted successfully from protection storage, and, if applicable, the agent catalog is deleted
successfully from the agent host.
● Deleting—Copy deletion is in progress.
● Deletion Failed—Copy deletion from protection storage is unsuccessful.
NOTE: You cannot export data for backup copies that are in an Available state.
5. Click Download.
If applicable, the navigation window appears for you to select the location to save the .csv file.
6. Save the .csv file in the desired location and click Save.
Steps
1. From the PowerProtect Data Manager UI, select Infrastructure > Assets.
Use CPU throttling with care, on only specific hosts and in specific situations, as it can slow down the backup jobs by up
to 20 times. The slowdown can cause backup jobs to run longer than the execution time window and possibly affect the
compliance associated with the policies on the host.
The host CPU throttling feature is supported for Oracle Incremental Merge new backups. The feature is not supported for
Oracle Incremental Merge existing in-progress centralized backups, self-service backups, or stand-alone application agents.
You can enable CPU throttling for self-service Oracle RMAN agent backups through the following type of setting in the
RMAN script. The backups are then slowed down:
For example, a user with an administrator or backup role enables the host CPU throttling and specifies the CPU utilization limit
of 90% on the application agent host. The effect on the backup jobs is as follows:
● When the host CPU utilization exceeds 90%:
○ Existing backup jobs are slowed down.
○ New backup jobs are queued on the host.
● When the host CPU utilization is reduced to 90% or less:
○ The slowed backup jobs resume their normal speed.
○ The queued backup jobs are started.
NOTE:
It is recommended that you keep the host CPU utilization limit above 85%. Setting a limit of 85% or less can significantly
slow down the backup operations. If all backup jobs become queued, then disable the CPU throttling or change the CPU
utilization limit as it was likely set too low.
View application agent details provides more information about the Application Agents window.
2. To enable the backup CPU throttling for the host and set the CPU utilization limit:
a. In the lower table in the Application Agents window, select the application agent host.
b. Select More Actions > Backup Throttling.
c. In the Set Backup Throttling dialog box, specify the following fields and click Save. A system job is then created for
the host CPU throttling configuration. When the CPU throttling limit is changed, an audit is also created:
● Backup Throttling—Set the value to Enabled.
● CPU Utilization Limit—Set the value to an integer between 1 and 99, inclusive. For example, set the value to 90 for
a 90% limit. It is recommended that you keep the CPU utilization limit above 85%.
The specified CPU utilization limit appears as a percent value in the CPU Throttling column in the table in the
Application Agents window.
When backup throttling occurs, a message appears in the step log that is available through the protection job "details" view. The
message states that the backup speed has slowed due to application agent throttling restrictions. When a backup job is queued
during CPU throttling, the following message appears in the step log:
On the Details tab in the protection job window, the value Yes appears after the Throttled field label when throttling has
occurred at some point during the backup job.
Steps
1. Delete the Microsoft SQL Server host:
a. Remove the assets from the protection policies. The PowerProtect Data Manager Administrator Guide provides details
on how to remove assets from PowerProtect Data Manager.
b. Delete the Microsoft SQL Server host according to Delete an asset source. This procedure unregisters the host from
PowerProtect Data Manager and removes the host assets after all the asset copies have expired.
2. Make the network configuration changes on the Microsoft SQL Server host:
a. Enable the IPv4 or IPv6 protocol in the network settings, and assign the required static address.
b. To configure a pure IPv4 or pure IPv6 environment, disable the required protocol in the network settings.
3. Run the installation wizard and select the Change option to reregister the Microsoft SQL Server host with the same
PowerProtect Data Manager server.
4. Add the required assets back into the protection policy.
Steps
1. Change the FQDN of the Microsoft application agent host.
2. From the C:\Program Files\DPSAPPS\AgentService directory:
a. Unregister the Microsoft application agent from PowerProtect Data Manager by running unregister.bat.
b. Register the Microsoft application agent with PowerProtect Data Manager by running register.bat.
3. Delete the existing agents.clb* lockbox files in the directories C:\Program Files\DPSAPPS\common\lockbox and
C:\Program Files\DPSAPPS\AgentService\config.
NOTE: If the Microsoft application agent is installed to a non-default path, delete the agents.clb* files in the
lockbox and config subdirectories of the installation directory.
Steps
1. Unregister the Microsoft application agent from PowerProtect Data Manager by running unregister.bat from the C:
\Program Files\DPSAPPS\AgentService directory on the Microsoft SQL Server host.
NOTE: If the IP address of the Microsoft application agent host is already changed, do not
unregister the Microsoft application agent. Instead, rename the ssl directory in the installation location
<installation_directory>\DPSAPPS\AgentService and go to step 3.
2. Change the IP address (static IP) of the Microsoft SQL Server host.
3. Register the Microsoft application agent with PowerProtect Data Manager by running register.bat from the C:
\Program Files\DPSAPPS\AgentService directory on the Microsoft SQL Server host.
4. Ensure that the scheduled Microsoft SQL Server backups and the restores from previous and current backups are
successful.
Steps
1. Delete the Microsoft SQL Server or other host by deleting the asset source according to Delete an asset source. This
procedure unregisters the host from PowerProtect Data Manager and removes the host assets after all the asset copies
have expired.
The assets and asset source of the original host are still in the "Deleted" state, unless the asset copies have expired and
garbage collection has run.
NOTE: If you unregister and reregister the Microsoft application agent instead of completing this deletion step, then
duplicated asset names might appear in the PowerProtect Data Manager UI.
2. Reuse the IP address (static IP) from the previous host on the new Microsoft SQL Server host.
3. Run the Microsoft application agent installer and select the Change option to reregister the Microsoft SQL Server host with
the same PowerProtect Data Manager server.
4. Ensure that the centralized and self-service backups are successful with the new host.
Steps
1. Delete the original Microsoft SQL Server host by deleting the asset source according to Delete an asset source. This
procedure unregisters the host from PowerProtect Data Manager and removes the host assets after all the asset copies
have expired.
The assets and asset source of the original host are still in the "Deleted" state, unless the asset copies have expired and
garbage collection has run.
NOTE: If you unregister and reregister the Microsoft application agent instead of completing this deletion step, then
duplicated asset names might appear in the PowerProtect Data Manager UI.
2. Migrate the Microsoft SQL Server application from the original host to the new Microsoft SQL Server host. Ensure that the
new host has the same IP address and FQDN as the original host.
3. Run the Microsoft application agent installation on the new Microsoft SQL Server host and select the Change option to
register the new host with the same PowerProtect Data Manager server as the original host.
4. Run a manual discovery, backup, and restore on the new Microsoft SQL Server host. Ensure that the operations are
successful.
Prerequisites
Before you perform a Microsoft SQL Server major version upgrade:
● Ensure that no centralized or self-service backup jobs are running.
● Ensure that you update the Microsoft application agent according to Update the Microsoft application agent. This
prerequisite ensures that duplicate assets are not created in PowerProtect Data Manager.
Steps
1. Disable the protection policies on the Microsoft SQL Server host.
4. After the Microsoft SQL Server services are started, start the PowerProtect agent service.
5. Enable the protection policies that were disabled in step 1.
6. Perform a manual discovery of the Microsoft SQL Server hosts using PowerProtect Data Manager.
7. Ensure that assets have not been removed from the protection policies.
8. Run a protection policy backup.
Steps
1. If the impacted host is the only host in a protection policy, disable the protection policy.
2. Stop the PowerProtect agent service on the Microsoft SQL Server host.
3. Upgrade the Windows operating system on the Microsoft application agent host.
4. Start the Microsoft SQL Server services on the host.
5. Run the discovery of the Microsoft application agent host according to Discover a Microsoft SQL Server application host.
6. Enable the protection policy that was disabled in step 1.
NOTE: If you did not disable the protection policy, any associated assets that are protected by the protection policy are
removed automatically from the protection policy. Add the required assets back into the policy to continue protecting
the assets.
Deletion of any backup copies manually or through the command line is not recommended. PowerProtect Data Manager
deletes all the expired copies as needed.
The agent service maintains SQLite database backups in the <install_directory>/dbs/v1/backups directory,
which is cleaned based on the retention time in the config.yml file. The agent service cleans up the backups only
when the backup count exceeds 10 (cleans up only extra backups after the 10th count).
The agent service is started during the agent installation by the installer. The agent service runs in the background as a service
and you do not interact with it directly.
The config.yml file contains the configuration information for the agent service, including several parameter settings that
you can change within the file. The config.yml file is located in the <agent_service_installation_location>
directory.
If the config.yml file becomes corrupted, you can run the following commands to restore the file and continue the protection
provided by the agent service:
● On Windows:
The agent service periodically starts subprocesses to perform the discovery jobs. You can see the type and frequency of these
jobs in the jobs: section of the config.yml file. The job interval unit is minutes.
The agent service maintains a datastore in the <agent_service_installation_location>/dbs/v1 directory, which
contains information about the application system, assets, and backups discovered on the system. The size of the datastore files
depends on the number of applications and copies on the host. The agent service periodically creates a backup of its datastore
in the <agent_service_installation_location>/dbs/v1/backups directory, as used to recover the datastore if
this datastore is lost.
NOTE: The size of each datastore backup is the same as the datastore itself. By default, a backup is created every hour.
To save space on the file system, you can reduce this datastore backup frequency for large datastores. By default, the
datastore backup is retained for one week. You can change the datastore backup frequency, retention period, and backup
location in the config.yml file.
Service 'PowerProtect Agent Service' (AgentService) could not be installed. Verify that
you have sufficient privileges to install system services.
Steps
1. Stop the agent service by using the appropriate procedure from the preceding topic.
2. Open the config.yml file in an editor.
3. Modify the log-level settings in the following parameters, as required:
NOTE: These parameters are listed in order of decreasing number of messages in the debug information output. The
default log-level is INFO.
● DEBUG
● INFO
● WARNING
● ERROR
● CRITICAL
4. To retain the temporary files, set the keepTempFiles parameter to True in the config.yml file.
NOTE: The agent service and application agent communicate through the temporary files, which are typically deleted
after use but can be useful for troubleshooting purposes. Do not leave the keepTempFiles parameter set to True
permanently, or the temporary files can use excessive space on the file system.
5. Start the agent service by using the appropriate procedure from the preceding topic.
NOTE: The dbs and agent-id folders are removed after the deletion step.
3. Change the PowerProtect Data Manager server address by running the agent installer and selecting the Change option.
Change the PowerProtect Data Manager server address on the Configure Installation Options page.
4. Verify the agent registration status:
a. In the PowerProtect Data Manager UI, select Infrastructure > Application Agents.
b. In the Application Agents window, select the entry that contains the agent hostname and ensure that the status is
Registered.
5. To perform asset discovery for the agent:
a. In the PowerProtect Data Manager UI, select Infrastructure > Asset Sources.
The Asset Sources window appears.
b. Select the SQL tab.
c. Select the agent hostname and click Discover. At the confirmation prompt, click Yes.
When you select Infrastructure > Assets, the Assets window displays the discovered assets.
NOTE: Ensure that the agent service is powered off. Do not start the agent service until disaster recovery is complete.
Steps
1. Move the files in the <agent_service_installation_location>/dbs/v1 directory to a location for safe keeping.
NOTE: Do not move or delete any <agent_service_installation_location>/dbs/v1 subdirectories.
Prerequisites
Ensure that a DD system is set up for cloud tiering.
Steps
1. Log in to PowerProtect Data Manager with administrator credentials.
2. From the PowerProtect Data Manager UI, select Protection > Protection Policies, and then click Add.
The Add Policy wizard appears.
3. On the Type page, enter a name and description, select Microsoft SQL as the type of system to back up, and click Next.
4. On the Purpose page, select from the available options to indicate the purpose of the new protection policy, and then click
Next.
5. On the Assets page, select the assets to be protected with this policy, and then click Next.
6. On the Objectives page, click Add under Primary Backup if the primary backup schedule is not already created, and fill out
the fields in the Target and Schedules panes on the Add Primary Backup dialog.
NOTE: There is no minimum recurrence required for the cloud objective. However, the cloud tier schedule requires a
minimum retention period of 14 days in the Retain for field.
7. Click Cloud Tier next to Primary Backup or, if adding a cloud objective for a replication schedule that you have added,
click Cloud Tier under Replicate.
An entry for Cloud Tier is created to the right of the primary backup schedule, or below the replication schedule.
8. Under the entry for Cloud Tier, click Add.
The Add Cloud Tier Backup dialog appears, with summary schedule information for the parent node. This information
indicates whether you are adding this cloud tier objective for the primary backup schedule or the replication schedule.
9. In the Add Cloud Tier Backup dialog box, set the following parameters and then click Save:
● Select the appropriate storage unit from the Cloud Target list.
● For Tier After, set a time of 14 days or more.
The protection policy schedule is now enabled with cloud tiering.
10. Click Next to proceed with the remaining pages of the Add Policy wizard, verify the information, and then click Finish.
A new job is created, which you can view under the Jobs tab after the job completes.
Steps
1. Log in to PowerProtect Data Manager with administrator credentials.
2. Select Infrastructure > Assets > SQL.
3. On the Type Assets page, select the asset, and then click View Copies.
4. Select the DD system where the PowerProtect Data Manager backups for Microsoft SQL Server reside, and then select Full
protection copy which is older than 2 weeks.
5. Click Tier to tier the backups.
A new job is created, which you can view under the Jobs tab after the job completes. When you monitor the cloud tier
progress of backup copies for the asset job, the status remains in the running state until the data movement occurs from the
DD system.
6. Log in to the DD system, and obtain the storage unit details by running the command data-movement policy show.
For example:
7. Run the data-movement start mtrees command for the particular MTree. For example:
After the successful data movement to the cloud, the cloud tier monitoring job completes. After some time, on the Assets >
View Copies page, the Location field of the protection backups changes to Cloud.
The DDOS Administration Guide provides more details about cloud tier data movement.
NOTE: Only Elastic Cloud Storage (ECS) supports a direct restore from the cloud tier.
NOTE: When a backup is recalled from the cloud tier to the active tier, the copy is removed from the cloud tier.
1. In the PowerProtect Data Manager UI, go to Infrastructure > Assets and select the SQL tab.
2. Select the required asset, and then click View Copies.
3. Select the backup in the cloud, click Recall, and then specify how long to keep the copy on the active tier.
A job is created to recall the backup copy from the cloud tier for the selected asset. The copy moves from the cloud tier, and
the status changes from Cloud to Local_Recalled. Then you can perform the restore from the Microsoft SQL Server host.
4. To re-tier the recalled copy, select the recalled copy and click Re-tier.
5. To change the retention period for the recalled copy, select the recalled copy and click Edit Recall Retention.
To configure the distributed segment processing option, run the following command:
ddboost option set distributed-segment-processing {enabled | disabled}
Enabling or disabling the distributed segment processing option does not require a restart of the DD file system.
A host on which you have installed the DDOS release 5.2 or later enables the distributed segment processing feature by default.
If you update a host from DDOS release 5.0.x or 5.1.x to DDOS release 5.2 or later, the distributed segment processing option
remains in its previous state, that is, either enabled or disabled.
NOTE: The Microsoft application agent supports usage limits on DD resources for Application Direct operations only.
The term quota collectively describes the capacity soft and hard limits of a storage unit. Stream limits are called limits.
Both capacity and stream usage support soft and hard limits:
NOTE: Depending on the number and type of parallel operations that are performed at a given time, the stream usage
varies. To determine the exact usage of the streams, monitor the number of streams that the storage units use over a
period of time.
Steps
1. Determine which application agent hosts use the storage unit.
2. Determine the amount of capacity to allow for the storage unit.
3. Create the storage unit, and then set the capacity quota by using either the GUI or the command prompt. The DD
documentation provides information.
4. Provide the DD hostname, storage unit name, username, and password of the storage unit to the application agent users to
use to perform backups.
The DD administrator can also set the soft capacity quota for the storage unit, which sends alerts and notifications, but does
not limit the capacity usage.
NOTE: When a storage unit is almost full and the capacity quota is decreased, the next backup can fail. DD
administrators must notify the Microsoft application agent users when they decrease a capacity quota, so that the
application agent users can evaluate the potential impact on backups.
153004:(pid 4144): Unable to write to a file because the streams limit was exceeded.
Steps
1. Determine which application agent hosts use the storage unit.
2. Determine the number of backup streams to allow for the storage unit.
3. Create the storage unit.
NOTE: The DD administrator cannot set a streams limit by using the DD Administration GUI.
4. Provide the DD hostname, storage unit name, username, and password of the storage unit to the application agent users to
use to perform backups.
The DD administrator can also set soft limits for the storage unit, which send alerts and notifications, but do not limit the
number of streams used.
The DD administrator can use the ddboost storage-unit modify command to modify the streams limits of storage
units. The DD documentation provides information.
CAUTION: The DD administrator must use caution when setting a streams hard limit. Setting the streams
limit to a low value can impact the backup and restore performance. Decreasing a streams limit can result in
a restore failure. The DD administrator must notify the application agent users when decreasing a streams
hard limit so that the application agent users can evaluate the potential impact on backups and restores.
USE <database_name>;
GO
EXEC sp_addextendedproperty
@name = N'ppdmDiffStripes',
@value = '4';
EXEC sp_addextendedproperty
@name = N'ppdmFullStripes',
@value = '8';
EXEC sp_addextendedproperty
@name = N'ppdmLogStripes',
@value = '2';
NOTE: While Microsoft SQL Server supports naming instances with the hash symbol (#), the Microsoft application agent
does not. If an instance includes a hash symbol, backups of that instance will fail.
Configuring security
To run the Microsoft application agent command prompt commands in the CmdExec subsystem, you must have administrator
privileges. You can either change the SQL Server Agent service login credentials to administrator or configure a proxy host to
the CmdExec subsystem.
100 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
Creating a proxy for the CmdExec subsystem
The SQL Server Agent uses proxies, which are objects that enable the SQL Server Agent to access stored credentials for
Windows users, to define the security context for job steps.
Steps
1. Open SSMS, and then select View > Object Explorer.
2. Specify user credentials:
a. In the Object Explorer, expand Security, right-click Credentials, and then select Properties.
b. On the Credential Properties - EMC page, specify the following fields, and then click OK:
● Credential name: Type a name for the credential.
● Identity: Type the administrator username.
● Password: Type the password for the user that you specified in the Identity field.
● Confirm password: Retype the password that you specified in the Password field.
3. Create a proxy:
a. In the Object Explorer, expand SQL Server Agent, and then expand Proxies.
b. Right-click Proxies, and then select New proxy.
c. On the ‘EMC’ Proxy Account Properties page, specify the following fields, and then click OK:
● Proxy name: Type a name for the proxy.
● Credential name: Type the credential name that you specified in step 2b.
● Active to the following subsystems: Under this field, select Operating system (CmdExec).
NOTE: When you create a job step, you must select this proxy from the Run as list on the Job Step Properties
page.
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 101
For example:
102 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
d. Click OK.
7. Specify general firewall exceptions on the Microsoft SQL Server.
8. If an SSL certificate does not exist, set the encryption level on the target hosts to 1 or 0 according to the security level you
need.
To set the encryption level, change the MsxEncryptChannelOptions registry entry to 1 or
0. The registry key is located in \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL
Server\<instance_name>\SQLServerAgent\.
9. On the Master Server Login Credentials page, click Next.
10. On the Complete the Wizard page, review the information, and then click Finish.
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 103
iv. On the Notifications page, under Actions to perform when the job completes, select the appropriate notification
methods to notify operators about the status of the job step.
v. On the Targets page, from the Target multiple servers list, select the target servers.
h. Click OK.
Steps
1. Open the SSMS, and then select View > Object Explorer.
2. In the Object Explorer, expand SQL Server Agent, right-click Jobs, and then select New job.
3. In the Job Properties window:
a. On the General page, specify the following fields:
● Name: Type a name for the job.
● Owner: Click the button beside the text box, and then complete the following steps:
i. In the Select Login dialog box, click Browse.
ii. In the Browse for Objects dialog box, under Matching objects, select NT SERVICE\SQLSERVERAGENT, and
then click OK.
iii. In the Select Login dialog box, click OK.
● Description: Type a description for the job.
b. On the Steps page, click New.
c. In the Job Step Properties window, on the General page, specify the following fields:
● Step name: Type a name for the job step.
● Type: Select Transact-SQL script (T-SQL).
● Run as: Select SQL Server Agent Service Account.
● Process execute exit code of a successful command: Type the process success exit code.
● Command: Specify the required T-SQL command.
Perform backups with the Microsoft app agent for Application Direct SSMS plug-in provides information about how
to generate the T-SQL command.
You can run the generated T-SQL command by using the New Query menu option to check whether the operation
succeeds. If the command runs successfully, the scheduled backups will be successful.
If you want to use return codes in the generated T-SQL command, you must modify the command.
Consider the following example raw T-SQL command:
USE [master]
GO
DECLARE @returnCode int
EXEC @returnCode = dbo.emc_run_backup ' -c NMMDB154.nmmdev.com -l
full -a "NSR_DFA_SI_DD_HOST=10.31.192.14" -a "NSR_DFA_SI_DD_USER=ddbma" -a
"NSR_DFA_SI_DEVICE_PATH=/ddbma-sqlagent2" "MSSQL:Fabrics"'
PRINT @returnCode
GO
104 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
NOTE: The last two parameters, 16 and 1 are necessary to raise an error if a job step fails.
Next steps
To check the status of a job, either right-click the job and select View History or review the log files in the nsr/applogs/
folder.
Steps
1. On the Windows desktop, click Start > All Programs > Accessories > System Tools > Task Scheduler.
2. In the left pane of the Task Scheduler window, right-click Task Scheduler Library, and then select Create Basic Task.
The Create Basic Task Wizard wizard appears.
3. On the Create a Basic Task page, in the Name field, type a name for the task, and then click Next.
4. On the Task Trigger page, select the appropriate option to start the task, and then click Next.
The page that corresponds to the selected option appears.
5. Specify or select all the fields that you require to perform the task, and then click Next.
6. On the Action page, select Start a program, and then click Next.
7. On the Start a program page, browse for the .bat file and in the Program/script field, type the file path, and then click
Next.
8. On the Summary page, review the details of the task, and then click Finish.
The process creates the task and adds it to your Windows schedule.
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 105
Performing manual backups
The Microsoft application agent for Application Direct supports multiple tools to perform manual backups.
You can configure backups using the Microsoft application agent SQL Server Management Studio plug-in (GUI), Microsoft
application agent for Application Direct commands, or T-SQL scripts.
Steps
1. Open the Microsoft app agent for Application Direct window to the Backup > General page.
The General page appears as shown in the following figure.
106 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
Figure 5. Application Direct - Backup-General page
2. Leave the SQL Server Host as-is. The instance is populated by default.
3. In the SQL Server Instance field, select the name of the Microsoft SQL Server instance that contains the databases that
you want to back up.
4. In the Database Filter list, select one of the following options:
● All Databases: Displays the regular databases and the Always On availability group databases of the selected Microsoft
SQL Server instance in the database table, which is located below the Database Filter field.
This option is selected by default.
You can back up the Always On availability group databases as regular databases without considering the Always On
availability group preferences.
● Non AAG Databases: Displays only the regular databases of the selected Microsoft SQL Server instance in the database
table.
● A list of Always On availability groups if available: Selecting one of the Always On availability groups displays the
corresponding databases in the database table.
The Connections panel displays the name of the cluster that contains the Always On availability group and the backup
preference that specifies the preferred replica to perform the backup. You can configure the replica preference of the
Always On availability groups through the SSMS.
5. In the database table, select either all the databases by selecting the check box in the header row or only the individual
databases that you want to back up.
6. In the Backup type list, select the type of the backup that you want to perform such as, Full, Transaction log, or
Differential.
7. (Optional) To perform a copy-only backup, select Copy-only backup.
Copy-only backups do not disturb the Microsoft SQL Server backup chain or affect backup-level promotion and log
truncation. Copy-only backups are supported for level full or transaction log backups.
8. (Optional) To exclude databases from a Microsoft SQL Server instance-level backup, perform the following steps:
a. Click the Excluded Databases button.
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 107
The Exclude Databases window appears.
b. Select each database that you want to exclude from the backup.
c. Click OK.
The databases that are selected for exclusion appear grayed out in the list of databases and the number of excluded
databases is displayed.
9. In the Name field, type a name for the backup that you want to perform.
After the backup completes, the save set names of the backed-up databases will be in the following format:
<save_set_name>:<database>
For example, you select the databases db1 and db2, specify test as the backup or save set name, and then perform the
backup. After the backup completes, the save set names of the backed-up databases are test: db1 and test:db2.
NOTE: The number sign (#) character is not supported for save set names. If you use this character, backups fail.
10. In the Description field, type a description for the backup that you want to perform.
11. In the Expires after (days) field, select the number of days after which the backup must expire. The default value is 30.
12. Under Destination, to select the target DD server for the backup, perform the following steps:
a. Click the PowerProtect DD System browse button.
The PowerProtect DD System List & Lockbox Settings dialog box appears, as shown in the following figure.
108 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
Figure 7. Add DD system details
ii. In the PowerProtect DD System field, type the name of the server.
iii. In the Communication Protocol list, select either Ethernet or Fibre channel, the medium through which you
want to back up the database to the server. Ethernet is selected by default.
iv. If you have selected Fibre channel from the Communication Protocol list, type the name of the DD server as
the FC service name in the FC Service Name field.
v. In the Username field, type the username of the DD Boost user.
vi. In the Password field, type the password of the DD Boost user.
vii. In the Storage Unit field, type the name of the target storage unit for the backup.
DD Boost user credentials are verified before they are saved in the lockbox. Verification of the user credentials
requires some time to complete.
● To remove a DD server, select the server, and then click Remove.
● To add a virtual server to either back up databases to Microsoft SQL Server clustered instances or restore databases
from Microsoft SQL Server clustered instances, perform the following steps:
○ Select Edit LockBox Settings.
○ In the Enter Host Name field, type the FQDN of the virtual server.
○ Click OK.
● To remove a virtual server, select the FQDN of the virtual server from the Select Host Name list, and then click
Remove.
The PersistedSettings.xml file in the lockbox folder contains the information about DD servers. Adding a server to
a new lockbox creates the PersistedSettings.xml file. Adding a server to or removing a server from the lockbox
updates the PersistedSettings.xml file.
Steps
1. From the left panel, click Options to specify optional backup settings.
The Options page appears as shown in the following figure.
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 109
Figure 8. Application Direct - Backup-Options page
2. To perform a checksum operation with the backup and save the information to the backup media, select Perform
checksum before writing to media.
The Microsoft application agent performs another checksum before a restore to ensure that the checksum matches the
backup.
3. To use a checksum to detect a partial backup or restore state, select Continue on error.
The Microsoft SQL Server verifies the checksum by calculating a local result and comparing the result with the stored value.
If the values do not match and you encounter errors, you can select this option to continue the backup or restore operation.
4. To truncate the transaction logs before a backup, select Truncate the transaction log.
The Microsoft application agent enables this option if you select transaction log as the backup type.
5. To perform a tail-log backup of the database and leave the database in the restoring state, select Backup the tail of the
log and leave database in restoring state.
6. Under Stripes, select Create a striped backup to create a striped backup. You can also specify the number of stripes. If
you specify a value greater than the maximum limit of 32, the value defaults to 32.
7. To promote backups of SIMPLE recovery model databases to level full, select Promote to full backup.
SIMPLE recovery model databases do not support transaction log backups. The Microsoft application agent enables this
option if you select the SIMPLE recovery model databases to back up, and transaction log as the backup type.
8. To omit SIMPLE recovery model databases from the backup, select Skip backup.
Microsoft application agent enables this option if you select the SIMPLE recovery model databases to back up, and
transaction log as the backup type. SIMPLE recovery model databases do not support transaction log backups.
9. To check the status of the selected databases and ignore the databases that are unready or unavailable for the backup,
select Skip databases that cannot be backed up at its current state.
If the status of the databases is ONLINE, the databases are ready or available for backups.
If the status of the databases is OFFLINE, EMERGENCY (SINGLE_USER Mode), SUSPECT, RESTORING, RECOVERING, or
RECOVERY_PENDING, the databases are unready or unavailable for backups.
110 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
10. To generate detailed logs, which you can use to troubleshoot backup issues, specify a number between 1 and 9 in the Select
a debug level field. The default value is 0 (zero).
11. To delete debug logs older than a certain number of days, in the Delete debug logs after field, specify the number of days
with a number between 1 and 32767 days. The default value is 0 and does not delete any debug logs.
Regularly deleting debug logs prevents the log folder on the installation drive from becoming too large.
NOTE: This option only deletes debug logs named in the default format and located in the logs folder at
<installation_path>\MSAPPAGENT\logs.
12. To
specify backup promotion options, select one of the following values from the Backup Promotion list:
●ALL: Enables backup promotion to occur in any applicable scenario.
●NONE: Disables all backup promotion.
●NONE_WITH_WARNINGS: Disables backup promotion, but logs a warning when backup promotion would normally
occur.
● SKIP_RECOVERY_MODEL: Disables database recovery model change detection. Backup promotion as a result of
recovery model change will not occur, but backup promotion in other scenarios will still occur.
● SKIP_RECOVERY_MODEL_WITH_WARNINGS: Enables database recovery model change detection, but if a recover
model change is discovered, logs a warning instead of promoting the backup. Backup promotion in other scenarios will
still occur.
13. To specify advanced backup options, use the Advanced Options field to select or type advanced options.
Separate multiple entries with a comma, for example:
BUFFERCOUNT=2, READ_WRITE_FILEGROUPS
The following advanced backup options are supported:
● BUFFERCOUNT=number_of_IO_buffers: Specifies the total number of IO buffers that can be used during the
backup operation.
● READ_WRITE_FILEGROUPS: Backs up only the read/write (active) filegroups within the database.
14. To start the backup operation, click Run.
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 111
Figure 9. Application Direct - Backup-Monitor page
NOTE: For information about the success or failure of the backup operation, review the log files that are located in the
installation folder. The typical location of the log files is C:\Program Files\DPSAPPS\MSAPPAGENT\logs.
NOTE: In the syntaxes, the options that are enclosed in square brackets, that is, [ and ] are optional.
To perform specific backup-related and restore-related operations, the Microsoft application agent also supports the
ddbmadmin.exe command besides the msagentadmin.exe command. However, the ddbmadmin.exe command is
deprecated.
where:
-c <client_name>
112 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
Specifies the Microsoft SQL Server hostname that contains the Microsoft SQL Server instance that you
want to back up.
-l {full | incr | diff}
Specifies the type of the backup to perform such as full (full), transaction log (incr), or differential
(diff). The default value is full.
-a "NSR_DFA_SI_DD_HOST=<server_name>"
Specifies whether the backup destination is a DD server.
-a "NSR_DFA_SI_DEVICE_PATH=<storage_unit_name_and_path>"
Specifies the name and the path of the storage unit where you want to direct the backup.
-a "NSR_DFA_SI_DD_USER=<DD_Boost_user>"
Specifies the username of the DD Boost user.
You must register the hostname and the DD Boost username in the lockbox to enable Microsoft
application agent to retrieve the password for the registered user.
<backup_path>
Specifies the backup path.
Type the backup path in one of the following formats:
● For a default instance, type the path in one of the following formats:
○ To back up the entire instance, type MSSQL:
○ To back up specific databases, type [MSSQL:]<database> [[MSSQL:]<database>
[...]]
For example: "MSSQL:database1" "MSSQL:database2"
● For a named instance, type the path in one of the following formats:
○ To back up the entire instance, type MSSQL$<Instance_Name>:
○ To back up specific databases, type MSSQL$<Instance_Name>:<database> [...]
For example: "MSSQL$SqlInst1:database1" "MSSQL$SqlInst1:database2"
Run the ddbmsqlsv command with the following syntax to back up a clusterless Always On availability group (AAG):
NOTE: For a clusterless AAG, you must add the option -a "SKIP_CLIENT_RESOLUTION=TRUE" and specify
<AAG_name>_<AAG_GUID> with the -c option.
where:
-c <cluster_name>
Specifies the Windows cluster name that you want to back up.
-c <AAG_name>_<AAG_GUID>
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 113
Specifies the clusterless AAG that you want to back up, for example, -c AAG1_ef770eaf-ebe3-f5be-
bdff-3a7243ff1236.
-A <virtual_server>
Specifies the fully qualified domain name (FQDN) of the virtual server.
● For a named instance, type the path in one of the following formats:
○ To back up the entire instance, type MSSQL$<Instance_Name>#<aag_name>:
○ To back up specific databases, type MSSQL$<Instance_Name>#<aag_name>:<database>
[...]
For example: "MSSQL$SqlInst1#sql2012-aag3:database1"
"MSSQL$SqlInst1#sql2012-aag3:database2"
NOTE: The Microsoft application agent does not support backing up multiple Always On availability groups in the same
operation.
Microsoft SQL Server cluster backup command
The following command backs up databases in a Microsoft SQL Server cluster environment:
Backing up an Always On availability group when all instance names are the same
When the server nodes contain only default instances, or when the Microsoft SQL Server instance names are all the same in the
availability group, type the backup command in the following syntax:
NOTE:
114 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
For self-service backups, the retention time displayed in the SSMS plug-in does not match the retention time displayed in
PowerProtect Data Manager. The retention time in PowerProtect Data Manager is normalized and rounded off to midnight.
A retention setting in PowerProtect Data Manager overrides a retention setting specified by the -y option.
where:
● -c SQL2012clus3.brsvlab.local specifies the cluster name.
● "MSSQL$SQ12INST4#sql2012-aag3:" is the backup object name, where all the databases of the sql2012-aag3 Always
On availability group are backed up. The backup object name is made of the following components:
○ MSSQL is a mandatory term.
○ If you use named instances, $SQ12INST4 is the Microsoft SQL Server instance name.
If you use a default instance, do not specify $<Microsoft_SQL_Server_instance_name> in the backup object.
○ # indicates a federated backup.
○ sql2012-aag3 is the AlwaysOn Availability Group name.
Backing up an Always On availability group when there are multiple instance names
When you back up an Always On availability group where the nodes contain Microsoft SQL Servers with different instance
names, the backup command on each instance should reflect the available instance.
For example, consider the following scenario:
● There are two different instances:
○ SQ12INST4 resides on Node1.
○ SQ12INST5 resides on Node2
● Node1 is the primary replica.
● Node2 is the secondary replica.
● The Always On availability group backup preference is set to secondary.
In this scenario, the backup command on SQL2INST4 should specify the backup object as "MSSQL$SQL2INST4#sql2012-
aag3:", while backup command on SQL2INST5 should specify the backup object as "MSSQL$SQL2INST5#sql2012-
aag3:". After failover of Node1 and Node2, Node1 becomes secondary, and Node2 becomes primary. The backup command is
the same after failover.
NOTE: When browsing the backups for a restore operation, the save sets could be in either of the instances (SQL2INST4
or SQL2INST5). The save set depends on the instance that is used for the first backup.
For self-service backups, the retention time displayed in the SSMS plug-in does not match the retention time displayed in
PowerProtect Data Manager. The retention time in PowerProtect Data Manager is normalized and rounded off to midnight.
A retention setting in PowerProtect Data Manager overrides a retention setting specified by the -y option.
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 115
where:
● MSSQL$SQ12INST4#sql2012-aag3:database1, MSSQL$SQ12INST4#sql2012-aag3:database3, and
MSSQL$SQ12INST4#sql2012-aag3:database8 are the backup objects
● Only database1, database3, and database8 of the sql2012-aag3 Always On availability group are backed up.
-y +20d
NOTE:
116 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
For self-service backups, the retention time displayed in the SSMS plug-in does not match the
retention time displayed in PowerProtect Data Manager. The retention time in PowerProtect Data
Manager is normalized and rounded off to midnight.
A retention setting in PowerProtect Data Manager overrides a retention setting specified by the -y
option.
You can specify any positive integer, followed by one of the following units of time:
● d for day
● w for week
● m for month
● y for year
The maximum possible retention date is 2/7/2106.
If you omit this option or specify 0, the default value of 30 days is used.
-h "<databases_to_omit>"
Specifies databases to omit from the backup. You can use this option to specify exact database names
or use wildcard characters.
Two wildcard characters are supported:
● Question mark (?): Matches any single character
● Asterisk (*): Matches zero to unlimited characters
When you use wildcard characters you must enclose the database name in square brackets, for
example, [“DB?”].
For example, consider the following scenarios:
● To exclude only DB_1 and DB_2 from the backup, add -h “DB_1” -h “DB_2” to the backup
command.
● To exclude all databases named with the format of DB_x, such as DB_9 and DB_a, add -h
[DB_?”] to the backup command.
● To exclude all databases with names ending in DB, add -h [“*DB”] to the backup command.
-O {BUFFERCOUNT | READ_WRITE_FILEGROUPS}
Specifies advanced backup options.
You can specify the following advanced backup options:
● BUFFERCOUNT=<number_of_IO_buffers>: Specifies the total number of IO buffers that can be used
during a backup operation.
● READ_WRITE_FILEGROUPS: Specifies to back up only the read/write (active) filegroups within the
database.
If you are specifying multiple options, separate each argument with a comma. The syntax is as follows:
-D <debug_level_1_through_9>
Generates detailed logs that you can use to troubleshoot backup issues. The default value is 0 (zero).
-a "DELETE_DEBUG_LOG_DAYS=<days>"
Specifies to delete debug log files that are older than the specified number of days. The valid range is
between 1 and 32767. By default, debug logs are not deleted. Regularly deleting debug logs prevents the
log folder on the installation drive from becoming too large.
This parameter only deletes debug logs named in the default format and located in the logs folder at
<installation_path>\MSAPPAGENT\logs.
-a "NSR_COPY_ONLY={TRUE | FALSE}"
Performs a copy-only backup from a Microsoft SQL Server. The copy-only backups do not disturb the
Microsoft SQL Server backup chain and do not affect backup-level promotion and log truncation. The
default value is FALSE.
This option applies only if you specify either full or incr as the backup type with the -l parameter.
Copy-only transaction log backups are generally required only to perform online restores.
-a "NSR_ENABLE_FC={TRUE | FALSE}"
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 117
Enables or disables backing up the databases to the DD server through Fibre Channel. The default value
is FALSE.
-a "NSR_FC_HOSTNAME=<fibre_channel_server>
Specifies the hostname of the Fibre Channel. Use this option with the -a "NSR_ENABLE_FC=TRUE"
parameter.
-a "NSR_INCLUDE_AAG_DATABASE=None”
Specifies to omit Always On availability group databases from an instance-level backup operation.
-a "NSR_DFA_SI_DD_LOCKBOX_PATH=<full_path_to_lockbox>"
Specifies the folder that contains the lockbox file, which contains encrypted information about the
registered hosts and the corresponding usernames in pairs. Each pair is associated with a password that
backups use.
If you do not specify a value, the path defaults to lockbox path in the default installation path, which is
C:\Program Files\DPSAPPS\common\lockbox.
-a "SKIP_SYSTEM_DATABASE={TRUE | FALSE}"
Specifies whether to skip the system databases during instance-level transaction log backups. The
default value is FALSE.
-a "BACKUP_PROMOTION={ALL | NONE | NONE_WITH_WARNINGS | SKIP_RECOVERY_MODEL |
SKIP_RECOVERY_MODEL_WITH_WARNINGS}"
Specifies backup promotion options. The following values are valid:
● ALL (Default): Enables backup promotion to occur in any applicable scenario.
● NONE: Disables all backup promotion.
● NONE_WITH_WARNINGS: Disables backup promotion, but logs a warning when backup promotion
would normally occur.
● SKIP_RECOVERY_MODEL: Disables database recovery model change detection. Backup promotion
as a result of recovery model change will not occur, but backup promotion in other scenarios will still
occur.
● SKIP_RECOVERY_MODEL_WITH_WARNINGS: Enables database recovery model change detection,
but if a recover model change is discovered, logs a warning instead of promoting the backup. Backup
promotion in other scenarios will still occur.
The setting specified with this option applies to every database in the Microsoft SQL Server instance
when this setting is specified along with a Microsoft SQL Server instance-level backup path.
Similarly, the setting specified with this option applies only to specified databases when this setting is
specified with a database level backup path.
For self-service backups, the retention time displayed in the SSMS plug-in does not match the retention time displayed in
PowerProtect Data Manager. The retention time in PowerProtect Data Manager is normalized and rounded off to midnight.
118 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
A retention setting in PowerProtect Data Manager overrides a retention setting specified by the -y option.
USE [master]
GO
DECLARE @returnCode int
8 -l full -N "Set1" -y +0d -a "NSR_DFA_SI_DD_HOST=10.31.192.10" -a
"NSR_DFA_SI_DD_USER=ost" -a "NSR_DFA_SI_DEVICE_PATH=/ddsub7" -a
"NSR_SKIP_NON_BACKUPABLE_STATE_DB=TRUE" "MSSQL:"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
You can use any Microsoft SQL Server standard interfaces, such as the SSMS Query window and OSQL command line tool, to
run the SQL-CLR scripts.
You can use the SQL-CLR script to schedule Microsoft SQL Server backups by using the SQL Server Agent. Scheduling
Microsoft SQL Server backups by using SQL Server Agent provides information.
Best practices to back up Microsoft SQL Server with Application Direct provides guidelines for better performance of Microsoft
SQL Server backups by using the Microsoft application agent for Application Direct SQL-CLR scripts.
Steps
1. Start SSMS on a different host that you use to perform the backup.
2. Connect to the source Microsoft SQL Server instance on the source host.
3. In the SSMS window on the different host, click New Query.
4. In the New Query window, run the T-SQL script to perform the backup.
Results
You can either generate the T-SQL script by using the Microsoft application agent GUI on the source host and copy it to
the New Query window on the different host or write the T-SQL script in the New Query window. Perform backups with the
Microsoft app agent for Application Direct SSMS plug-in and Perform backups with T-SQL scripts provide information.
T-SQL push backup script
NOTE:
For self-service backups, the retention time displayed in the SSMS plug-in does not match the retention time displayed in
PowerProtect Data Manager. The retention time in PowerProtect Data Manager is normalized and rounded off to midnight.
A retention setting in PowerProtect Data Manager overrides a retention setting specified by the -y option.
USE [master]
GO
DECLARE @returnCode int
EXEC @returnCode = dbo.emc_run_backup ' -c CLUST-SQL-02.contoso.com -A
CLUST-SQL-02.contoso.com -l full -y +0d -a "NSR_DFA_SI_DD_HOST=nmmddtwo.sp2010.com" -
a "NSR_DFA_SI_DD_USER=ost" -a "NSR_DFA_SI_DEVICE_PATH=/ddbmav2b75" -a
"NSR_SKIP_NON_BACKUPABLE_STATE_DB=TRUE" "MSSQL$Inst1:Clus-SQL-01-DB01"
"MSSQL$Inst1:CLUST-SQL-02-DB01" "MSSQL$Inst1:CLUST-SQL-02-DB02" "MSSQL
$Inst1:CLUST-SQL-02-DB03"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
where:
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 119
● CLUST-SQL-02.contoso.com is the source host that has the source Microsoft SQL Server instance that you want to
back up.
● Inst1 is the source Microsoft SQL Server instance, to which you must connect from the different host to perform the
backup.
● Clus-SQL-01-DB01, CLUST-SQL-02-DB01, CLUST-SQL-02-DB02, and CLUST-SQL-02-DB03 are the databases
that you have selected in the Inst1 instance to back up.
The Microsoft application agent does not support backing up multiple Always On availability groups in the same operation.
For self-service backups, the retention time displayed in the SSMS plug-in does not match the retention time displayed in
PowerProtect Data Manager. The retention time in PowerProtect Data Manager is normalized and rounded off to midnight.
A retention setting in PowerProtect Data Manager overrides a retention setting specified by the -y option.
USE [master]
GO
DECLARE @returnCode int
EXEC @returnCode = dbo.emc_run_backup '-c SQL2012clus3.brsvlab.local
-S 4 -l full -y +30d -a "NSR_DFA_SI_DD_HOST=ddve-01"
-a "NSR_DFA_SI_DD_USER=sqlboost" -a "NSR_DFA_SI_PATH=/sqlboost"
-a "NSR_DFA_SI_DD_LOCKBOX_PATH=C:\ProgramFiles\DPSAPPS\common\lockbox"
-a "NSR_SKIP_NON_BACKUPABLE_STATE_DB=TRUE"
-N "MSSQL$SQ12INST4#sql2012-aag3:" "MSSQL$SQ12INST4#sql2012-aag3:"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
Sample T-SQL script to back up multiple databases (a subset of databases) of an Always On availability group
USE [master]
GO
DECLARE @returnCode int
EXEC @returnCode = dbo.emc_run_backup '-c SQL2012clus3.brsvlab.local -
S 4 -l full -y +30d -a "NSR_DFA_SI_DD_HOST=ddve-01"
-a "NSR_DFA_SI_DD_USER=sqlboost" -a "NSR_DFA_SI_PATH=/sqlboost"
-a "NSR_DFA_SI_DD_LOCKBOX_PATH=C:\ProgramFiles\DPSAPPS\common\lockbox"
-a "NSR_SKIP_NON_BACKUPABLE_STATE_DB=TRUE"
-N "MSSQL$SQ12INST4#sql2012-aag3:DB" "MSSQL$SQ12INST4#sql2012-aag3:database1"
"MSSQL$SQ12INST4#sql2012-aag3:database3" "MSSQL$SQ12INST4#sql2012-aag3:database8"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
USE [master]
GO
DECLARE @returnCode int
EXEC @returnCode = dbo.emc_run_backup '-c SQL2012clus3.brsvlab.local -
S 4 -l full -y +30d -a "NSR_DFA_SI_DD_HOST=ddve-01"
120 Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases
-a "NSR_DFA_SI_DD_USER=sqlboost" -a "NSR_DFA_SI_PATH=/sqlboost"
-a "NSR_DFA_SI_DD_LOCKBOX_PATH=C:\ProgramFiles\DPSAPPS\common\lockbox"
-a "NSR_SKIP_NON_BACKUPABLE_STATE_DB=TRUE"
-N "MSSQL$SQ12INST4#sql2012-aag3:database1" "MSSQL$SQ12INST4#sql2012-aag3:database1"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
Performing Self-Service Application Direct Backups of Microsoft SQL Server Databases 121
5
Performing Self-Service Application Direct
Restores of Microsoft SQL Server Databases
Topics:
• Restoring a Microsoft SQL Server application host
• Best practices to restore Microsoft SQL Server with Application Direct
• Restoring Microsoft SQL Server databases
• Performing table-level recovery
• Performing Microsoft SQL Server disaster recovery
122 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Configuring usage limits of DD streams provides more information about streams limit, impact of exceeding the limits, and
configuring the usage limits.
Prerequisites
Learn about prerequisites for database restores.
Prerequisites
Ensure that your environment meets the following requirements:
● The Microsoft application agent must be installed on the target remote instance.
● Configure the same lockbox on the target remote instance as the lockbox on the instance where you configure the restore
operation.
For example, if the instance where you are running the restore has a lockbox with DataDomain1 and StorageUnit1, you must
create the same lockbox with DataDomain1 and StorageUnit1 on the target remote instance.
● The SQL Server Agent must be running on the target remote instance.
If the remote instance is on the same domain as the server where you are configuring the restore operation, the Microsoft
application agent starts the SQL Server Agent automatically during the restore operation. If the remote server is on a
different domain, then you must launch the SQL Server Agent on the target server manually.
● You should be able to connect with the remote instance using the Connect to Server option in the SQL Server
Management Studio.
If you cannot connect to the remote instance, the restore will fail.
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 123
Restore a database with the Microsoft app agent for Application
Direct plug-in
The Microsoft application agent supports a user interface to perform restore operations through a SQL Server Management
Studio (SSMS) plug-in.
The Microsoft application agent caches Microsoft SQL Server restore settings. The Microsoft application agent automatically
loads the information from the last recovery operation and populates restore settings. Caching saves time by eliminating the
need to reselect the settings each time you run a restore operation. To clear the cached settings, click Clear Cache.
The Script option is available in each page of the Database Restore tab, which generates a command prompt equivalent
script. You can use the script to create a .bat file to perform automation and other tasks. The following script options are
available:
● CLI Scripts: To generate the command script, which you can use to run a restore from the command prompt.
● T-SQL Scripts: To generate a restore script in the T-SQL format.
Steps
1. Open the Microsoft app agent for Application Direct window to the Database Restore > General page.
The General page appears as shown in the following figure.
124 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Figure 10. Application Direct - Database Restore-General page
The Microsoft application agent automatically loads the information from the last recovery operation and populates all of the
fields under Sources. To clear the cached settings, click Clear Cache.
2. In the PowerProtect DD System field, select the DD server that contains the backup.
NOTE: When you want to restore a replicated backup from a secondary DD server, select the secondary server. The DD
user on the secondary DD server must be in the same group as the primary server.
3. From the SQL Server host list, select the Microsoft SQL Server host that is the source of the backup. Select the Windows
cluster name in the case of federated backups.
4. From the SQL Server Instance list, select the Microsoft SQL Server instance that contains the databases that you want to
restore.
The databases located on the Microsoft SQL Server instance appear in the database table below the SQL Server Instance
field.
5. From the database table, select either the entire Microsoft SQL Server instance by selecting the check box in the header
row or select only the required databases to restore.
The save sets on the Microsoft SQL Server instance that are available for recovery appear in the save sets table below the
Browse time field.
By default, the restore process selects the most recent backup timestamp for each selected database. If you have selected a
single database, you can perform a point-in-time (PIT) restore.
6. (Optional) To perform a point-in-time restore of a single database, perform the following steps:
a. From the Browse time list, select a date and time, and click Show Versions.
All of the backups that were performed within the specified timeline appear in the save sets table.
b. From the save sets table, select the save set with the timestamp that you want to restore.
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 125
Click < < Older or Newer > > to browse additional save sets.
126 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Configure files and filegroup restore settings
When you configure Microsoft SQL Server restores with the Microsoft app agent for Application Direct SSMS plug-in, you
change the default destination folders of the database files (.mdf and .ndf) and log files (.ldf) on the Database Restore >
Files/Filegroups page.
Steps
1. From the left panel, click Files/Filegroups.
The Files/Filegroups page appears as shown in the following figure.
2. Under Filegroup Options, to display the corresponding database files of the databases that you have selected on the
General page, from the Select Filegroup to restore list, select one of the following options:
● All Files: Displays the database files of all the selected databases.
● PRIMARY: Displays the database files of the selected databases that belong to the PRIMARY filegroup only.
● Custom filegroup name: Displays the database files of the selected databases that belong to the selected custom
filegroup name only. In the figure, the custom filegroup names are sec and third.
3. Under Relocation Options, to change the destination restore paths, perform one of the following action sequences:
● To change the destination paths of all of the data and log files, perform the following steps:
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 127
a. Select Relocate all files to folder.
b. Click the Data file folder browse button to specify a location for the data files, or click inside the field to type the
folder path.
c. Click the Log file folder browse button to specify a location for the log files, or click inside the field to type the
folder path.
● To change the destination path for each individual data or log file, perform one of the following actions in the files table:
○ To browse for a destination path, click the browse button to the right of each data or log file. A window appears
where you can browse and select the file path.
○ To type a new destination path, in the Restore As column, click the appropriate cell and type a destination path. If
the path does not exist, a dialog box appears asking if you want to create the folder.
NOTE: The settings under Relocation Options are disabled if you have selected the Restore backups as files option
on the General page.
Steps
1. From the left panel, click Options to specify optional restore settings.
The Options page appears as shown in the following figure.
128 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Figure 13. Application Direct - Database Restore-Options page
2. To overwrite the existing database with the restored data, select Overwrite the existing database (WITH REPLACE).
The database is overwritten only if the database name is unchanged.
If you selected the Restore backups as files option, this option is disabled.
NOTE: After you perform a system database rebuild in the Microsoft SQL Server, you must specify the WITH
REPLACE option with the ddbmsqlrc.exe command when you restore the system databases, including master,
model, and msdb.
3. To specify a recovery state, select one of the following options in the Recovery state field:
● RESTORE WITH RECOVERY: To leave the database in the ready-to-use state by rolling back uncommitted
transactions, and disable the ability to restore the most recent or additional transaction logs.
● RESTORE WITH NORECOVERY: To leave the database in the non-operational state by not rolling back uncommitted
transactions, and enable the ability to restore the most recent or additional transaction logs.
● RESTORE WITH STANDBY: To enable the ability to undo committed transactions, save the undo actions in a standby
file that enables you to reverse the restore effects, and put the database in the read-only mode. If you select this option,
specify the Standby file field by clicking the button that is located on the right of the field, browsing for the file, and
then selecting it.
4. To perform a verify only operation, select Verify only.
A verify only operation verifies that the restore process meets the following requirements without performing the restore
operation:
● The backup set that you want to restore is complete and all volumes are readable
● Header fields, such as database page IDs are ready to write data
● Whether the checksum is proper if the backup was performed by selecting the Perform checksum before writing to
media option
● Whether the destination host has sufficient space to restore data
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 129
NOTE:
○ The Verify only option requires sufficient space on the client host to operate.
○ If you select the Restore backups as files option, this option is disabled.
5. To compress the restore contents and transport them from the DD Replicator to the application host, select PowerProtect
DD System Boost compressed restore.
This option reduces the impact on network bandwidth.
6. To generate detailed logs, which you can use to troubleshoot any restore issues, specify a number between 1 and 9 in the
Select a debug level field. The default value is 0 (zero).
7. To delete debug logs older than a certain number of days, in the Delete debug logs after field, specify the number of days
with a number between 1 and 32767 days. The default value is 0 and does not delete any debug logs.
Regularly deleting debug logs prevents the log folder on the installation drive from becoming too large.
NOTE: This option only deletes debug logs named in the default format and located in the logs folder at
<installation_path>\MSAPPAGENT\logs.
8. To restore all the backups that were performed during or after a specified start time and up until the time of the backup that
is being restored, select Specify a start time for restore.
Specify the start date and time in the corresponding fields beside the Specify a start time for restore field. The start date
and time must be before the backup time of the save set that is being restored.
9. To specify advanced recovery options, use the Advanced options field to select or type advanced recovery options.
Separate multiple entries with a comma, for example:
BUFFERCOUNT=2, KEEP_CDC, KEEP_REPLICATION
The following advanced recovery options are supported:
● BUFFERCOUNT=buffer_number: Specifies the total number of IO buffers that can be used during recovery.
● KEEP_CDC: Enables change data capture (CDC) recovery.
When restoring a database with CDC enabled, the recover operation works differently depending on the recovery
destination.
Use the KEEP_CDC option to:
○ Recover the CDC enabled database on the same Microsoft SQL Server instance by overwriting an existing database.
In this scenario, KEEP_CDC is optional.
○ Recover the CDC enabled database with a different name on the same Microsoft SQL Server instance.
In this scenario, KEEP_CDC is required.
○ Recover the CDC enabled database on a different Microsoft SQL Server instance.
In this scenario, KEEP_CDC is required.
● KEEP_REPLICATION: Preserves the replication when recovering a published database. This option is required if a
database was replicated when the backup was created.
10. To edit the number of save sets or versions that the Microsoft application agent cache retrieves, specify a number in the
Number of entries to retrieve field.
You can specify a value of 1 through 10000. The default value is 50.
11. To perform a tail-log backup of the data before performing a restore operation, select Take tail-log backup before
restore.
A tail-log backup ensures that the Microsoft application agent backs up the data that has changed since the previous
backup.
NOTE:
● The Microsoft application agent for Application Direct does not support tail-log backups of multiple databases.
● This option is disabled if the Restore backups as files or Verify only options are selected.
12. To ensure exclusive access to the database during the restore operation if multiple connections exist, select Close existing
connections to destination database.
13. To start the restore operation, click Run.
130 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Monitor the restore operation
After a database restore operation is run from the Microsoft app agent for Application Direct SSMS plug-in, the Database
Restore > Monitor page displays the restore script and status.
The following figure shows the restore information and status as it appears on the Monitor page.
NOTE: For information about the success or failure of the restore operation, review the log files that are located in the
installation folder. The typical location of the log files is C:\Program Files\DPSAPPS\MSAPPAGENT\logs.
NOTE: In the syntaxes, the options that are enclosed in square brackets, that is, [ and ] are optional.
To perform specific backup-related and restore-related operations, the Microsoft application agent also supports the
ddbmadmin.exe command besides the msagentadmin.exe command. However, the ddbmadmin.exe command is
deprecated.
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 131
Syntax to restore databases on a stand-alone server
Run the following command to restore databases in a stand-alone environment:
where:
-c <client_name>
Specifies the Microsoft SQL Server hostname, to which you want to restore the required databases.
A Microsoft SQL Server host contains the backed-up stand-alone or clustered Microsoft SQL Server
instances and the corresponding databases.
-S {normal | norecover | standby:<filepath>\undo.ldf}
Performs one of the following tasks:
● normal: Enables you to roll back uncommitted transactions and use the database to restore the
most recent or additional transaction logs.
● norecover: Disables your ability to roll back uncommitted transactions and use the database to
restore the most recent or additional transaction logs.
● standby:<filepath>\undo.ldf: Enables you to undo committed transactions, saves the undo actions
in a standby file that enables you to reverse the restore effects, and puts the database in the
read-only mode.
-a "NSR_DFA_SI_DD_HOST=<server_name>"
Specifies the name of the DD server that contains the backup.
When you have a remote (secondary) DD server that has replicated databases to restore, type the name
of the secondary server. A DD user on the secondary DD server must be in the same group as the
primary server.
-a "NSR_DFA_SI_DD_USER=<DD_Boost_user>"
Specifies the username of the DD Boost user.
You must register the hostname and the DD Boost username in the lockbox to enable Microsoft
application agent to retrieve the password for the registered user.
-a "NSR_DFA_SI_DEVICE_PATH=<storage_unit_name_and_path>"
Specifies the name and the path of the storage unit that contains the backup.
"<restore_path>"
Specifies the path to the backup objects that you want to restore.
Type the restore path in one of the following formats:
● For a default instance, type the path in one of the following formats:
○ To restore backups of the entire instance, type MSSQL:
○ To restore backups of specific databases, type [MSSQL:]<database>
[[MSSQL:]<database> [...]]
For example: "MSSQL:database1" "MSSQL:database2"
● For a named instance, type the path in one of the following formats:
○ To restore backups of the entire instance, type MSSQL$<Instance_Name>:
○ To restore backups of specific databases, type MSSQL$<Instance_Name>:<database>
[...]
For example: "MSSQL$SqlInst1:database1" "MSSQL$SqlInst1:database2"
132 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Syntax to restore databases in an Always On availability group
Run the following command to restore databases in an Always On availability group environment:
Run the following command to restore databases in a clusterless Always On availability group (AAG) environment:
NOTE: For a clusterless AAG, you must add the option -a "SKIP_CLIENT_RESOLUTION=TRUE" and specify
<AAG_name>_<AAG_GUID> with the -c option.
where:
-c <client_name>
Specifies the Windows cluster name for the restore.
To perform a redirected restore, specify a Microsoft SQL Server host that is not the current host.
-c <AAG_name>_<AAG_GUID>
Specifies the clusterless AAG for the restore, for example, -c AAG1_ef770eaf-ebe3-f5be-
bdff-3a7243ff1236.
-A <virtual_server>
Specifies the virtual server FQDN to restore the databases from the Microsoft SQL Server clustered
instance.
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 133
"<restore_path>"
Specifies the path to the backup objects that you want to restore.
Type the backup path in one of the following formats:
● For a default instance, type the path in one of the following formats:
○ To restore backups of the entire instance, type MSSQL#<aag_name>:
○ To restore backups of specific databases, type [MSSQL#<aag_name>:]<database>
[[MSSQL#<aag_name>:]<database> [...]]
For example: "MSSQL#aag1:database1" "MSSQL#aag1:database2"
● For a named instance, type the path in one of the following formats:
○ To restore backups of the entire instance, type MSSQL$<Instance_Name>#<aag_name>:
○ To restore backups of specific databases, type
MSSQL$<Instance_Name>#<aag_name>:<database> [...]
For example: "MSSQL$SqlInst1#sql2012-aag3:database1"
"MSSQL$SqlInst1#sql2012-aag3:database2"
ddbmsqlrc.exe -a "SKIP_CLIENT_RESOLUTION=TRUE" -c
clusterlessa_6f27c29c-5d83-0062-8301-357210660ac6 -S normal -a
"NSR_DFA_SI_DD_HOST=10.31.140.154" -a "NSR_DFA_SI_DD_USER=ost"
-a "NSR_DFA_SI_DEVICE_PATH=/aru" -a "NSR_DFA_SI_DD_LOCKBOX_PATH=C:
\Program Files\DPSAPPS\common\lockbox" -C "'ClusterlessADB01'='H:
\MSSQL14.MSSQLSERVER\MSSQL\DATA\ClusterlessADB01.mdf', 'ClusterlessADB01_log'='H:
\MSSQL14.MSSQLSERVER\MSSQL\DATA\ClusterlessADB01_log.ldf'" -f -d MSSQL:ClusterlessADB01
MSSQL:ClusterlessADB01
134 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
You can see the generated files in the
<flat_file_recovery_folder>\<client_name>\<instance_name> location.
-a "DDBOOST_COMPRESSED_RESTORE={TRUE | FALSE}"
Compresses the restore contents and transports them from the DD Replicator to the application host.
This option saves network bandwidth.
The default value is FALSE.
-a "RESTORE_START_TIME=<start_date_and_time>"
Restores all the backups that were performed at or after a specified backup time (start date and time)
and up to the backup time of the selected save set, that is, -t <Last_Backup_Time_Stamp>.
Specify the start date and time in the <mm>/<dd>/<yyyy> <hr>:<mins>:<secs> {AM | PM} format.
The start date and time must not be after the backup time of the selected save set, that is, -t
<Last_Backup_Time_Stamp>.
-a "RESTORE_TO_SOURCE_PATH=TRUE"
Ensures that the backup is restored to the original source path by default. The -a
"RESTORE_TO_SOURCE_PATH=TRUE" option is overridden if the -C or -H relocation options are used.
-a "CLOSE_SQL_CONNECTIONS={TRUE | FALSE}”
Specifies whether to enable exclusive access to the target database by changing the database to single
user mode during the restore operation to ensure a successful recovery.
-$ <instance>
Specifies the target Microsoft SQL Server instance that contains the target databases that you want to
restore. The default value is the instance where the backup was taken.
Type the value in one of the following formats:
● For the default instance, type MSSQL
● For a named instance, type MSSQL$<instance_name>
-d <destination_database>
Specifies the target database, to which you want to restore the backup.
Type the value in one of the following formats:
● <destination_database_name>
● MSSQL:<destination_database_name>
● MSSQL$<instance_name>:<destination_database_name>
-C file=path,file2=path2,...
Relocates the database files (.mdf, .ndf, and .ldf) to a different folder.
You cannot use the -C parameter and the -H parameter in the same operation.
-H " '<source_path>';'<destination_path>'"
Relocates file paths and all files contained in a path to a different location during a restore operation.
The -H command option can be used to relocate multiple file paths in the same command line.
The -H option is supported on standard and redirected restores, which includes the following:
● Normal restore—Same server and same instance.
● Different instance restore—Same server and different instance.
● Restore to different database file.
● Different server restore.
To relocate individual files, see the table entry for the -C option.
You cannot use the -C option and the -H option in the same operation.
-f
Overwrites the existing database with the current database that you restore if the names of both the
databases are same.
NOTE: After you perform a system database rebuild in the Microsoft SQL Server, you must specify
the WITH REPLACE option with the ddbmsqlrc.exe command when you restore the system
databases, including master, model, and msdb.
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 135
-q
Displays ddbmsqlsv messages in the quiet mode, that is, the option displays summary information and
error messages only.
-k
Specifies to perform a checksum before restoring the data.
-u
Specifies to perform a checksum before the restore operation but to proceed with the operation even in
the case of errors.
-D <debug_level_1_through_9>
Generates detailed logs that you can use to troubleshoot backup issues. The default value is 0 (zero).
-a "DELETE_DEBUG_LOG_DAYS=<days>"
Specifies to delete debug log files that are older than the specified number of days. The valid range is
between 1 and 32767. By default, debug logs are not deleted. Regularly deleting debug logs prevents the
log folder on the installation drive from becoming too large.
This parameter only deletes debug logs named in the default format and located in the logs folder at
<installation_path>\MSAPPAGENT\logs.
-V
Verifies whether the restore process meets the following requirements:
● The backup set that you want to restore is complete and all volumes are readable
● Header fields, such as database page IDs, are ready to write data
● Whether the backup was performed by using the checksum option
● Whether the destination host has sufficient space to restore data
-l incr
Restores from the last transaction log backup.
When you use the -l incr option, you must restore the backup chain in order. For example, consider
the following backup history:
● A full backup taken at 1:31:49PM
● A logs only backup taken at 1:32:42PM
● A logs only backup taken at 1:34:03PM
● A logs only backup taken at 1:34:50PM
To restore this backup chain, perform the following steps:
1. Type the following command to restore up to the second last transaction log backup:
ddbmsqlrc.exe -a NSR_DFA_SI_DD_HOST=10.34.156.120 -a
NSR_DFA_SI_DD_USER=ost -a NSR_DFA_SI_DEVICE_PATH=/msappstu4 -a
NSR_DFA_SI_DD_LOCKBOX_PATH=C:\Program Files\DPSAPPS\common\lockbox
-c mars-jupiter.planets.com -a SKIP_CLIENT_RESOLUTION=TRUE -f -t
09/06/2017 01:34:03 PM -S norecover MSSQL$TESTDB02:info3
2. Type the following command to restore the last transaction log backup with -l incr:
ddbmsqlrc.exe -a NSR_DFA_SI_DD_HOST=10.34.156.120 -a
NSR_DFA_SI_DD_USER=ost -a NSR_DFA_SI_DEVICE_PATH=/msappstu4 -a
NSR_DFA_SI_DD_LOCKBOX_PATH=C:\Program Files\DPSAPPS\common\lockbox -c
mars-jupiter.planets.com -a SKIP_CLIENT_RESOLUTION=TRUE -f -l incr -S
normal MSSQL$TESTDB02:info3
136 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
● READ_WRITE_FILEGROUPS: Recovers only the read/write (active) filegroups from the
backup. This option can only be used to recover backups performed with the
READ_WRITE_FILEGROUPS option. You cannot specify filegroup or file-level recover targets with
the READ_WRITE_FILEGROUPS option.
If you are relocating multiple filegroups during the restore, you can use the -H option for global
relocation.
After you restore a backup with the READ_WRITE_FILEGROUPS option, any read-only filegroups in
the database will enter the recovery pending state and the rest of the filegroups will go online.
There are two different scenarios to recover cumulative incremental READ_WRITE_FILEGROUPS
backups:
○ If you have taken a full READ_WRITE_FILEGROUPS backup prior to the cumulative incremental
backup, the Microsoft application agent will chain together the two backups in the correct order
and complete the restore.
○ If you have not taken a full READ_WRITE_FILEGROUPS backup but want to use a normal
full backup as the differential base for the cumulative incremental READ_WRITE_FILEGROUPS
backup, you must first restore the full backup normally and leave the database in no recovery
mode, and then apply the READ_WRITE_FILEGROUPS differential backup with the -z option.
-z
Enables implementation of a recovery plan in independent command line operations. Normally the
Microsoft application agent builds the recovery plan, ensuring that all the required backups are available
and that they run in the proper order and with the proper options. The -z option removes safety checks.
This option is used in more complex recoveries. The following example commands use the following
backup history:
● savetime 1:00 - full backup
● savetime 2:00 - txnlog backup
● savetime 3:00 - txnlog backup
To recover multiple backups and restore a database in a single command, run the following command:
This command recovers the entire recovery chain, from the first full backup to the last logs-only backup.
To recover this recovery chain and restore a database in a series of independent commands, run the
following commands:
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 137
● savetime 6/21/2019 12:10:35 PM - full read/write filegroup backup with -O
"READ_WRITE_FILEGROUPS" option
● savetime 6/21/2019 12:21:30 PM - txnlog backup
● savetime 6/21/2019 12:25:34 PM - txnlog backup
To perform a point-in-time restore of the active filegroup, run the following commands:
1. Restore the filegroup backup in norecover mode:
3. Complete the point-in-time restore in normal mode to a time before the final log backup:
USE [master]
GO
DECLARE @returnCode int
EXEC @returnCode = dbo.emc_run_restore ' -c win8sqlsp.sharepoint.com -f
-t "02/03/2015 04:04:36 AM" -S normal -a "NSR_DFA_SI_DD_HOST=10.31.192.10"
-a "NSR_DFA_SI_DD_USER=ost" -a "NSR_DFA_SI_DEVICE_PATH=/ddsub7" -d
"MSSQL:dbtest" "MSSQL:db100"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
You can use any Microsoft SQL Server standard interfaces, such as the SSMS Query window and OSQL command prompt tool,
to run the SQL-CLR scripts.
Best practices to back up Microsoft SQL Server with Application Direct provides guidelines for better performance of Microsoft
SQL Server restores by using the Microsoft application agent for Application Direct SQL-CLR scripts.
NOTE: When the data to be restored exists in a Cloud Tier, perform a recall operation prior to the push restore operation.
138 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Steps
1. Start SSMS on a different host that you use to perform the restore.
2. Connect to the destination Microsoft SQL Server instance on the destination host.
3. In the SSMS window on the different host, click New Query.
4. In the New Query window, run the T-SQL script to perform the restore.
Results
You can either generate the T-SQL script by using the Microsoft application agent SSMS plug-in GUI on the destination host
and copy it to the New Query window on the different host or write the T-SQL script in the New Query window. Restore a
database with the Microsoft app agent for Application Direct plug-in and Perform database restores with T-SQL scripts provide
information.
T-SQL push restore script
Consider the following example T-SQL push restore script:
USE [master]
GO
DECLARE @returnCode int
EXEC @returnCode = dbo.emc_run_restore ' -c clust-sql-01.contoso.com
-A clust-sql-02.contoso.com -f -t "06/22/2015 02:38:48 PM" -S normal
-a "NSR_DFA_SI_DD_HOST=nmmddtwo.sp2010.com" -a "NSR_DFA_SI_DD_USER=ost"
-a "NSR_DFA_SI_DEVICE_PATH=/ddbmav2b75" -d "MSSQL$Inst1:CLUST-SQL-02-
DB02" "MSSQL$Inst1:CLUST-SQL-02-DB01"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
where:
● clust-sql-01.contoso.com is the source host from which the backup was performed.
● Inst1 is the destination Microsoft SQL Server instance, to which you must connect from the different host to perform the
restore.
● CLUST-SQL-02-DB02 is the destination database.
● CLUST-SQL-02-DB01 is the database that was backed up from the source host.
USE [master]
GO
DECLARE @returnCode int
EXEC @returnCode = dbo.emc_run_restore '-a
"NSR_DFA_SI_DD_HOST=ddve-01" -a "NSR_DFA_SI_DD_USER=sqlboost" -a
"NSR_DFA_SI_DEVICE_PATH=/sqlboost" -a "NSR_DFA_SI_DD_LOCKBOX_PATH=C:
\Program Files\DPSAPPS\common\lockbox" -c sql2012clus3.brsvlab.local -
C" 'testdb1_Data'='E:\sql2012_data\ database1.mdf', 'testdb1_Log'='F:
\sql2012_log\database1_log.LDF'" -f -S normal -$ "MSSQL$SQ12INST4:" -d
"MSSQL$SQ12INST4:database1" "MSSQL$SQ12INST4:database1"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
Sample T-SQL script to restore a federated backup to a different instance and database (redirected restore)
USE [master]
GO
DECLARE @returnCode int
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 139
EXEC @returnCode = dbo.emc_run_restore '-a
"NSR_DFA_SI_DD_HOST=ddve-01" -a "NSR_DFA_SI_DD_USER=sqlboost" -a
"NSR_DFA_SI_DEVICE_PATH=/sqlboost" -a "NSR_DFA_SI_DD_LOCKBOX_PATH=C:
\Program Files\DPSAPPS\common\lockbox" -c sql2012clus3.brsvlab.local -
C" 'testdb1_Data'='E:\sql2012_data\database1.mdf', 'testdb1_Log'='F:
\sql2012_log\database1_log.LDF'" -f -S normal -$ "MSSQL$SQ12INST4:" -d
"MSSQL$SQ12INST5:copy-database1" "MSSQL$SQ12INST4:database1"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
USE [master]
GO
DECLARE @returnCode int
EXEC @returnCode = dbo.emc_run_restore '-a
"NSR_DFA_SI_DD_HOST=ddve-01" -a "NSR_DFA_SI_DD_USER=sqlboost" -a
"NSR_DFA_SI_DEVICE_PATH=/sqlboost" -a "NSR_DFA_SI_DD_LOCKBOX_PATH=C:
\Program Files\DPSAPPS\common\lockbox" -c sql2012clus3.brsvlab.local -
f -S normal -$ "MSSQL$SQ12INST4:database1" "MSSQL
$SQ12INST4:database2"'
IF @returnCode <> 0
BEGIN
RAISERROR ('Fail!', 16, 1)
END
140 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Launching the Microsoft application agent for Application Direct
SSMS plug-in
To launch the Microsoft application agent for Application Direct SSMS plug-in, perform the following steps.
1. From the Windows Start menu, select Microsoft SQL Server Management Studio.
2. In the Microsoft SQL Server Management Studio, in the Connect to Server window, specify the server information and
credentials, and then click Connect.
3. On the toolbar, click Microsoft App Agent (Application Direct).
NOTE: If the Microsoft App Agent (Application Direct) button is not on the toolbar, the plug-in may be unable to
register. In this scenario, you can launch the plug-in directly from the Start menu. From the Windows Start menu, select
DDBMA Plugin for SQL Server Management Studio.
Steps
1. Open the Microsoft app agent for Application Direct window to the Table Restore > General page.
The General page appears as shown in the following figure.
The Microsoft application agent caches Microsoft SQL Server restore settings. The Microsoft application agent
automatically loads the information from the last recovery operation and populates restore settings. Caching saves time
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 141
by eliminating the need to reselect the settings each time you run a restore operation. To clear the cached settings, click
Clear Cache.
2. Use the PowerProtect DD System field to select the DD server and the storage unit to restore the data. A storage unit
contains the backed-up Microsoft SQL Server hosts.
NOTE: When you want to restore a replicated backup from a secondary DD server, select the relevant server. The DD
user on the secondary DD server must be in the same group as the primary DD server.
3. From the SQL Server host list, select the Microsoft SQL Server host that contains the backup. Select the Windows cluster
name in the case of federated backups.
To perform a redirected restore, select the Microsoft SQL Server host where you want to restore the backup to.
4. From the SQL Server Instance list, select the Microsoft SQL Server instance that contains the backup.
5. From the Database list, select the database that you want to restore.
The corresponding save sets appear in the save sets table that is located below the Browse time field.
6. To select the backup that you want to restore, perform either of the following actions:
● Select a save set in the save sets table that is located below the Browse time field. Use the backup timestamp to
choose the backup.
● To browse for a backup that is not listed, perform the following steps:
○ From the Browse time list, select a date and time, and then click Show Versions.
○ From the save sets table, select the save set with the timestamp that you want to restore.
Click < < Older or Newer > > to browse additional save sets.
7. To mount the backup and proceed with the table restore, click Run.
Results
The backup is mounted and the ItemPoint for Microsoft SQL Server GUI appears.
Steps
1. From the left panel, click Options.
The Options page appears as shown in the following figure.
142 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Figure 16. Application Direct - Table Restore-Options page
2. In the Mount Folder field, specify the location to mount the backup images.
NOTE: The location (folder or drive) to mount the backup images must be empty. Otherwise, the mount operation fails.
To mount the backup as a drive, specify an unused drive letter. The restore operation, after completion, deletes the
mount location.
3. In the Mount Expire list, specify the number of hours, after which the mounted backup image must be dismounted. The
default value is 8. The valid range is between 1 and 24 hours.
4. To select the level of information recorded in the logs which can be used in troubleshooting recovery issues, select Select a
debug level.
Levels range 0-9, with 0 representing no information and 9 representing the most amount of information. The default value
is 0 (zero).
5. To change the restore parallelism setting, type or select a value in the Parallelism field.
Parallelism controls the number of recovery sessions the NWFS process uses while mounting a backup. The default and
maximum value is 31.
6. To mount the backup and proceed with the table restore, click Run.
Results
The backup is mounted and the ItemPoint for Microsoft SQL Server GUI appears.
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 143
Monitor the table restore mount operation
After a table-level restore mount operation is run from the Microsoft app agent for Application Direct SSMS plug-in, the Table
Restore > Monitor page displays the mount script and status.
The following figure shows the mount information and status as it appears on the Monitor page.
NOTE: For information about the success or failure of the restore operation, review the log files that are located in the
installation folder. The typical location of the log files is C:\Program Files\DPSAPPS\MSAPPAGENT\logs.
Prerequisites
Configure and run the table level restore operation with the Table Restore tab in the Microsoft application agent SSMS plug-in.
NOTE: ItemPoint 8.6.1 as integrated with the Microsoft application agent now supports the Microsoft SQL Server
Transparent Data Encryption (TDE). However, only the AES_128, AES_192, and AES_256 encryption algorithms are
supported.
144 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
If you select Do not run ItemPoint after mounting the backup images when you configure the table level restore, you must
manually launch ItemPoint, and then launch the Data Wizard.
Steps
1. On the Select Source page, select the source backup files from the mounted volume that contains the Microsoft SQL
Server backup data as shown in the following figure, and then click Next.
2. On the Select Target Server page, specify the details and login credentials for the target Microsoft SQL Server and
database. The following figure shows the ItemPoint Data Wizard Select Target Server page.
NOTE: When you want to connect to a Microsoft SQL Server instance with a non-English name, you can use the
workaround that connects using the port number. On the Select Target Server page, you must add a space and the
port number after the name in the SQL Server Name field. The following figure shows the required type of field entry.
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 145
Figure 20. ItemPoint Data Wizard: non-English instance name
3. Click Finish.
The Data Wizard closes and ItemPoint loads the tables contained in the source backup files.
4. Use ItemPoint to browse and restore the individual tables.
NOTE: The PowerProtect ItemPoint for Microsoft SQL Server User Guide provides more information on using ItemPoint
for Microsoft SQL Server to restore table-level data.
5. To dismount the mounted backup images, exit ItemPoint for Microsoft SQL Server.
NOTE: If you select Leave backup images mounted after ItemPoint exits or Do not run ItemPoint after
mounting the backup images when you configure the mount operation, the backup image remains mounted for 4
hours. To dismount the backup manually, use the msagentadmin command.
Steps
1. Create a target Windows host with the same name as the source hostname.
2. Install a Microsoft SQL Server instance with the same name as the source instance name.
3. Install the Microsoft application agent on the target Windows host.
4. Browse the backups of the source instance by selecting the appropriate storage unit.
5. Restore the Microsoft SQL Server system databases, such as databases named master, model, msdb, and so on, to the
target instance.
6. Restore all the user databases to the target instance.
146 Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases
Perform disaster recovery from the Cloud Tier
The Microsoft application agent provides a command line tool to complete disaster recovery of save sets that are located in a
Cloud Tier.
After an MTree is recovered according to the disaster recovery procedure described in Perform Microsoft SQL Server disaster
recovery, you must restore the backup indexes from the Cloud Tier.
When the Microsoft application agent moves a backup to the cloud, the index files are maintained on the active tier. A copy of
the index files is created and moved to the cloud tier for long-term retention.
After an MTree is restored during a disaster recovery, all the files that resided only on the active tier are lost and unavailable.
Only the files that were moved to the cloud are available.
In this case, you must run msagentadmin administration with the --dr-recall or -M flag to restore the indexes.
After the indexes are recalled to the active tier, the data save sets for the same time range are also recalled unless you type n
when prompted with Continue with the recall of the found save sets [y/n]. If you choose to not recall the
save sets, you can manually recall the save sets later.
Type the msagentadmin administration command with the following syntax to recall the indexes to the active tier:
where:
--dr-recall
Specifies an operation to recall save sets for disaster recovery.
You can use the -M alias for the --dr-recall parameter.
--ddhost "<DD_server_name>"
Specifies the name of the DD server that contains the storage unit, to which you backed up the
databases.
--ddpath "<storage_unit_name_and_path>"
Specifies the name and the path of the storage unit, to which you backed up the databases.
--dduser "<DD_Boost_username>"
Specifies the username of the DD Boost user.
--appID "mssql"
Specifies the application ID (namespace) to locate backups.
You can use the -n alias for the --appID parameter.
Consider the following example commands to perform disaster recovery of Microsoft SQL Server with data located on a Cloud
Tier device:
Cloud tier disaster recovery recall command without a configuration file
Performing Self-Service Application Direct Restores of Microsoft SQL Server Databases 147
6
Performing Centralized Restores of
Application Direct Backups
Topics:
• Centralized restores of Microsoft SQL Server Application Direct backups
• Considerations for centralized Microsoft SQL Server Application Direct restores
• Centralized restore of Microsoft SQL Server system databases
• Centralized restore of a Microsoft SQL Server stand-alone database
• Centralized restore of a Microsoft SQL Server AAG database
• Centralized restore of multiple Microsoft SQL Server databases
NOTE: If the directory path cannot be created during the centralized restore, the restore fails.
● Default file location as set by Microsoft SQL Server—Restores the backup data to the default file directory as used by
the Microsoft SQL Server.
● User-specified file location—Restores the backup data to file directories that you specify for the database files and log
files.
The following topics describe the considerations, prerequisites, and procedures for the supported types of centralized restores
of Microsoft SQL Server Application Direct backups.
Steps
1. In the PowerProtect Data Manager UI, select Restore > Assets and select the SQL tab.
The Restore window displays all the databases that are available for restore.
You can click or on the top right of the window to switch between the hierarchical (tree) view and list view.
The hierarchical view uses a tree view to show the hierarchical relationships of the Microsoft SQL Server hosts, their
application servers or instances (including Failover Cluster Instances (FCIs)), stand-alone database assets, and any Always
In the list view, to filter the displayed list of assets if needed, you can click in the column heading Name, Status,
Protection Policy, Host/Cluster/Group Name, Host Type, Application Name, Protection Type, Last Copy, or
Network:
● The Name column lists the Microsoft SQL Server database asset names.
● The Status column lists the status as Available, Deleted, or Not Detected.
● The Protection Policy column lists the names of the protection policies for the assets.
● The Host/Cluster/Group Name column lists the hostnames.
● The Host Type column lists the host types as AAG, FCI, or Standalone.
● The Application Name column lists the Microsoft SQL Server instance names.
● The Protection Type column lists the Application Direct or VM Direct protection type for each asset.
● The Last Copy column lists the dates and times of the backup copies within the specified date and time range.
● The Network column lists the networks that are available under the selected host or cluster.
NOTE: Only the assets that have backup copies are displayed. You can select assets only from the same Microsoft SQL
Server host and instance.
2. Select the check box next to the Microsoft SQL Server master, model, or msdb database, and click Restore.
The restore wizard opens on the Copy Selection page, which provides a life cycle roadmap that displays all the backup
copies available for each selected storage system.
3. On the Copy Selection page, select the backup copy that you want to restore, and then click Next.
To filter the displayed list of backup copies if needed, you can click in the column heading Copy Type, Create Time,
Copy Status, Location, or Storage Unit:
● The Copy Type column lists the backup copy types as Differential, Full, or Cumulative.
● The Create Time column lists the dates and times when the backup copies were created.
● The Copy Status column lists the backup copy status as Available, Deleting, Deletion Failed, Deletion Failed (Agent
Catalog), Cloud Tiering, Cloud Recalling, Replicating, Restoring, or Ready for Cloud Tiering.
● The Location column lists the backup copy locations as Local or Local_Recalled.
● The Storage Unit column lists the storage units of the backup copies.
4. On the Scope page, the default selection Restore to Microsoft SQL Server Instance cannot be changed.
NOTE: You cannot restore a system database to an Always On availability group.
6. On the Select File Location page, select one of the following options for Restore database files to, and then click Next:
● Original file location (location at backup time)
NOTE: If the directory path cannot be created on the target host during the centralized restore, the restore fails.
● Default file location as set by Microsoft SQL Server
● User-specified file location
NOTE:
When you select this option, you must specify the restore file directories for the database files and log files.
To restore a database to a different name, ensure that you specify a custom destination directory that is different
from the directory that contains the source mdf and ldf files.
7. On the Options page, select any the following options, and then click Next:
NOTE: The tail-log backup option is not supported for a system database.
When a database exists but the Overwrite Databases WITH REPLACE option is not selected, the restore fails.
After you perform a system database rebuild in the Microsoft SQL Server, you must specify the WITH REPLACE
option when you restore the system databases, including master, model, and msdb.
● Compressed Restore—Uses DD Boost compression for the restore operation.
● Disconnect Users—Disconnects the database users before the restore operation.
● Restore State—Select one of the following options:
○ RESTORE WITH RECOVERY—Leaves the database ready to use by rolling back the uncommitted transactions.
Additional transaction logs cannot be restored.
○ RESTORE WITH NO RECOVERY—Leaves the database nonoperational and does not roll back the uncommitted
transactions. Additional transaction logs can be restored.
● Troubleshooting mode—To enable troubleshooting logging, click the toggle button to change the setting to Enabled.
Then the Log level option field appears.
● Log level—If you enabled troubleshooting mode, select the preferred debug log level:
○ Info—Includes information such as status changes. This is the default log level for scheduled backups and restores.
○ Debug—Additional information that helps with problem diagnosis.
○ Trace—The most detailed amount of information for complex problem diagnosis.
8. On the Summary page:
a. Review the Select Copy, Scope, Location, File Location, and Options information to ensure that the restore details
are correct.
NOTE: When the specified database name matches the name of an existing database, the restore overwrites the
existing database.
b. Click Restore.
The restore operation starts. Then the Go to Jobs informational dialog box appears with a link to the Jobs page where
you can monitor the restore job.
Steps
1. In the PowerProtect Data Manager UI, select Restore > Assets and select the SQL tab.
The Restore window displays all the databases that are available for restore.
You can click or on the top right of the window to switch between the hierarchical (tree) view and list view.
The hierarchical view uses a tree view to show the hierarchical relationships of the Microsoft SQL Server hosts, their
application servers or instances (including Failover Cluster Instances (FCIs)), stand-alone database assets, and any Always
On availability groups (AAGs) with their database assets. When you expand the hierarchical view, you can see all the assets
and AAGs within a host and instance. When you select a host or instance container, all the contained assets and objects are
also selected. You can also select individual assets or a group of assets within the host or instance container.
In the list view, to filter the displayed list of assets if needed, you can click in the column heading Name, Status,
Protection Policy, Host/Cluster/Group Name, Host Type, Application Name, Protection Type, Last Copy, or
Network:
● The Name column lists the Microsoft SQL Server database asset names.
● The Status column lists the status as Available, Deleted, or Not Detected.
● The Protection Policy column lists the names of the protection policies for the assets.
● The Host/Cluster/Group Name column lists the hostnames.
● The Host Type column lists the host types as AAG, FCI, or Standalone.
2. Select the check box next to the stand-alone database, and click Restore.
The restore wizard opens on the Copy Selection page, which provides a life cycle roadmap that displays all the backup
copies available for each selected storage system.
3. On the Copy Selection page, select the backup copy that you want to restore, and then click Next.
To filter the displayed list of backup copies if needed, you can click in the column heading Copy Type, Create Time,
Copy Status, Location, or Storage Unit:
● The Copy Type column lists the backup copy types as Differential, Full, or Cumulative.
● The Create Time column lists the dates and times when the backup copies were created.
● The Copy Status column lists the backup copy status as Available, Deleting, Deletion Failed, Deletion Failed (Agent
Catalog), Cloud Tiering, Cloud Recalling, Replicating, Restoring, or Ready for Cloud Tiering.
● The Location column lists the backup copy locations as Local or Local_Recalled.
● The Storage Unit column lists the storage units of the backup copies.
4. On the Scope page, select one of the following options, and then click Next:
● Restore to Microsoft SQL Server Instance—Restores the database backup to a single server instance.
● Restore to Always On Availability Group—Restores the database backup to a database in an AAG.
During the restore, the database is removed from the AAG. After the restore, the database is added back to the AAG.
5. On the Location page, select one of the following options, and then click Next:
● Restore to Original—Restores and overwrites the selected database.
NOTE: If you selected to restore the database to an AAG, the Restore to Original option is unavailable. Stand-
alone or FCI databases cannot be restored to the original AAG location.
● Restore to Alternate—Restores the selected database to an alternate database or restores the selected database as a
new database on the same instance or a different instance.
Click or above the table to see the list of available databases. In the hierarchical view, you must expand the list
to see all the databases. The hierarchical view displays the databases for each instance on each available Microsoft SQL
Server host. A refresh icon next to each hostname enables you to request the rediscovery of all instances and databases
on a host:
○ To restore to an alternate database, select the alternate database from the database list.
○ To restore as a new database on the same instance or a different instance, click Restore as new database next
to the required instance name. In the Restore as new database dialog, type the name of the new database in the
Database Name field.
NOTE:
The database name must have 128 or fewer characters. Do not specify a Microsoft SQL Server system database
name such as master, model, msdb, or tempdb.
After the new database name is added to the database list, you can optionally delete the name from the list, if
needed, by clicking Remove next to the name.
6. On the Select File Location page, select one of the following options for Restore database files to, and then click Next:
● Original file location (location at backup time)
NOTE: If the directory path cannot be created during the centralized restore, the restore fails.
● Default file location as set by Microsoft SQL Server
● User-specified file location
NOTE:
When you select this option, you must specify the restore file directories for the database files and log files.
7. On the Options page, select any the following options, and then click Next:
● Overwrite Databases WITH REPLACE—Overwrites the existing databases during the restore operation.
NOTE:
When a database exists but the Overwrite Databases WITH REPLACE option is not selected, the restore fails.
After you perform a system database rebuild in the Microsoft SQL Server, you must specify the WITH REPLACE
option when you restore the system databases, including master, model, and msdb.
● Tail Log—Performs a tail-log backup.
NOTE: The tail-log backup option is displayed when the destination is the same as the host. This option is selected
by default.
● Compressed Restore—Uses DD Boost compression for the restore operation.
● Disconnect Users—Disconnects the database users before the restore operation.
● Restore State—Select one of the following options:
○ RESTORE WITH RECOVERY—Leaves the database ready to use by rolling back the uncommitted transactions.
Additional transaction logs cannot be restored.
○ RESTORE WITH NO RECOVERY—Leaves the database nonoperational and does not roll back the uncommitted
transactions. Additional transaction logs can be restored.
● Troubleshooting mode—To enable troubleshooting logging, click the toggle button to change the setting to Enabled.
Then the Log level option field appears.
● Log level—If you enabled troubleshooting mode, select the preferred debug log level:
○ Info—Includes information such as status changes. This is the default log level for scheduled backups and restores.
○ Debug—Additional information that helps with problem diagnosis.
○ Trace—The most detailed amount of information for complex problem diagnosis.
8. On the Summary page:
a. Review the Select Copy, Scope, Location, File Location, and Options information to ensure that the restore details
are correct.
NOTE: When the specified database name matches the name of an existing database, the restore overwrites the
existing database.
b. Click Restore.
The restore operation starts. Then the Go to Jobs informational dialog box appears with a link to the Jobs page where
you can monitor the restore job.
Steps
1. In the PowerProtect Data Manager UI, select Restore > Assets and select the SQL tab.
The Restore window displays all the databases that are available for restore.
You can click or on the top right of the window to switch between the hierarchical (tree) view and list view.
The hierarchical view uses a tree view to show the hierarchical relationships of the Microsoft SQL Server hosts, their
application servers or instances (including Failover Cluster Instances (FCIs)), stand-alone database assets, and any Always
On availability groups (AAGs) with their database assets. When you expand the hierarchical view, you can see all the assets
and AAGs within a host and instance. When you select a host or instance container, all the contained assets and objects are
also selected. You can also select individual assets or a group of assets within the host or instance container.
2. Select the check box next to the AAG database, and click Restore.
The restore wizard opens on the Copy Selection page, which provides a life cycle roadmap that displays all the backup
copies available for each selected storage system.
3. On the Copy Selection page, select the backup copy that you want to restore, and then click Next.
To filter the displayed list of backup copies if needed, you can click in the column heading Copy Type, Create Time,
Copy Status, Location, or Storage Unit:
● The Copy Type column lists the backup copy types as Differential, Full, or Cumulative.
● The Create Time column lists the dates and times when the backup copies were created.
● The Copy Status column lists the backup copy status as Available, Deleting, Deletion Failed, Deletion Failed (Agent
Catalog), Cloud Tiering, Cloud Recalling, Replicating, Restoring, or Ready for Cloud Tiering.
● The Location column lists the backup copy locations as Local or Local_Recalled.
● The Storage Unit column lists the storage units of the backup copies.
4. On the Scope page, select one of the following options, and then click Next:
● Restore to Microsoft SQL Server Instance—Restores the database backup to a single server instance.
● Restore to Always On Availability Group—Restores the database backup to a database in an AAG.
During the restore, the database is removed from the AAG. After the restore, the database is added back to the AAG.
5. On the Location page, select one of the following options, and then click Next:
● Restore to Original—Restores and overwrites the selected database.
NOTE: If you selected to restore the database to an AAG, the Restore to Original option is unavailable. Stand-
alone or FCI databases cannot be restored to the original AAG location.
● Restore to Alternate—Restores the selected database to an alternate database or restores the selected database as a
new database on the same instance or a different instance.
Click or above the table to see the list of available databases. In the hierarchical view, you must expand the list
to see all the databases. The hierarchical view displays the databases for each instance on each available Microsoft SQL
Server host. A refresh icon next to each hostname enables you to request the rediscovery of all instances and databases
on a host:
○ To restore to an alternate database, select the alternate database from the database list.
○ To restore as a new database on the same instance or a different instance, click Restore as new database next
to the required instance name. In the Restore as new database dialog, type the name of the new database in the
Database Name field.
NOTE:
The database name must have 128 or fewer characters. Do not specify a Microsoft SQL Server system database
name such as master, model, msdb, or tempdb.
After the new database name is added to the database list, you can optionally delete the name from the list, if
needed, by clicking Remove next to the name.
6. On the Select File Location page, select one of the following options for Restore database files to, and then click Next:
NOTE: If the directory path cannot be created during the centralized restore, the restore fails.
● Default file location as set by Microsoft SQL Server
● User-specified file location
NOTE:
When you select this option, you must specify the restore file directories for the database files and log files.
To restore a database to a different name, ensure that you specify a custom destination directory that is different
from the directory that contains the source mdf and ldf files.
7. On the Options page, select the required options and then click Next:
● Overwrite Databases WITH REPLACE—Overwrites the existing databases during the restore operation.
NOTE:
When a database exists but the Overwrite Databases WITH REPLACE option is not selected, the restore fails.
After you perform a system database rebuild in the Microsoft SQL Server, you must specify the WITH REPLACE
option when you restore the system databases, including master, model, and msdb.
● Tail Log—Performs a tail-log backup.
NOTE:
The tail-log backup option is supported only when the source and destination nodes are the same. When you restore
the database to all the nodes of the AAG by selecting Restore to all replicas, the credentials used for the restore
must provide access on all the nodes of the AAG.
When the tail-log backup is enabled, the backup is performed only on the primary node, irrespective of the backup
preference settings in the AAG group.
● Compressed Restore—Uses DD Boost compression for the restore operation.
● Disconnect Users—Disconnects the database users before the restore operation.
● Select the required option as follows, depending on your previous selection on the Scope page:
○ If you selected Restore to Microsoft SQL Server Instance on the Scope page:
Restore State—Select one of the following options:
■ RESTORE WITH RECOVERY—Leaves the database ready to use by rolling back the uncommitted transactions.
Additional transaction logs cannot be restored.
■ RESTORE WITH NO RECOVERY—Leaves the database nonoperational and does not roll back the uncommitted
transactions. Additional transaction logs can be restored.
○ If you selected Restore to Always On Availability Group on the Scope page:
Restore Replica—Select one of the following options:
■ Restore to all replicas—Restores the database to all the nodes of the AAG.
NOTE: A centralized AAG database restore using the Restore to all replicas option displays minimal restore
job steps on the Step Log tab in the details section of the Job ID Summary window. The job steps are
currently limited to "Database restore" and "Database postrestore".
■ Restore to primary—Restores the database to only the primary node of the AAG.
● Troubleshooting mode—To enable troubleshooting logging, click the toggle button to change the setting to Enabled.
Then the Log level option field appears.
● Log level—If you enabled troubleshooting mode, select the preferred debug log level:
○ Info—Includes information such as status changes. This is the default log level for scheduled backups and restores.
○ Debug—Additional information that helps with problem diagnosis.
○ Trace—The most detailed amount of information for complex problem diagnosis.
b. Click Restore.
The restore operation starts. Then the Go to Jobs informational dialog box appears with a link to the Jobs page where
you can monitor the restore job.
Prerequisites
Before you perform a multi-database restore, review the Considerations for centralized Microsoft SQL Server Application Direct
restores.
Steps
1. In the PowerProtect Data Manager UI, select Restore > Assets and select the SQL tab.
The Restore window displays all the databases that are available for restore.
You can click or on the top right of the window to switch between the hierarchical (tree) view and list view.
The hierarchical view uses a tree view to show the hierarchical relationships of the Microsoft SQL Server hosts, their
application servers or instances (including Failover Cluster Instances (FCIs)), stand-alone database assets, and any Always
On availability groups (AAGs) with their database assets. When you expand the hierarchical view, you can see all the assets
and AAGs within a host and instance. When you select a host or instance container, all the contained assets and objects are
also selected. You can also select individual assets or a group of assets within the host or instance container.
In the list view, to filter the displayed list of assets if needed, you can click in the column heading Name, Status,
Protection Policy, Host/Cluster/Group Name, Host Type, Application Name, Protection Type, Last Copy, or
Network:
● The Name column lists the Microsoft SQL Server database asset names.
● The Status column lists the status as Available, Deleted, or Not Detected.
2. Select the check box next to each database that you want to restore, and then click Restore.
The restore wizard opens on the Copy Selection page, which includes a notification that the multi-database restore uses
the latest backup copies on the storage target.
3. On the Copy Selection page, click Next to continue.
4. On the Location page, select one of the following options, and then click Next:
NOTE: A multi-database restore can restore only to the original database names.
Click or above the table to see the list of available instances. In the hierarchical view, you must expand the list to
see all the instances on each available Microsoft SQL Server host.
5. On the Select File Location page, select one of the following options for Restore database files to, and then click Next:
● Original file location (location at backup time)
NOTE: If the directory path cannot be created during the centralized restore, the restore fails.
● Default file location as set by Microsoft SQL Server
● User-specified file location
NOTE:
When you select this option, you must specify the restore file directories for the database files and log files.
To restore a database to a different name, ensure that you specify a custom destination directory that is different
from the directory that contains the source mdf and ldf files.
6. On the Options page, select any the following options, and then click Next:
NOTE: The tail-log backup option is not supported for a multi-database restore.
● Overwrite Databases WITH REPLACE—Overwrites the existing databases during the restore operation.
NOTE:
When a database exists but the Overwrite Databases WITH REPLACE option is not selected, the restore fails.
After you perform a system database rebuild in the Microsoft SQL Server, you must specify the WITH REPLACE
option when you restore the system databases, including master, model, and msdb.
● Compressed Restore—Uses DD Boost compression for the restore operation.
● Disconnect Users—Disconnects the database users before the restore operation.
● Restore State—Select one of the following options:
○ RESTORE WITH RECOVERY—Leaves the database ready to use by rolling back the uncommitted transactions.
Additional transaction logs cannot be restored.
○ RESTORE WITH NO RECOVERY—Leaves the database nonoperational and does not roll back the uncommitted
transactions. Additional transaction logs can be restored.
● Troubleshooting mode—To enable troubleshooting logging, click the toggle button to change the setting to Enabled.
Then the Log level option field appears.
b. Click Restore.
The restore operation starts. Then the Go to Jobs informational dialog box appears with a link to the Jobs page where
you can monitor the restore job.
NOTE: After you set disk.EnableUUID to TRUE, ensure that you reboot the virtual machine.
● The virtual machine must use SCSI disks only and the number of available SCSI slots must match the number of disks at a
minimum.
For example, a virtual machine with 7 disks requires one SCSI controller but a virtual machine with 8 disks requires 2 SCSI
controllers.
● The Microsoft SQL Server instance must be up and running on the virtual machine.
● The Microsoft SQL Server must be a stand-alone instance or part of a clustered or clusterless Always On availability group
that is configured with file share witness.
● The SQL writer service must be running.
● The full computer name and FQDN for the Microsoft SQL Server virtual machine that are added in the application-aware
protection policy must be identical and have the DNS resolve.
● The user account that is configured in the PowerProtect Data Manager protection policy must have access to perform
backup and recovery operations.
To configure the required permissions, perform the following steps on each protected Microsoft SQL Server instance:
1. Create a SQL Login with the user account configured in the PowerProtect Data Manager protection policy.
2. Add the user the sysadmin Microsoft SQL Server role.
● The Microsoft SQL Server to which the data will be restored must be hosted on a virtual machine that is a discovered asset
of PowerProtect Data Manager.
NOTE: If you are restoring data to an alternate location to a Microsoft SQL Server virtual machine that is not protected
in PowerProtect Data Manager, you must manually install the Microsoft application agent on the target virtual machine
before you can restore the data. The PowerProtect Microsoft Application Agent Installation Guide provides instructions
to install the Microsoft application agent for VM Direct. When you configure the restore operation, you must manually
register the DD server, PowerProtect Data Manager appliance, and lockbox details.
Restoring a backup that was moved to the cloud using Cloud Tier
An application-aware workflow supports application-aware full backups that are tiered to the cloud using Cloud Tier. This
support is available for Amazon Web Services (AWS) and Elastic Cloud Storage (ECS) profiles.
For a Microsoft SQL Server database recovery from backups that have been tiered using an application-aware workflow, the
backups must be recalled to the active tier before you perform the recovery.
When you try to restore a backup after an associated full backup has been moved to the cloud using Cloud Tier, the restore
operation fails with the following error message:
This error occurs when you try to restore either a full backup that has been tiered to the cloud or a tail-log backup when the
associated full backup has been tiered to the cloud. For example, the following full and tail-log backups are performed at the
specified times:
● FULL1: 10:00 a.m. (in cloud tier)
● TLOG1: 10:30 a.m.
● TLOG2: 11:00 a.m.
● FULL2: 11:15 a.m. (in active tier)
● TLOG4: 11:30 a.m.
● TLOG5: 12:00 p.m.
In this case, the restore of the FULL1, TLOG1, or TLOG2 backup fails with the error message because the FULL1 backup has
been tiered to the cloud. The restore of the FULL2, TLOG4, or TLOG5 backup succeeds because the FULL2 backup is in the
active tier.
To resolve this issue, contact the PowerProtect Data Manager administrator to recall the associated full backup (FULL1 in this
example) from the cloud tier to the active tier, and then perform the restore.
Steps
1. From the Windows Start menu, select Microsoft SQL Server Management Studio.
2. In the Microsoft SQL Server Management Studio, in the Connect to Server window, specify the server information and
credentials, and then click Connect.
3. On the toolbar, click Microsoft App Agent (VM Direct).
The Microsoft app agent for VM Direct window appears.
NOTE: If the Microsoft App Agent (VM Direct) button is not on the toolbar, the plug-in may be unable to register. In
this scenario, you can launch the plug-in directly from the start menu. From the Windows Start menu, select DDBMA
Plugin for SQL Server Management Studio and select Run as administrator for UAC enabled environments.
Steps
1. Open the Microsoft app agent for VM Direct window to the Database Restore > General page.
The General page appears as shown in the following figure.
The SQL Server host field is updated with the client backups that are available on the selected DD server storage unit.
4. From the SQL Server host list, select the Microsoft SQL Server host that is the source of the backup.
If you are restoring an AAG database, you must select the Windows cluster name, which enables you to browse the list of
AAGs hosted on this cluster.
If you are restoring a clusterless AAG database, you must select the AAG group name, which enables you to browse the list
of AAGs hosted on the clusterless AAG group. In the case of a clusterless AAG, the AAG name plus GUID is displayed.
5. Use the Start browsing from list to select a backup save time, and then click Show Versions.
The SQL Server Instance field and save sets table are updated with the backups that are within the specified browse time.
If no level full backups are found in the specified time range, you are prompted for confirmation to load the latest full backup.
7. From the database table, select either the entire Microsoft SQL Server instance by selecting the check box in the header
row or select only the required databases to restore.
The corresponding save sets appear in the save sets table that is below the databases table.
8. For single database restores, from the save sets table, select the database backup and timestamp that you want to restore.
By default, the most recent backup is selected.
NOTE: This step only applies to single database restores. For multiple database and instance-level restores, the most
recent backup is restored.
9. (Optional) To restore the database to a specific point-in-time, perform the following steps:
a. Under Destination, click Timeline.
The Backup Timeline dialog box appears as shown in the following figure.
If you are restoring the backup to an alternate instance, the data and log files are automatically relocated to the
target Microsoft SQL Server instance default data and log path. You can change the file destination settings on
the Files page.
If you are restoring an AAG database, select the target instance that is part of the AAG for the restore. You must
remove the database from the AAG first. You can add the database back to the AAG after the restore completes.
c. From the Database list, select or type the name of the database where the backup will be restored to.
If the database exists, the operation prompts you for confirmation to overwrite the database.
● To recover the database as flat-files, perform the following steps:
a. Select Restore backups as files.
b. In the Folder field, specify the destination for the files. The Folder field is populated with the default destination
path.
To perform a redirected restore, change the destination path by clicking ... beside the Folder field, and specifying the
required destination.
NOTE:
Ensure that the destination path is not a root drive, for example, E:\.
Next steps
Specify the PowerProtect Data Manager server details and additional restore options on the Options page. Also, to change the
file destination settings, use the Files page.
If you are restoring the backup to an alternate instance, the data and log files are automatically relocated to the target
Microsoft SQL Server instance default data and log path. You can change the file destination settings on the Files page.
Ensure that the Microsoft SQL Server administrative account for the target Microsoft SQL Server instance has access to
the selected path so that it can access the database files once they are mounted.
Steps
1. From the left panel, click Files.
The Files page appears as shown in the following figure.
The table on the page displays the source locations of the database files.
2. To change the destination paths of all of the data and log files, perform the following steps:
a. Select Relocate all files to folder.
b. Click the Data file folder browse button to specify a location for the data files, or click inside the field to type the folder
path.
c. Click the Log file folder browse button to specify a location for the log files, or click inside the field to type the folder
path.
3. To change the destination path at the file group level, perform one of the following actions in the table:
● To browse for a destination path, click the browse button to the right of each file group.
A window appears where you can browse and select the file path.
● To type a new destination path, in the Restore To column, click the appropriate cell and type a destination path.
If the path does not exist, a dialog box appears asking if you want to create the folder.
NOTE: Ensure that the destination paths are not root drives, for example, E:\.
Next steps
Specify the PowerProtect Data Manager server details and additional restore options on the Options page.
Steps
1. From the left panel, click Options.
The Options page appears as shown in the following figure.
Option Description
RESTORE WITH (Default) To leave the database in the ready-to-use state by rolling back uncommitted
RECOVERY transactions, and disable the ability to restore the latest or additional transaction logs.
RESTORE WITH To leave the database in the non-operational state by not rolling back uncommitted
NORECOVERY transactions, and enable the ability to restore the latest or additional transaction logs.
3. To compress the restore contents and transport them from the DD Replicator to the application host, select PowerProtect
DD System Boost compressed restore.
This option reduces network bandwidth.
Regularly deleting debug logs prevents the log folder on the installation drive from becoming too large.
6. To enable advanced restore options, type or select one of the following options in the Advanced options list:
Option Description
KEEP_REPLICATION Preserves the replication when recovering a published database. This option is required if a
database was replicated when the backup was created.
KEEP_CDC Enables change data capture (CDC) recovery. When restoring a database with CDC enabled, the
recover operation works differently depending on the recovery destination. Use the to KEEP_CDC
option to:
● Recover the CDC enabled database with a different name on the same Microsoft SQL Server
instance.
In this scenario, KEEP_CDC is required.
● Recover the CDC enabled database on a different Microsoft SQL Server instance.
In this scenario, KEEP_CDC is required.
● Recover the CDC enabled database on the same Microsoft SQL Server instance by overwriting
an existing database.
In this scenario, KEEP_CDC is optional.
7. To limit the backup history of the databases on the General page to a set number of days, type or select a number in the
Days of backup history field.
The default value is 7 days.
If no level full backups are found in the specified time range, you are prompted for confirmation to load the latest full backup.
8. Exclude client name resolution is selected by default, as required to use the client name that is provided as is without
converting it to the fully qualified domain name (FQDN).
Use this option when you restore to a virtual machine in a different domain that does not have name resolution for the
source client, or when the source host is no longer available.
Unselect the option to resolve the source FQDN during restore.
9. To perform a transaction log backup of the data before performing restore, select Take tail-log backup before restore.
The tail-log backup ensures that the Microsoft application agent backs up the transaction logs that has changed from the
previous backup. The restore operation does not restore the logs of the previous tail-log backup.
NOTE:
The tail-log backup feature through the SSMS plug-in is not supported for AAG. Only scheduled transaction log backups
through a PowerProtect protection policy may be performed.
The Microsoft application agent does not support tail-log backups of multiple databases.
10. To specify the PowerProtect Data Manager appliance, perform the following steps:
c. Select the PowerProtect Data Manager appliance that will mount the backup, and then click OK.
11. To start the restore operation, click Run.
NOTE: For information about the success or failure of the restore operation, review the log files that are located in the
installation folder. The location of the log files when the Microsoft application agent is installed in the default path is
C:\Program Files\DPSAPPS\MSAPPAGENT\logs.
where:
-A VM_DIRECT=TRUE
● For a named instance, type the path in one of the following formats:
○ To restore a backup of the entire instance, type APPLICATIONS:\SqlServerWriter\<URL-
encoded_SQL_instance_name>
○ To restore a backup of specific databases, type APPLICATIONS:\SqlServerWriter\<URL-
encoded_SQL_instance_name>\<database_name>\ [...]\
The <URL-encoded_SQL_instance_name> is typically
<backup_client_name>%5C<SQL_instance_name>
ddbmsqlrc.exe -a VM_DIRECT=TRUE -a
"NSR_DFA_SI_DD_HOST=<server_name>" -a "NSR_DFA_SI_DD_USER=<DD_Boost_user>" -a
"NSR_DFA_SI_DEVICE_PATH=<storage_unit_name_and_path>" -c <client_or_hostname> [-a
"SKIP_CLIENT_RESOLUTION=TRUE"] -C <database_files> -t <last_backup_time_stamp> -S normal
-a "RESTORE_START_TIME= <start_date_and_time>" <restore_path>
where:
-A VM_DIRECT=TRUE
Specifies to use the VM Direct workflow for the recover operation.
-a "NSR_DFA_SI_DD_HOST=<server_name>"
Specifies the name of the DD server that contains the backup.
When you have a remote (secondary) DD server that has replicated databases to restore, type the name
of the secondary server. A DD user on the secondary DD server must be in the same group as the
primary server.
-a "NSR_DFA_SI_DD_USER=<DD_Boost_user>"
Specifies the username of the DD Boost user.
You must register the hostname and the DD Boost username in the lockbox to enable Microsoft
application agent to retrieve the password for the registered user.
-a "NSR_DFA_SI_DEVICE_PATH=<storage_unit_name_and_path>"
Specifies the name and the path of the storage unit that contains the backup.
-c <client_or_hostname>
Specifies the client name that was used for the backup.
-a "SKIP_CLIENT_RESOLUTION=TRUE"
● For a named instance, type the path in one of the following formats:
○ To restore backups of the entire instance, type MSSQL$<Instance_Name>:
○ To restore backups of specific databases, type MSSQL$<Instance_Name>:<database>
[...]
For example: "MSSQL$SqlInst1:database1" "MSSQL$SqlInst1:database2"
Table-level restore operations mount the application-aware virtual machine image backup on the target virtual machine.
The Microsoft application agent sends a request to the PowerProtect Data Manager appliance to mount the selected backup.
When the backup is mounted, the VMDK images from the virtual machine image backup are added to the target-virtual machine
and assigned mount points.
The backup is mounted with the PowerProtect Data Manager appliance for 4 hours by default. The valid range for the mount
timeout is between 1 and 24 hours, after which the mounted backup must be dismounted.
NOTE: When backup images are mounted, you cannot start a new session of backup, database restore, table-level restore,
or instant access.
Steps
1. From the Windows Start menu, select Microsoft SQL Server Management Studio.
2. In the Microsoft SQL Server Management Studio, in the Connect to Server window, specify the server information and
credentials, and then click Connect.
3. On the toolbar, click Microsoft App Agent (VM Direct).
The Microsoft app agent for VM Direct window appears.
NOTE: If the Microsoft App Agent (VM Direct) button is not on the toolbar, the plug-in may be unable to register. In
this scenario, you can launch the plug-in directly from the start menu. From the Windows Start menu, select DDBMA
Plugin for SQL Server Management Studio and select Run as administrator for UAC enabled environments.
Steps
1. Open the Microsoft app agent for VM Direct window to the Table Restore > General page.
The General page appears as shown in the following figure.
5. Use the Start browsing from list to select a backup save time, and then click Show Versions.
The SQL Server Instance field and save sets table are updated with the backups that are within the specified browse time.
If no level full backups are found in the specified time range, you are prompted for confirmation to load the latest full backup.
NOTE: If you selected a cluster name or AAG group name with GUID in the preceding step, then the list of AAGs in the
cluster or the list of AAGs in the AAG group named with GUID is displayed instead of the list of Microsoft SQL Server
instances.
6. From the SQL Server Instance list, select the Microsoft SQL Server instance that contains the databases that you want to
restore.
7. From the databases table, select the database that contains the tables that you want to restore.
The corresponding save sets appear in the save sets table.
8. In the save sets table, select the save set that contains the tables that you want to restore.
Next steps
Specify the PowerProtect Data Manager server details and additional restore options on the Options page.
Steps
1. From the left panel, click Options.
The Options page appears as shown in the following figure.
3. To generate detailed logs, which you can use to troubleshoot the restore issues, select Select a debug level, and then
specify a value of 1 through 9. The default value is 0 (zero).
4. To delete debug logs older than a certain number of days, select Delete debug logs after, and then specify the number of
days with a number between 1 and 32767 days. The default value is 0 and does not delete any debug logs.
NOTE: This option only deletes debug logs named in the default format and located in the logs folder at
<installation_path>\MSAPPAGENT\logs.
Regularly deleting debug logs prevents the log folder on the installation drive from becoming too large.
5. To limit the backup history of the databases on the General page to a set number of days, type or select a number in the
Days of backup history field.
The default value is 7 days.
If no level full backups are found in the specified time range, you are prompted for confirmation to load the latest full backup.
6. Exclude client name resolution is selected by default, as required to use the client name that is provided as is without
converting it to the fully qualified domain name (FQDN).
Use this option when you restore to a virtual machine in a different domain that does not have name resolution for the
source client.
Unselect the option to resolve the source FQDN during restore.
7. To specify the PowerProtect Data Manager appliance, perform the following steps:
a. Beside Appliance Host, click ...
The PowerProtect Data Manager List & Lockbox Settings window appears.
When you restore a backup to the original virtual machine, the details for the PowerProtect Data Manager appliance that
protects the Microsoft SQL Server in a protection policy automatically appear.
b. If you do not see the PowerProtect Data Manager appliance that you want to use for the restore operation, click Add,
and then in the Add PowerProtect Data Manager details dialog box, perform one of the following actions:
● To add a PowerProtect Data Manager with credential-based authentication, specify the appliance hostname and the
login credentials.
Contact the PowerProtect Data Manager administrator to retrieve the PowerProtect Data Manager appliance host
and login details.
● To add a PowerProtect Data Manager with certificate-based authentication, specify only the appliance hostname. Do
not specify the username and password fields.
To use certificate-based authentication, the PowerProtect Data Manager administrator must approve the target
Microsoft application agent.
When you add a virtual machine to a protection policy, that virtual machine is approved with a certificate that expires
after one day. If you are restoring to an alternate virtual machine that is an asset of PowerProtect Data Manager but
not a member of a protection policy, the PowerProtect Data Manager administrator must approve the target virtual
machine.
The PowerProtect Data Manager administrator can approve the target Microsoft application agent on the
PowerProtect Data Manager Infrastructure > Application Agents page.
c. Select the PowerProtect Data Manager appliance that will mount the backup, and then click OK.
8. To mount the backup and proceed with the table restore, click Run.
NOTE: For information about the success or failure of the restore operation, review the log files that are located in the
installation folder. The typical location of the log files is C:\Program Files\DPSAPPS\MSAPPAGENT\logs.
Prerequisites
Configure and run the table level restore operation with the Table Restore tab in the Microsoft application agent SSMS plug-in.
NOTE: ItemPoint 8.6.1 as integrated with the Microsoft application agent now supports the Microsoft SQL Server
Transparent Data Encryption (TDE). However, only the AES_128, AES_192, and AES_256 encryption algorithms are
supported.
Steps
1. On the Select Source page, select the source backup files from the mounted volume that contains the Microsoft SQL
Server backup data as shown in the following figure, and then click Next.
2. On the Select Target Server page, specify the details and login credentials for the target Microsoft SQL Server and
database. The following figure shows the ItemPoint Data Wizard Select Target Server page.
NOTE: When you want to connect to a Microsoft SQL Server instance with a non-English name, you can use the
workaround that connects using the port number. On the Select Target Server page, you must add a space and the
port number after the name in the SQL Server Name field. The following figure shows the required type of field entry.
3. Click Finish.
The Data Wizard closes and ItemPoint loads the tables contained in the source backup files.
4. Use ItemPoint to browse and restore the individual tables.
NOTE: The PowerProtect ItemPoint for Microsoft SQL Server User Guide provides more information on using ItemPoint
for Microsoft SQL Server to restore table-level data.
5. To dismount the mounted backup images, exit ItemPoint for Microsoft SQL Server.
NOTE: If you select Leave backup images mounted after ItemPoint exits or Do not run ItemPoint after
mounting the backup images when you configure the mount operation, the backup image remains mounted for 4
hours. To dismount the backup manually, use the msagentadmin command.
● For a named instance, type the path in one of the following formats:
○ To restore a backup of the entire instance, type APPLICATIONS:\SqlServerWriter\<URL-
encoded_SQL_instance_name>
○ To restore a backup of specific databases, type APPLICATIONS:\SqlServerWriter\<URL-
encoded_SQL_instance_name>\<database_name>\ [...]\
The <URL-encoded_SQL_instance_name> is typically
<backup_client_name>%5C<SQL_instance_name>
5. On the Select Target Server page, specify the details and login credentials for the target Microsoft SQL Server and
database. The following figure shows the ItemPoint Data Wizard Select Target Server page.
NOTE: When you want to connect to a Microsoft SQL Server instance with a non-English name, you can use the
workaround that connects using the port number. On the Select Target Server page, you must add a space and the
port number after the name in the SQL Server Name field. The following figure shows the required type of field entry.
6. Click Finish.
The Data Wizard closes and ItemPoint loads the tables contained in the source backup files.
7. Use ItemPoint to browse and restore the individual tables.
NOTE: The PowerProtect ItemPoint for Microsoft SQL Server User Guide provides more information on using ItemPoint
for Microsoft SQL Server to restore table-level data.
Next steps
Dismount the backups using the msagentadmin.exe command.
where:
dismount
Specifies an operation to dismount backups.
--ddhost "<server_name>"
Specifies the name of the DD server that contains the storage unit, to which you backed up the
databases.
--ddpath "<storage_unit_name_and_path>"
Specifies the name and the path of the storage unit, to which you backed up the databases.
--dduser "<DD_Boost_username>"
Specifies the username of the DD Boost user.
---dmhost "<PowerProtect_appliance_hostname>"
Specifies the PowerProtect Data Manager appliance hostname or IP address.
--dmport “<PowerProtect_appliance_port>”
Specifies the port number to communicate with the PowerProtect Data Manager server. The default
value is 8443.
--lockbox <path>
(Optional) Specifies the folder that contains the lockbox file, which contains encrypted information
about the registered hosts and the corresponding usernames in pairs. Each pair is associated with a
password that backups use. If you do not specify a value, the path defaults to the installation path,
which is typically C:\Program Files\DPSAPPS\common\lockbox.
Example VM Direct dismount command
Ad hoc queries
When you need a history of changes, perform an instant access restore to mount Microsoft SQL Server databases for browsing
and finding historical data.
With Microsoft SQL Server instant access recovery, you can browse the history of changes in specific rows or tables quickly by
running the SQL queries on the mounted database. You can also run the SQL queries to move data from a mounted database to
a live Microsoft SQL Server database.
Health checks
You can validate the Microsoft SQL Server database health by running health check queries on the live mounted database.
By performing health checks on the mounted database instead of the live database in the production environment, you can
reduce the impact on production resources while checking the health status.
Disaster recovery
During a disaster recovery, Microsoft SQL Server instant access recovery provides temporary access to Microsoft SQL Server
data while the database is down.
You can connect the live mounted database to a Microsoft SQL Server instance for urgent queries.
Development tests
Merging changes to the production database is an operation with a risk of breaking applications.
With Microsoft SQL Server instant access recovery, you can use a replica of the database to test changes before you upload
them to the live production database.
Steps
1. Open the Microsoft app agent for VM Direct window to the Instant Access > General page.
The General page appears as shown in the following figure.
5. Use the Start browsing from list to select a backup save time, and then click Show Versions.
7. From the database table, select either the entire Microsoft SQL Server instance by selecting the check box in the header
row or select only the required databases to mount for instant access.
The corresponding save sets appear in the save sets table that is below the databases table.
NOTE: The Microsoft application agent does not support instant access for system databases. The system databases
do not appear in the database table.
8. For single database instant access, from the save sets table, select the database backup and timestamp that you want to
mount for instant access.
By default, the most recent backup is selected.
NOTE: This step only applies to single database instant access. For multiple database and instance-level operations, the
most recent backup is mounted and the most recent transaction logs for the browse time are restored.
9. (Optional) To access the database from a specific point-in-time, perform the following steps:
a. Under Access by time, click Timeline.
The Backup Timeline dialog box appears as shown in the following figure.
2. Under Mount:
● The Mount Folder field specifies the location where backup images are mounted.
NOTE:
The value in the Mount Folder field is the default mount location under the config directory of the Microsoft
application agent installation path, for example, C:\Program Files\DPSAPPS\MSAPPAGENT\config\mount.
Ensure that the Microsoft SQL Server administrative account for the target Microsoft SQL Server instance has
access to this path so that it can access the database files once they are mounted.
● In Mount Timeout, specify the number of days after which the mounted backup image must be dismounted. The default
value is 7 days.
NOTE: The maximum mount timeout setting is 7 days but can be extended up to 7 more days. After the mount
starts, you can extend the mount timeout on the Instant Access > Active Mounts page by specifying the number
of days in the Change mount timeout field and clicking Change. The specified number of days are added to
the initial timeout value that was set during the mount. Dismount the mounted database provides more details. To
preserve any changes that you make to the database during the instant access active time, you can vMotion the
database.
3. To generate detailed logs, which you can use to troubleshoot the mount issues, select Select a debug level, and then
specify a value of 1 through 9. The default value is 0 (zero).
Regularly deleting debug logs prevents the log folder on the installation drive from becoming too large.
5. To limit the backup history of the databases on the General page to a set number of days, type or select a number in the
Days of backup history field.
The default value is 7 days.
If no level full backups are found in the specified time range, you are prompted for confirmation to load the latest full backup.
6. Exclude client name resolution is selected by default, as required to use the client name that is provided as is without
converting it to the fully qualified domain name (FQDN).
Use this option when you restore to a virtual machine in a different domain that does not have name resolution for the
source client.
Unselect the option to resolve the source FQDN during restore.
7. To specify the PowerProtect Data Manager appliance, under Mount Method, perform the following steps:
a. Beside Appliance Host, click ...
The PowerProtect Data Manager List & Lockbox Settings window appears.
The details for the PowerProtect Data Manager appliance that protects the Microsoft SQL Server in a protection policy
automatically appear.
b. If you do not see the PowerProtect Data Manager appliance that you want to use for the mount operation, click Add,
and then in the Add PowerProtect Data Manager details dialog box, perform one of the following actions:
● To add an PowerProtect Data Manager with credential-based authentication, specify the appliance hostname and the
login credentials.
Contact the PowerProtect Data Manager administrator to retrieve the PowerProtect Data Manager appliance host
and login details.
● To add an PowerProtect Data Manager with certificate-based authentication, specify only the appliance hostname.
Do not specify the username and password fields.
To use certificate-based authentication, the PowerProtect Data Manager administrator must approve the target
Microsoft application agent.
The PowerProtect Data Manager administrator can approve the target Microsoft application agent on the
PowerProtect Data Manager Infrastructure > Application Agents page.
c. Select the PowerProtect Data Manager appliance that will mount the backup, and then click OK.
8. To mount the database for instant access, click Mount.
Steps
1. From the left panel, click Active Mounts.
The Active Mounts page appears as shown in the following figure.
2. Use the Change mount timeout control to select the number of days by which you want to change the mount time.
3. Click Change.
A confirmation dialog box appears.
4. Click OK.
Results
The mount timeout is modified as shown in the following figure.
Steps
1. From the left panel, click Active Mounts.
The Active Mounts page appears as shown in the following figure.
The Active Mounts table displays the details for each active mount session.
2. From the Active Mounts table, select the backup that you want to dismount.
NOTE: All changes to the database will be lost. To preserve the changes, select to vMotion the database instead or
extend the mount timeout.
3. Click Dismount.
The backup is dismounted.
NOTE: Once vMotion is started, you cannot cancel the vMotion data movement.
Steps
1. From the left panel, click Active Mounts.
The Active Mounts page appears as shown in the following figure.
2. To update the table and list available datastores, click Show datastores.
3. Select the datastore to which you want the virtual disk to be migrated.
The vdisks will be allocated from the selected datastore. Ensure that the database administrator checks with the data center
administrator or backup administrator about the appropriate datastore to select.
4. In the Disk Provisioning field, select the vdisk provisioning mode to be used for the vMotion operation.
5. Click Migrate.
Results
The virtual disk is migrated to the selected datastore by using storage vMotion. You can observe the progress in the Monitor
window. Once the vMotion is complete, the mount is removed from the Active Mounts page as the databases are then on
permanent VMDKs on the vCenter datastore.
You cannot perform the centralized restore of a Microsoft SQL Server virtual machine backup and the centralized restore
of a Microsoft SQL Server Application Direct backup at the same time.
The Microsoft SQL Server application-aware backups cannot be restored to a Windows or CIFS shared path by using either
a centralized restore or a restore through the VM Direct SQL Server Management Studio (SSMS) UI plug-in.
You can restore single or multiple databases from the same Microsoft SQL Server host and instance. You can restore the
databases either to the original Microsoft SQL Server host or to an alternate Microsoft SQL Server host with the following
requirements:
● The alternate host must be a Microsoft SQL Server virtual machine.
● The Microsoft application agent software must be installed and configured on the alternate host, as described in Application
agent manual installation and configuration.
NOTE: When you install the Microsoft application agent to perform a restore of a Microsoft SQL Server virtual machine
backup to an alternate Microsoft SQL Server host, ensure that the host was not previously registered to PowerProtect
Data Manager as an Application Direct host.
● You cannot restore a system database to an alternate host or Microsoft SQL Server instance.
You must perform all centralized restores from the Restore > Assets > SQL window in the PowerProtect Data Manager UI.
You can perform a centralized restore of a full or transaction log backup to a specified Microsoft SQL Server host and instance.
Select one of the following restore options to specify the file system location where the databases are restored:
● Original file location (location at backup time)—Restores the backup data to the file directory that was used during the
backup and overwrites the existing contents.
NOTE: If the directory path cannot be created during the centralized restore, the restore fails.
Ensure that the Microsoft SQL Server host was not previously registered to PowerProtect Data Manager using the
Application Direct option.
For example, if the Microsoft SQL Server host was previously registered to PowerProtect Data Manager with Application
Direct during a Microsoft application agent installation, the protection type for that host may not be changed to VM Direct,
even if the Microsoft application agent is uninstalled.
In either of the following cases, you must manually install and configure the Microsoft application agent on the target virtual
machine host of the restore:
● The PowerProtect Data Manager has been updated.
NOTE: If PowerProtect Data Manager has been updated from a pre-19.6 version, then you must use the following steps
to manually install and configure the application agent. You must install the application agent on all the client machines.
● You want to restore to a virtual machine that is not part of a protection policy.
Ensure that the target virtual machine meets the following prerequisites:
● A Windows OS is running.
Steps
1. In the PowerProtect Data Manager UI, select Restore > Assets and select the SQL tab.
The Restore window displays all the databases that are available for restore.
You can click or on the top right of the window to switch between the hierarchical (tree) view and list view. The
hierarchical view uses a tree view to show the hierarchical relationships of the Microsoft SQL Server hosts, their application
servers or instances, stand-alone database assets, and any Always On availability groups (AAGs) with their database assets.
When you expand the hierarchical view, you can see all the assets and AAGs within a host and instance. When you select a
host or instance container, all the contained assets and objects are also selected. You can also select individual assets or a
group of assets within the host or instance container.
In the list view, to filter the displayed list of assets if needed, you can click in the column heading Name, Status,
Protection Policy, Host/Cluster/Group Name, Host Type, Application Name, Protection Type, Last Copy, or
Network:
● The Name column lists the Microsoft SQL Server database asset names.
● The Status column lists the status as Available, Deleted, or Not Detected.
● The Protection Policy column lists the names of the protection policies for the assets.
● The Host/Cluster/Group Name column lists the hostnames.
● The Host Type column lists the host types as AAG or Standalone.
● The Application Name column lists the Microsoft SQL Server instance names.
● The Protection Type column lists the Application Direct or VM Direct protection type for each asset.
● The Last Copy column lists the dates and times of the backup copies within the specified date and time range.
● The Network column lists the networks that are available under the selected host or cluster.
NOTE: Only the assets that have backup copies are displayed. You can select assets only from the same Microsoft SQL
Server host and instance.
2. Select the check box next to the Microsoft SQL Server master, model, or msdb database, and click Restore.
The restore wizard opens on the Copy Selection page, which provides a life cycle roadmap that displays all the backup
copies available for each selected storage system.
3. On the Copy Selection page, select the backup copy that you want to restore, and then click Next.
To filter the displayed list of backup copies if needed, you can click in the column heading Copy Type, Create Time,
Copy Status, Location, or Storage Unit:
● The Copy Type column lists the backup copy types as Full.
6. On the Select File Location page, select one of the following options for Restore database files to, and then click Next:
● Original file location (location at backup time)
NOTE: If the directory path cannot be created on the target host during the centralized restore, the restore fails.
● Default file location as set by Microsoft SQL Server
● User-specified file location
NOTE: When you select this option, you must specify the restore file directories for the database files and log files.
7. On the Options page, select any the following options, and then click Next:
NOTE: The tail-log backup option is not supported for a system database.
● Overwrite Databases WITH REPLACE—Overwrites the existing databases during the restore operation.
NOTE:
When a database exists but the Overwrite Databases WITH REPLACE option is not selected, the restore fails.
After you perform a system database rebuild in the Microsoft SQL Server, you must specify the WITH REPLACE
option when you restore the system databases, including master, model, and msdb.
● Restore State—Select one of the following options:
○ RESTORE WITH RECOVERY—Leaves the database ready to use by rolling back the uncommitted transactions.
Additional transaction logs cannot be restored.
○ RESTORE WITH NO RECOVERY—Leaves the database nonoperational and does not roll back the uncommitted
transactions. Additional transaction logs can be restored.
● Troubleshooting mode—To enable troubleshooting logging, click the toggle button to change the setting to Enabled.
Then the Log level option field appears.
● Log level—If you enabled troubleshooting mode, select the preferred debug log level:
○ Info—Includes information such as status changes. This is the default log level for scheduled backups and restores.
○ Debug—Additional information that helps with problem diagnosis.
○ Trace—The most detailed amount of information for complex problem diagnosis.
8. On the Summary page:
a. Review the Select Copy, Scope, Location, File Location, and Options information to ensure that the restore details
are correct.
NOTE: When the specified database name matches the name of an existing database, the restore overwrites the
existing database.
b. Click Restore.
The restore operation starts. Then the Go to Jobs informational dialog box appears with a link to the Jobs page where
you can monitor the restore job.
Steps
1. In the PowerProtect Data Manager UI, select Restore > Assets and select the SQL tab.
The Restore window displays all the databases that are available for restore.
You can click or on the top right of the window to switch between the hierarchical (tree) view and list view. The
hierarchical view uses a tree view to show the hierarchical relationships of the Microsoft SQL Server hosts, their application
servers or instances, stand-alone database assets, and any Always On availability groups (AAGs) with their database assets.
When you expand the hierarchical view, you can see all the assets and AAGs within a host and instance. When you select a
host or instance container, all the contained assets and objects are also selected. You can also select individual assets or a
group of assets within the host or instance container.
In the list view, to filter the displayed list of assets if needed, you can click in the column heading Name, Status,
Protection Policy, Host/Cluster/Group Name, Host Type, Application Name, Protection Type, Last Copy, or
Network:
● The Name column lists the Microsoft SQL Server database asset names.
● The Status column lists the status as Available, Deleted, or Not Detected.
● The Protection Policy column lists the names of the protection policies for the assets.
● The Host/Cluster/Group Name column lists the hostnames.
● The Host Type column lists the host types as AAG or Standalone.
● The Application Name column lists the Microsoft SQL Server instance names.
● The Protection Type column lists the Application Direct or VM Direct protection type for each asset.
● The Last Copy column lists the dates and times of the backup copies within the specified date and time range.
● The Network column lists the networks that are available under the selected host or cluster.
NOTE: Only the assets that have backup copies are displayed. You can select assets only from the same Microsoft SQL
Server host and instance.
2. Select the check box next to the stand-alone database, and click Restore.
The restore wizard opens on the Copy Selection page, which provides a life cycle roadmap that displays all the backup
copies available for each selected storage system.
3. On the Copy Selection page, select the backup copy that you want to restore, and then click Next.
To filter the displayed list of backup copies if needed, you can click in the column heading Copy Type, Create Time,
Copy Status, Location, or Storage Unit:
● The Copy Type column lists the backup copy types as Full or Log.
● The Create Time column lists the dates and times when the backup copies were created.
● The Copy Status column lists the backup copy status as Available, Deleting, Deletion Failed, Deletion Failed (Agent
Catalog), Cloud Tiering, Cloud Recalling, Replicating, Restoring, or Ready for Cloud Tiering.
● The Location column lists the backup copy locations as Local or Local_Recalled.
● The Storage Unit column lists the storage units of the backup copies.
4. On the Scope page, select one of the following options, and then click Next:
● Restore to Microsoft SQL Server Instance—Restores the database backup to a single server instance.
● Restore to Always On Availability Group—Restores the database backup to a database in an AAG.
During the restore, the database is removed from the AAG. After the restore, the database is added back to the AAG.
5. On the Location page, select one of the following options, and then click Next:
● Restore to Original—Restores and overwrites the selected database.
NOTE: If you selected to restore the database to an AAG, the Restore to Original option is unavailable. Stand-
alone databases cannot be restored to the original AAG location.
Click or above the table to see the list of available databases. In the hierarchical view, you must expand the list
to see all the databases. The hierarchical view displays the databases for each instance on each available Microsoft SQL
Server host. A refresh icon next to each hostname enables you to request the rediscovery of all instances and databases
on a host:
○ To restore to an alternate database, select the alternate database from the database list.
○ To restore as a new database on the same instance or a different instance, click Restore as new database next
to the required instance name. In the Restore as new database dialog, type the name of the new database in the
Database Name field.
NOTE:
The database name must have 128 or fewer characters. Do not specify a Microsoft SQL Server system database
name such as master, model, msdb, or tempdb.
After the new database name is added to the database list, you can optionally delete the name from the list, if
needed, by clicking Remove next to the name.
6. On the Select File Location page, select one of the following options for Restore database files to, and then click Next:
● Original file location (location at backup time)
NOTE: If the directory path cannot be created during the centralized restore, the restore fails.
● Default file location as set by Microsoft SQL Server
● User-specified file location
NOTE: When you select this option, you must specify the restore file directories for the database files and log files.
7. On the Options page, select any the following options, and then click Next:
● Overwrite Databases WITH REPLACE—Overwrites the existing databases during the restore operation.
NOTE:
When a database exists but the Overwrite Databases WITH REPLACE option is not selected, the restore fails.
After you perform a system database rebuild in the Microsoft SQL Server, you must specify the WITH REPLACE
option when you restore the system databases, including master, model, and msdb.
● Tail Log—Performs a tail-log backup.
NOTE: The tail-log backup option is displayed when the destination is the same as the host. This option is selected
by default.
● Restore State—Select one of the following options:
○ RESTORE WITH RECOVERY—Leaves the database ready to use by rolling back the uncommitted transactions.
Additional transaction logs cannot be restored.
○ RESTORE WITH NO RECOVERY—Leaves the database nonoperational and does not roll back the uncommitted
transactions. Additional transaction logs can be restored.
● Troubleshooting mode—To enable troubleshooting logging, click the toggle button to change the setting to Enabled.
Then the Log level option field appears.
● Log level—If you enabled troubleshooting mode, select the preferred debug log level:
○ Info—Includes information such as status changes. This is the default log level for scheduled backups and restores.
○ Debug—Additional information that helps with problem diagnosis.
○ Trace—The most detailed amount of information for complex problem diagnosis.
8. On the Summary page:
a. Review the Select Copy, Scope, Location, File Location, and Options information to ensure that the restore details
are correct.
NOTE: When the specified database name matches the name of an existing database, the restore overwrites the
existing database.
b. Click Restore.
The restore operation starts. Then the Go to Jobs informational dialog box appears with a link to the Jobs page where
you can monitor the restore job.
Steps
1. In the PowerProtect Data Manager UI, select Restore > Assets and select the SQL tab.
The Restore window displays all the databases that are available for restore.
You can click or on the top right of the window to switch between the hierarchical (tree) view and list view. The
hierarchical view uses a tree view to show the hierarchical relationships of the Microsoft SQL Server hosts, their application
servers or instances, stand-alone database assets, and any Always On availability groups (AAGs) with their database assets.
When you expand the hierarchical view, you can see all the assets and AAGs within a host and instance. When you select a
host or instance container, all the contained assets and objects are also selected. You can also select individual assets or a
group of assets within the host or instance container.
In the list view, to filter the displayed list of assets if needed, you can click in the column heading Name, Status,
Protection Policy, Host/Cluster/Group Name, Host Type, Application Name, Protection Type, Last Copy, or
Network:
● The Name column lists the Microsoft SQL Server database asset names.
● The Status column lists the status as Available, Deleted, or Not Detected.
● The Protection Policy column lists the names of the protection policies for the assets.
● The Host/Cluster/Group Name column lists the hostnames.
● The Host Type column lists the host types as AAG or Standalone.
● The Application Name column lists the Microsoft SQL Server instance names.
● The Protection Type column lists the Application Direct or VM Direct protection type for each asset.
● The Last Copy column lists the dates and times of the backup copies within the specified date and time range.
● The Network column lists the networks that are available under the selected host or cluster.
NOTE: Only the assets that have backup copies are displayed. You can select assets only from the same Microsoft SQL
Server host and instance.
2. Select the check box next to the AAG database, and click Restore.
The restore wizard opens on the Copy Selection page, which provides a life cycle roadmap that displays all the backup
copies available for each selected storage system.
3. On the Copy Selection page, select the backup copy that you want to restore, and then click Next.
To filter the displayed list of backup copies if needed, you can click in the column heading Copy Type, Create Time,
Copy Status, Location, or Storage Unit:
● The Copy Type column lists the backup copy types as Full or Log.
● The Create Time column lists the dates and times when the backup copies were created.
● The Copy Status column lists the backup copy status as Available, Deleting, Deletion Failed, Deletion Failed (Agent
Catalog), Cloud Tiering, Cloud Recalling, Replicating, Restoring, or Ready for Cloud Tiering.
● The Location column lists the backup copy locations as Local or Local_Recalled.
● The Storage Unit column lists the storage units of the backup copies.
4. On the Scope page, select one of the following options, and then click Next:
● Restore to Microsoft SQL Server Instance—Restores the database backup to a single server instance.
● Restore to Always On Availability Group—Restores the database backup to a database in an AAG.
During the restore, the database is removed from the AAG. After the restore, the database is added back to the AAG.
5. On the Location page, select one of the following options, and then click Next:
Click or above the table to see the list of available databases. In the hierarchical view, you must expand the list
to see all the databases. The hierarchical view displays the databases for each instance on each available Microsoft SQL
Server host. A refresh icon next to each hostname enables you to request the rediscovery of all instances and databases
on a host:
○ To restore to an alternate database, select the alternate database from the database list.
○ To restore as a new database on the same instance or a different instance, click Restore as new database next
to the required instance name. In the Restore as new database dialog, type the name of the new database in the
Database Name field.
NOTE:
The database name must have 128 or fewer characters. Do not specify a Microsoft SQL Server system database
name such as master, model, msdb, or tempdb.
After the new database name is added to the database list, you can optionally delete the name from the list, if
needed, by clicking Remove next to the name.
6. On the Select File Location page, select one of the following options for Restore database files to, and then click Next:
● Original file location (location at backup time)
NOTE: If the directory path cannot be created during the centralized restore, the restore fails.
● Default file location as set by Microsoft SQL Server
● User-specified file location
NOTE: When you select this option, you must specify the restore file directories for the database files and log files.
7. On the Options page, select the required options and then click Next:
● Overwrite Databases WITH REPLACE—Overwrites the existing databases during the restore operation.
NOTE: When a database exists but the Overwrite Databases WITH REPLACE option is not selected, the restore
fails.
● Tail Log—Performs a tail-log backup.
NOTE: The tail-log backup option is supported only when the source and destination nodes are the same. When you
restore the database to all the nodes of the AAG by selecting Restore to all replicas, the credentials used for the
restore must provide access on all the nodes of the AAG.
● Select the required option as follows, depending on your previous selection on the Scope page:
○ If you selected Restore to Microsoft SQL Server Instance on the Scope page:
Restore State—Select one of the following options:
■ RESTORE WITH RECOVERY—Leaves the database ready to use by rolling back the uncommitted transactions.
Additional transaction logs cannot be restored.
■ RESTORE WITH NO RECOVERY—Leaves the database nonoperational and does not roll back the uncommitted
transactions. Additional transaction logs can be restored.
○ If you selected Restore to Always On Availability Group on the Scope page:
Restore Replica—Select one of the following options:
■ Restore to all replicas—Restores the database to all the nodes of the AAG.
■ Restore to primary—Restores the database to only the primary node of the AAG.
● Troubleshooting mode—To enable troubleshooting logging, click the toggle button to change the setting to Enabled.
Then the Log level option field appears.
● Log level—If you enabled troubleshooting mode, select the preferred debug log level:
○ Info—Includes information such as status changes. This is the default log level for scheduled backups and restores.
○ Debug—Additional information that helps with problem diagnosis.
○ Trace—The most detailed amount of information for complex problem diagnosis.
b. Click Restore.
The restore operation starts. Then the Go to Jobs informational dialog box appears with a link to the Jobs page where
you can monitor the restore job.
Prerequisites
Before you perform a multi-database restore, review the Considerations for centralized Microsoft SQL Server application-aware
restores.
Steps
1. In the PowerProtect Data Manager UI, select Restore > Assets and select the SQL tab.
The Restore window displays all the databases that are available for restore.
You can click or on the top right of the window to switch between the hierarchical (tree) view and list view. The
hierarchical view uses a tree view to show the hierarchical relationships of the Microsoft SQL Server hosts, their application
servers or instances, stand-alone database assets, and any Always On availability groups (AAGs) with their database assets.
When you expand the hierarchical view, you can see all the assets and AAGs within a host and instance. When you select a
host or instance container, all the contained assets and objects are also selected. You can also select individual assets or a
group of assets within the host or instance container.
In the list view, to filter the displayed list of assets if needed, you can click in the column heading Name, Status,
Protection Policy, Host/Cluster/Group Name, Host Type, Application Name, Protection Type, Last Copy, or
Network:
● The Name column lists the Microsoft SQL Server database asset names.
● The Status column lists the status as Available, Deleted, or Not Detected.
2. Select the check box next to each database that you want to restore, and then click Restore.
The restore wizard opens on the Copy Selection page, which includes a notification that the multi-database restore uses
the latest backup copies on the storage target.
3. On the Copy Selection page, click Next to continue.
4. On the Location page, select one of the following options, and then click Next:
NOTE: A multi-database restore can restore only to the original database names.
Click or above the table to see the list of available instances. In the hierarchical view, you must expand the list to
see all the instances on each available Microsoft SQL Server host.
5. On the Select File Location page, select one of the following options for Restore database files to, and then click Next:
● Original file location (location at backup time)
NOTE: If the directory path cannot be created during the centralized restore, the restore fails.
● Default file location as set by Microsoft SQL Server
● User-specified file location
NOTE: When you select this option, you must specify the restore file directories for the database files and log files.
6. On the Options page, select any the following options, and then click Next:
NOTE: The tail-log backup option is not supported for a multi-database restore.
● Overwrite Databases WITH REPLACE—Overwrites the existing databases during the restore operation.
NOTE:
When a database exists but the Overwrite Databases WITH REPLACE option is not selected, the restore fails.
After you perform a system database rebuild in the Microsoft SQL Server, you must specify the WITH REPLACE
option when you restore the system databases, including master, model, and msdb.
● Restore State—Select one of the following options:
○ RESTORE WITH RECOVERY—Leaves the database ready to use by rolling back the uncommitted transactions.
Additional transaction logs cannot be restored.
○ RESTORE WITH NO RECOVERY—Leaves the database nonoperational and does not roll back the uncommitted
transactions. Additional transaction logs can be restored.
● Troubleshooting mode—To enable troubleshooting logging, click the toggle button to change the setting to Enabled.
Then the Log level option field appears.
● Log level—If you enabled troubleshooting mode, select the preferred debug log level:
○ Info—Includes information such as status changes. This is the default log level for scheduled backups and restores.
○ Debug—Additional information that helps with problem diagnosis.
○ Trace—The most detailed amount of information for complex problem diagnosis.
7. On the Summary page:
b. Click Restore.
The restore operation starts. Then the Go to Jobs informational dialog box appears with a link to the Jobs page where
you can monitor the restore job.
The section "vSphere Installation Bundle management options outside of PowerProtect Data Manager" in the PowerProtect
Data Manager Virtual Machine User Guide provides details.
Protecting Virtual Machines Using the Transparent Snapshots Data Mover 205
Prerequisites to VIB installation and update
The VIB package is installed or updated when the following requirements are met:
● The hosting ESXi Server is version 7.0 U3c or later.
● The managing vCenter Server is version 7.0 U3c or later.
● The installation can be performed on all eligible hosts of the cluster and all hosts that are added to the cluster.
● Automatic VIB management is enabled on the vCenter server asset source. The PowerProtect Data Manager Virtual
Machine User Guide provides more information.
206 Protecting Virtual Machines Using the Transparent Snapshots Data Mover
Prerequisites to virtual machine protection with the
Transparent Snapshots Data Mover
Review the following recommendations for use of the Transparent Snapshots Data Mover (TSDM) protection mechanism for
virtual machine protection.
Protecting Virtual Machines Using the Transparent Snapshots Data Mover 207
Create a VMkernel port for a standard vSwitch configuration
For each ESXi host in the cluster:
Steps
1. In the vSphere Client, navigate to the ESXi host and select the host.
2. Right-click the host and select Add Networking.
3. Select VMkernel Network Adapter, and then click Next.
4. Create a new switch, or choose an existing one.
When creating a new switch, assign the NIC adapter to Active Adapters.
5. In the Port Properties settings IP settings, select either IPv4 or IPv6, and clear all other check boxes under Available
services.
6. In the IP settings, specify the VMkernel IP settings.
The PowerProtect Data Manager Virtual Machine User Guide provides more details about each of the following steps.
1. Ensure that the vCenter Server is enabled as an asset source in the PowerProtect Data Manager UI.
2. Add and register the vCenter Server asset source. From the left navigation pane, select Infrastructure > Asset Sources
and click Add on the vCenter tab.
After the successful discovery of the vCenter asset source, the virtual machine assets in the vCenter server are displayed in
the Infrastructure > Assets window on the Virtual Machine tab.
3. Ensure that the required application-aware protection policy is created for the Microsoft SQL Server application-aware
backups.
To create the protection policy, follow the procedure under "Add a protection policy" in the PowerProtect Data Manager
Virtual Machine User Guide:
a. On the Add Policy > Type page, select the Virtual Machine type.
b. On the Add Policy > Purpose page, select Application Aware.
c. On the Add Policy > Options page, select the Transparent Snapshots protection mechanism.
NOTE: On the Options page, VADP is the other available protection mechanism option.
After you finish creating the protection policy, system jobs are created for the virtual machine policy configuration.
NOTE: For TSDM SQL application-aware backups, with the firewall enabled, you must add a firewall exception for the
vflragentd process.
208 Protecting Virtual Machines Using the Transparent Snapshots Data Mover
Transparent Snapshots Data Mover unsupported
features and limitations
Review the following unsupported features and limitations for the Transparent Snapshots Data Mover (TSDM) in PowerProtect
Data Manager.
TSDM only available for virtual machine crash-consistent policies and SQL
application-aware policies
Use of the TSDM protection mechanism is only supported for crash-consistent virtual machine protection policies and SQL
application-aware protection policies. Also, if the policy is a virtual machine crash consistent policy, the Exclude swap files
from backup or Enable guest file system quiescing must be disabled.
NOTE: This configuration is not supported even if the protection policy only includes disks that are not shared.
Protecting Virtual Machines Using the Transparent Snapshots Data Mover 209
Manual removal of lastSdmDiskBackupPath.json file required before
deleting the storage unit of the virtual machine backup
During a TSDM-enabled virtual machine backup, a file named lastSdmDiskBackupPath.json, which contains snapshot
metadata, is created in the virtual machine. This file is required to perform in-place backups of the virtual machine, but does not
get automatically removed when the virtual machine is no longer included in the protection policy. As a result, the storage unit
containing these virtual machine backups cannot be deleted.
When deleting the storage unit where the virtual machine backups are located, ensure that you manually remove the
lastSdmDiskBackupPath.json file.
Asset copy size reported differently for TSDM backups with thin-
provisioned disks
An increase in the asset copy size of TSDM backups with thin-provisioned disks might be observed due to the manner in which
asset copy size is reported in PowerProtect Data Manager. For thin-provisioned disks, the asset copy size now reflects the
capacity (provisioned size) of the disks instead of the used size. No actual increase in size has occurred.
Virtual Machine Disk (VMDK) limit for virtual machines protected with
TSDM
TSDM-based protection supports a maximum of 40 VMDKs per virtual machine. If this limit is exceeded, backups fail with the
error Unable to back up the asset … because the included number of … disks exceeds maximum
supported disks of 40 by transparent snapshot datamover.
For virtual machines with more than 40 VMDKs, you can override the protection mechanism at the asset level to use VADP. The
section Migrating assets to use the Transparent Snapshots Data Mover provides more information.
210 Protecting Virtual Machines Using the Transparent Snapshots Data Mover
Size of thin provisioned files created by vSphere during TSDM operations
does not reflect the true size written to file system (fixed in vSphere 7.0
U3f and later)
VMware vSphere creates files that are displayed as two times larger than the VMDK files of the virtual machines that are
protected by TSDM. The names of these files end in -flat.ses, and the files are located in the same VMFS volume and
directory as the VMDK files of the protected virtual machines. These are thin-provisioned files and part of normal TSDM
operations.
To determine the real amount of data that is written to the file system, use the du command, or update to vSphere version 7.0
U3f or later.
Table 17. Scalability limits for the vCenter and ESXi server
Component Maximum limit
Number of protected virtual machines per ESXi server Unlimited
Number of protected VMDKs per ESXi server 1,000
Number of protected VMDKs per virtual machine 40
Size of VMDK 64 TB
TSDM virtual machine backups Embedded VM Direct Engine: up to 3,000 virtual machine backups,
and up to 180 concurrent virtual machine backups.
Protecting Virtual Machines Using the Transparent Snapshots Data Mover 211
Table 17. Scalability limits for the vCenter and ESXi server (continued)
Component Maximum limit
Table 18. TSDM maximum concurrent protection operations and memory consumption
Component Maximum limit Notes
Number of concurrent virtual machine 18 To obtain the maximum concurrent operations, the ESXi
backups per ESXi host (ESXi and vCenter hosting the protected virtual machines must be version
7.0 U3d and later) 7.0 U3d or later. This maximum is based on improvements
to TSDM performance that result in faster processing
Number of concurrent virtual machine 16 of these sessions, and will vary based on the type of
restores per ESXi host (ESXi and vCenter operations being performed (for example, single disk vs
7.0 U3d and later) multiple disk virtual machine backups).
NOTE: A lower number of concurrent streams helps to
avoid over-subscription to the ESXi host memory.
Total TSDM memory consumption on ESXi Up to 768 MB 256 MB/9 MB per disk=up to 28 VMDK backups in parallel.
host
TSDM memory consumption on ESXi host Up to 256 MB A full synchronization uses 29 MB/disk; a delta
for DD streams synchronization uses 9 MB/disk.
Up to 28 streams
256 MB/9 MB per stream=up to 28 DD streams in parallel.
212 Protecting Virtual Machines Using the Transparent Snapshots Data Mover
Migrating assets to use the Transparent Snapshots
Data Mover
You can manually migrate individual virtual machine assets from the VMware vStorage API for Data Protection (VADP)
protection mechanism to the Transparent Snapshots Data Mover (TSDM) protection mechanism by using the Infrastructure
> Assets window of the PowerProtect Data Manager UI. For virtual machine crash-consistent protection policies, TSDM
is used by default when vCenter and ESXi version 7.0 U3c or later are deployed in the environment. For SQL application
aware-protection policies, the default protection mechanism is VADP.
NOTE: You can also migrate assets at the policy level. Refer to the instructions for adding a protection policy.
Before assets are migrated to use TSDM, the vSphere Installation Bundle (VIB) is required. This installation occurs automatically,
unless the use of TSDM is disabled on the vCenter server asset source. Go to Infrastructure > Protection Engines, select
the Transparent Snapshot Data Movers pane, and verify that the VIB is enabled on the vCenter server. You can also expand
the vCenter hierarchy view to confirm that the VIB installation has occurred on the vSphere hosts.
Protecting Virtual Machines Using the Transparent Snapshots Data Mover 213
A
Microsoft SQL Server Best Practices and
Troubleshooting
Before troubleshooting issues with Microsoft application agent, review VM Direct limitations.
Topics:
• Troubleshooting storage units
• Troubleshooting installation and operation
• Troubleshooting backups
• Troubleshooting restores
Creating storage unit fails when maximum MTree and Users count on DD
system reached
When you add a protection policy or create a storage unit in PowerProtect Data Manager, storage unit creation fails if you reach
the maximum MTree and Users count on the selected DD system. PowerProtect Data Manager enables you to finish adding
a protection policy without a storage unit. However, if you subsequently run a backup with this protection policy, the backup
process is suspended indefinitely with no error message.
To continue backup operations, you must perform a cleanup on the DD system.
Agent registration
On Windows, if the agent fails to establish a connection with the PowerProtect Data Manager server, agent registration might
fail with the following error message:
During a network connectivity test, the agent is unable to reach the PowerProtect Data
Manager server by using ping.
1. If the ping command is blocked in the environment, the agent registration can
On Linux or AIX, if the agent fails to establish a connection with the PowerProtect Data Manager server, agent registration
might fail with the following error message:
During a network connectivity test, the agent is unable to reach the PowerProtect Data
Manager server by using ping and curl.
1. If the ping command is blocked in the environment and curl is not installed, the
agent registration can still complete successfully.
Review the agent service logs at /opt/dpsapps/agentsvc/logs to verify that the
registration is successful. If the registration is successful, the status of the agent
host indicates Registered in the PowerProtect Data Manager UI.
2. If the ping command is not blocked in the environment, the agent registration
might not complete successfully because a network connection cannot be started. If this
occurs, complete the following steps to troubleshoot the issue:
If agent registration fails with these error messages, complete the following operation:
1. Use any network packet tracing tool to trace the packets from the agent system to PowerProtect Data Manager.
2. Start the packet tracing between the source IP of the agent system and the destination IP of PowerProtect Data Manager.
3. Start the network traffic between the agent system and PowerProtect Data Manager.
Wait 10 to 15 seconds.
4. Analyze the captured packets.
5. Look for SYN and SYN_ACK packets to see if a 3-way handshake is being performed.
Determine whether the source agent or the destination PowerProtect Data Manager is blocking the connection.
If network traffic is blocked, contact your network security team to resolve the port communication issue.
Ensure that the host's actual FQDN is not specified for the loopback address and do not specify hostnames that start with
"local" in the /etc/hosts file.
Service 'PowerProtect Agent Service' (AgentService) could not be installed. Verify that
you have sufficient privileges to install system services.
A timeout was reached (30000 milliseconds) while waiting for the PowerProtect Agent
Service service to connect.
The PowerProtect Agent Service service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.
If these error messages appear in the event viewer logs, apply the following workaround: https://support.microsoft.com/en-in/
help/922918/a-service-does-not-start-and-events-7000-and-7011-are-logged-in-window
As a workaround, confirm whether the agent-id.yml file exists under the \DPSAPPS\AgentService\ directory and then
perform the appropriate action:
● If the agent-id.yml file does not exist under the \DPSAPPS\AgentService\ directory, run the Microsoft application
agent installation with the Change option and then run a discovery operation.
● If the agent-id.yml file exists under the \DPSAPPS\AgentService\ directory, run a manual discovery operation on
the Microsoft SQL Server hosts. Then if the databases still do not appear in the PowerProtect Data Manager UI:
1. Delete the existing agent-id.yml file.
2. Run the Microsoft application agent installation with the Change option.
3. Run a discovery operation on the Microsoft SQL Server hosts.
Unable to register PowerProtect Agent Service. SSL certificates are not present.
This issue can occur when the deletion of specific backup copies is delayed due to a large number of backup copies being
deleted at the same time. As a result, when the compliance check job runs at a preset time, the specific backup copies are not
yet deleted. You can ignore the error message, and confirm at a later time that the specific backup copies have been deleted.
Do you want to allow the following program to update software on this computer?
Unable to register PowerProtect Agent Service. Registration script returned with exit
code 2.
Unable to register PowerProtect Agent Service. Registration script returned with exit
code 13.
In an IPv6 environment with VMware Tools version pre-12.0.5, Microsoft SQL Server VM Direct operations are not supported
for an AAG cluster that is configured with file share witness in PowerProtect Data Manager.
As a workaround, upgrade the VMware Tools to version 12.0.5 or later and then register the clustered AAG node with
PowerProtect Data Manager.
The Lockbox stable value threshold was not met because the system fingerprint has
changed. To reset the system fingerprint, open the Lockbox using the passphrase.
If you encounter this error, you can complete the following operation to enable the lockbox access for the host:
● In a stand-alone system, re-create the lockbox for the host and perform the registration again.
● In a high-availability system with a shared lockbox:
1. Revoke the lockbox access of the host by running the msagentadmin administration -R command from another
host.
2. Grant the lockbox access to the host by running the msagentadmin administration -G command from another
host.
NOTE: To update the lockbox configuration on a host, run the msagentadmin administration -U command on that
host. This operation ensures that the lockbox is continuously accessible to the host.
The following msagentadmin administration commands perform the lockbox operations:
You can optionally set and use a customized passphrase that enables you to reset the lockbox or regain access for a host when
the lockbox becomes inaccessible. This feature is useful when a nonshared lockbox becomes inaccessible on an occasional basis.
Set and use a customized passphrase for lockbox access provides details about setting a customized passphrase.
You can also use a lockbox security option to select either a default level or custom level for the lockbox security. The default
security level is recommended. The custom security level can enable easier access to the lockbox after a major OS update.
However, the custom level has potential security concerns, so the setting and use of a customized passphrase is recommended.
Reset the lockbox security level provides more details about setting the lockbox security level.
NOTE: Treat the customized lockbox passphrase with care, and guard it against use by unauthorized persons. If a person
learns the passphrase and obtains a copy of the lockbox files, the person can access the lockbox.
After you set a customized passphrase, you can use the passphrase to reset the lockbox or regain access to the lockbox. For
example, if the lockbox becomes inaccessible, run the following command as the root user or administrative user and type the
customized passphrase at the prompt:
For example, the following command sets the custom level of lockbox security:
The lockbox 'agents.clb' in the directory '/opt/lockbox' has been reset with the custom
security level.
Note that with a lower security level, the lockbox is more vulnerable to external
threats. If you are not sure whether you want a lower security, we recommend using
LOCKBOX_SECURITY="default" for regular usage.
Troubleshooting backups
You might encounter the following issues while performing backups.
Illegal operation attempted on a registry key that has been marked for deletion.
COM: Intermittent error 800703fa: Illegal Operation attempted on a registry key
Other COM related errors.
As a workaround:
1. Install the latest cumulative update on the Microsoft SQL Server 2016 or 2017 system:
● For Microsoft SQL Server 2016, install the cumulative update version 13.0.2216.0.
PowerProtect agent for Microsoft Applications: Unable to update persisted settings for
PowerProtect Data Manager host '<IP_address>': Exception 'Timeout was reached' occurred
while sending Certificate Signing Request.
A Microsoft SQL Server application-aware backup is not supported in this type of multiple virtual network environment.
In a multiple virtual network environment, ensure that the Microsoft SQL Server application-aware host has network
connectivity to both the management network and data network. The "Virtual networks (VLANs)" section in the PowerProtect
Data Manager Administrator Guide provides more details.
PowerProtect agent for Microsoft Applications: Unable to update persisted settings for
PowerProtect Data Manager host 'xx.xx.xx.xx': Unable to log in to PowerProtect Data
Manager host 'xx.xx.xx.xx'. Received the HTTP code 400 and response 'Invalid FQDN'.
As a workaround, when the Microsoft SQL Server host is a member of a workgroup but is assigned an IP address that is DNS
resolvable by PowerProtect Data Manager, if the DNS resolution is only available for FQDN, ensure that the Microsoft SQL
Server host adds the same domain suffix to the Advanced TCP/IP parameters DNS settings.
In the System Properties dialog box:
1. On the Computer Name tab, click Change and then click More.
2. In Primary DNS suffix of this computer field, specify the PowerProtect Data Manager resolvable FQDN of the Microsoft
SQL Server virtual machine domain name.
3. Click OK.
Rename the lockbox folder in C:\Program Files\DPSAPPS\common on the Microsoft SQL Server client, and retry the
virtual machine configuration job.
To resolve this issue, free up disk space on the C:\ drive and reconfigure the policy for the Microsoft SQL Server asset so that
the lockbox is updated.
To resolve this issue, confirm the following, and then retry the backup:
● The vCenter server is not busy
● There is enough free space on the datastore to perform the operation
● If this is a quiesced backup, the virtual machine is not busy
If this does not resolve the issue, perform a manual quiesced snapshot of the virtual machine and look in the datastore location
of the virtual machine for a VSS_manifest_zip file. If there is no file, contact VMware support. If there is a file, contact
Customer Support.
To prevent or resolve these backup issues, use any of the following procedures:
● Increase the RAM size on the Microsoft SQL Server host.
● Increase the virtual paging value (swap size) on the Microsoft SQL Server host by completing the following steps:
1. Select Control Panel > System and Security > System.
2. Select Advanced system settings to display the system properties of the Microsoft SQL Server host.
3. In the System Properties dialog box, select the Advanced tab.
4. Under Performance, select Settings.
5. In the Performance Options dialog box, select the Advanced tab.
6. Under Virtual memory, select Change.
7. In the Virtual Memory dialog box:
a.
Clear the default setting, Automatically manage paging file size for all drives.
b.
Select the drive for which you want to change the paging file size.
c.
Select Custom size.
d.
Set the Initial size to the same value as the Currently allocated size.
e.
Set the Maximum size required for the paging file, based on the recommended size for the Microsoft SQL Server
host system. To ensure system stability, Windows restricts the paging file size to three times the value of the installed
RAM.
● On the Infrastructure > Assets page in the PowerProtect Data Manager UI, reduce the stripe value for all databases.
Enable multi-stream backups for Microsoft SQL Server protection policy provides details about how to set the stripe value.
NOTE: If the stripe value is decreased to 1, full and differential backups can take longer to complete, depending on the
size of the database.
● If the backup schedule results in overlapping backups that run at the same time, such as concurrent FULL and LOG backups,
modify the backup schedule to prevent the overlapping backups.
● If possible, create multiple protection policies with fewer databases that have non-overlapping schedules.
NOTE: A Microsoft SQL Server database asset may be included in only one protection policy.
Unable to determine the status of mirror partner backups for database DBA_TEST.
Promoting the backup level full database backup.
With Microsoft SQL Server 2012 or later, use of an Always On availability group (AAG) is recommended. A mirrored database
configuration is not supported with Microsoft SQL Server 2012 or later.
To prevent this error message during self-service T-SQL backups, ensure that the Microsoft SQL Server instance service runs
as the OS/Microsoft SQL Server user, instead of NT SERVICE\<instance_name>.
Write and delete operations are not supported on the storage unit
'<storage_unit_pathname>' because the storage unit is managed by the PowerProtect Data
Manager system.
To delete the expired backup copies, you can use the following procedures from the PowerProtect Data Manager UI or
Microsoft SQL Server host:
● From the PowerProtect Data Manager UI, select the expired backup copies and delete the backup copies by clicking the
Delete button.
● From the Microsoft SQL Server host, perform the following steps:
1. Open the <installation_path>\Settings\.app.settings file for editing. The file content is in XML format,
for example:
2. In the <installation_path>\Settings\.app.settings file, locate the section between the <credential> and
</credential> tags that contains the <ddHostName>, <devicePath>, <ddUser>, and <type> tags for the DD or MTree
where the backup copies are generated and imported to PowerProtect Data Manager.
3. Delete that section in the <installation_path>\Settings\.app.settings file.
CAUTION: Delete only the tags <ddHostName>, </ddHostName>, <devicePath>, </devicePath>,
<ddUser>, </ddUser>, <type>, and </type> and the information between those tags. Do not delete any
other tags or information in the file, which contain the DD details that the PowerProtect Data Manager
generates.
Table 19. Microsoft SQL Server skipped database cases and descriptions
Case Description
Database has been When a database has been restored, this database is skipped during a transaction log backup because
restored there is no backup promotion.
System database System databases are automatically skipped during a transaction log backup.
Database state The database is not in a state that allows a backup. For example, the database is in the NORECOVERY
state.
Recovery model The database is in the SIMPLE recovery model, which does not support a transaction log backup.
Other backup The most recent backup for the database was performed by a different backup product.
product
New database The database was created after the most recent full backup.
Backup failure The database was in a state that allows a backup, and a backup was tried, but the backup failed.
All skipped databases are backed up as part of the next full backup. Also, a skipped database does not result in a failure.
The only instance in which a transaction log backup job would potentially fail is if all Microsoft SQL Server instance databases
failed to be backed up or were skipped.
Troubleshooting restores
You might encounter the following issues while performing restores.
No copies are available for the listed assets. The restore operation will not include
these assets.
You also cannot perform the centralized restore of multiple databases from multiple policies when the backup copies are located
on separate storage units in the same DD system.
As a workaround, perform the centralized restore of each database separately.
Unable to initialize the generic information context: Cannot create shared memory
mapping, permission denied: ERROR_ACCESS_DENIED.
As a workaround, launch the SSMS plug-in by selecting Run as administrator and rerun the self-service restore operation.
As a workaround, perform at least one successful protection policy operation after the update of the PowerProtect Data
Manager server. Then perform the VM Direct restore of an old backup through the SSMS UI.
ddbmsqlrc PowerProtect Data Manager critical The file '<file_name>' cannot be moved by
this RESTORE operation.
The centralized restore is configured in the PowerProtect Data Manager UI by selecting Restore > Assets and the SQL tab.
Proceeding through the restore wizard screens, the option Restore to Original is selected on the Location screen and the
option Original file location is selected on the Select File Location screen.
As a workaround, check whether the replica's file location is different on the two AAG nodes. For example, the file location
C:\data of Node1\Instance1 is different from the file location D:\data of Node2\Instance2. If the replica's file location is
different on the AAG nodes, then reconfigure the centralized restore by selecting one of the following options on the Select
File Location screen in the PowerProtect Data Manager UI restore wizard:
● Default file location as set by Microsoft SQL Server
● User-specified file location
SSMS UI crash after switch from table restore to database restore tab
During a restore using the SQL Server Management Studio (SSMS) UI, the SSMS UI might crash after you perform the
following sequence of operations in the UI:
1. You select a database on the database restore tab.
2. You select a different storage unit on the table restore tab.
3. You switch quickly to the database restore tab to try to check a preloaded database.
The SSMS UI crashes when the switch from table restore tab to database restore tab occurs so quickly that the database list
has not yet been updated before you try to check the preloaded database. An Assertion Failed exception message window is
displayed.
As a workaround, clear the SSMS cache and retry the operation.
When you set the debug level to a value from 1 to 9, the Microsoft application agent generates the debug logs on the virtual
machine when the PowerProtect protection group runs. To deactivate the debug logs, set the debug level to 0.
3. After the next failed job, inspect the following logs:
● Microsoft application agent diagnostic logs in C:\Program
Files\DPSAPPS\MSAPPAGENT\bin\msagentcon.XXXXX.log
● Agent service log in agentsvc.log in the agent service home directory on the Microsoft SQL Server host
● ADM log from PowerProtect in C:\Program Files\DPSAPPS\AgentService\logs\OPAgentSVC.xxx.log
A
AAG: Always On availability group
B
BBB: block-based backup
C
CA: certificate authority
D
DAG: database availability group
Glossary 231
DBID: database identifier
deploy
At Dell, virtual machines are deployed to virtual environments, while software components and hardware devices are
installed. Both PowerProtect Data Manager and DDVE are virtual machines that are deployed. If you are searching this
software guide for instances of install and not finding anything appropriate, search for deploy instead.
E
EBS: Elastic Block Store
F
FC: Fibre Channel
232 Glossary
G
GB: gigabyte
At Dell, this is 2 30 bytes.
H
HA: High Availability
I
IAM: identity and access management
K
KB: kilobyte
At Dell, this is 2 10 bytes.
L
LAC: License Authorization Code
M
MB: megabyte
At Dell, this is 2 20 bytes.
Glossary 233
ms: millisecond
N
NAS: network-attached storage
O
OS: operating system
P
PCS: Protection Copy Set
R
RAC: Real Application Cluster
234 Glossary
ReFS: Resilient File System
RSA: Rivest-Shamir-Adleman
S
S3: Simple Storage Services
T
TB: terabyte
At Dell, this is 2 40 bytes.
Glossary 235
TLS: Transport Layer Security
T-SQL: Transact-SQL
U
UAC: user account control
update
At Dell, software is updated and hardware is upgraded. If you are searching this software guide for instances of upgrade
and not finding any, search for update instead.
V
VADP: VMware vStorage API for Data Protection
236 Glossary
VPC: virtual private cloud
W
WAN: wide area network
Glossary 237