Veeam® Backup & Replication™ is a powerful, easy-to-use and affordable backup and Availability solution. It provides fast, flexible and reliable recovery of virtualized applications and data bringi...
Veeam Backup Replication Best Practices
evaluacion explorers 5 unit 5Descripción completa
Descripción completa
Full description
UnitDescripción completa
ZET 9 Astrology Software - User Guide
Teachers Guide Great Explorers 4Descripción completa
Fichas de refuerzo de inglés para 6º
InventorCAM 2014 Sim.5-Axis User Guide
A clear and easy to understand guide in question and answer format concerning the use of 5-MeO-DMT as an entheogenic tool for expansion of human awareness.
A clear and easy to understand guide in question and answer format concerning the use of 5-MeO-DMT as an entheogenic tool for expansion of human awareness.
Revision of grammar and vocabulary Great Explorers 5 Unit 3 There is/ There are
OXFORDDescripción completa
Smart Plant User GuideDescription complète
User Guide to the optimization code OptistructFull description
pipesimDescripción completa
rwetrkjhgFull description
Veeam Explorers Series Version 9.5 User Guide May, 2017
Please read the End User Software License Agreement before using the accompanying software program(s). Using any part of the software indicates that you accept the terms of the End User Software License Agreement.
2
| Veeam Explorers Series | User Guide | REV 3
CONTENTS CONTENTS............................................................................................................................................ 3 CONTACTING VEEAM SOFTWARE....................................................................................................... 5 INTRODUCTION ................................................................................................................................... 6 WORKING WITH VEEAM EXPLORER FOR MICROSOFT ACTIVE DIRECTORY ..................................... 7 BEFORE YOU START..............................................................................................................................................................
7
What's New in v9.5...........................................................................................................................................7 How It Works ...................................................................................................................................................... 8 Prerequisites.......................................................................................................................................................9 ADMINISTRATION
First Steps ......................................................................................................................................................... 14 Obtaining Database Files from Backup ................................................................................................ 17 Adding Databases to Veeam Explorer Scope ..................................................................................... 22 Viewing and Restoring AD Objects ........................................................................................................ 24 Obtaining Veeam Explorer Logs .............................................................................................................42
WORKING WITH VEEAM EXPLORER FOR MICROSOFT SQL SERVER ................................................ 43 BEFORE YOU START............................................................................................................................................................ 43 What's New in v9.5........................................................................................................................................ 43 Planning for Database Restore ................................................................................................................44 How It Works ................................................................................................................................................... 45 Prerequisites.................................................................................................................................................... 48 ADMINISTRATION
First Steps ......................................................................................................................................................... 57 Obtaining Database File from VM Backup .......................................................................................... 61 Adding Database To Veeam Explorer Scope ...................................................................................... 67 Viewing Database Information ................................................................................................................ 68 Restoring Databases .................................................................................................................................... 69 Exporting Databases .................................................................................................................................... 84 Obtaining Veeam Explorer Logs .............................................................................................................97
WORKING WITH VEEAM EXPLORER FO R MICROSOFT EXCHANGE ................................................. 98 BEFORE YOU START............................................................................................................................................................ 98 What's New in v9.5........................................................................................................................................ 98 How It Works ................................................................................................................................................... 98 Prerequisites.................................................................................................................................................. 100 ADMINISTRATION ............................................................................................................................................................ 106 First Steps .......................................................................................................................................................106 Obtaining Database File from VM Backup ........................................................................................111 Adding Databases to Veeam Explorer Scope ...................................................................................117 Browsing, Searching and Viewing Items............................................................................................ 119 Restore Scenarios ........................................................................................................................................ 123 Obtaining Log Files .................................................................................................................................... 133
WORKING WITH VEEAM EXPLORER FO R MICROSOFT SHAREPOINT ............................................ 134 BEFORE YOU START.........................................................................................................................................................
3
| Veeam Explorers Series | User Guide | REV 3
134
What's New in v9.5...................................................................................................................................... 134 How It Works ................................................................................................................................................. 135 Prerequisites.................................................................................................................................................. 136 ADMINISTRATION ............................................................................................................................................................ 145 First Steps .......................................................................................................................................................145 Obtaining Content Database Files from Backup ............................................................................150 Adding Databases to Veeam Explorer Scope ...................................................................................162 Browsing, Searching and Viewing Items............................................................................................ 164 Restoring Data ..............................................................................................................................................167 Obtaining Veeam Explorer Logs ...........................................................................................................180
WORKING WITH VEEAM EXPLORER FOR ORACLE .......................................................................... 181 BEFORE YOU START.........................................................................................................................................................
181
What's New in v9.5...................................................................................................................................... 182 How It Works ................................................................................................................................................. 182 Prerequisites.................................................................................................................................................. 184 ADMINISTRATION ............................................................................................................................................................ 197 First Steps .......................................................................................................................................................197 Obtaining Database File from VM Backup ........................................................................................200 Viewing Database Information ..............................................................................................................204 Restoring Database ....................................................................................................................................205 Obtaining Veeam Explorer Logs ...........................................................................................................214
APPENDIX. SQL DATABASE O PERATION SELECTION .................................................................... 215 REVISION HISTORY .......................................................................................................................... 217
4
| Veeam Explorers Series | User Guide | REV 3
CONTACTING VEEAM SOFTWARE At Veeam Software we value the feedback from our customers. It is important not only to help you quickly with your technical issues, but it is our mission to listen to your input, and build products that incorporate your suggestions.
Customer Support Should you have a technical concern, suggestion or question, please visit our Customer Center Portal at www.veeam.com/support.html to open a case, search our knowledge base, reference documentation, manage your license or obtain the latest product release.
Company Contacts For the most up to date information about company contacts and offices location, please visit www.veeam.com/contacts.html.
Online Support If you have any questions about Veeam Explorers Series, you can use the following resources:
5
Full documentation set: www.veeam.com/backup-replication-resources.html
Community forum at forums.veeam.com
| Veeam Explorers Series | User Guide | REV 3
INTRODUCTION Veeam Explorers are tools that extends the functionality of Veeam Backup & Replication, allowing you to view and recover application items from within application VM backup or replica. The popular applications supported by Veeam Explorer series include Microsoft Exchange, Active Directory, SharePoint, SQL Server and Oracle. For that, you do not need to fully restore and start the virtual machine hosting the application server. Instead, Veeam mounts the file system of the backed up application VM to the corresponding server, creating a mount point on it. (Depending on the restore scenario, it can be a target or a staging server.) Application databases are then detected (either automatically, or manually pointed by used), and the corresponding Veeam Explorer displays their content in the navigation tree. This document is designed for backup administrators and other IT professionals who use Veeam Backup & Replication to protect data in managed virtual environments. It assumes that you are familiar with basic operations that can be performed in the Veeam Backup & Replication management console. This guide describes how to configure and use the series of Veeam Explorers, including:
6
•
Veeam Explorer for Microsoft Active Directory
•
Veeam Explorer for Microsoft SQL
•
Veeam Explorer for Microsoft Exchange
•
Veeam Explorer for Microsoft SharePoint
•
Veeam Explorer for Oracle
| Veeam Explorers Series | User Guide | REV 3
WORKING WITH VEEAM EXPLORER FOR MICROSOFT ACTIVE DIRECTORY This chapter describes Veeam Explorer for Microsoft Active Directory and explains how to restore Active Directory objects from the backups created with Veeam Backup & Replication.
Before You Start Veeam Explorer for Microsoft Active Directory is a tool that extends the functionality of Veeam Backup & Replication, allowing you to browse Active Directory database and recover the necessary items (objects and containers) and their attributes from domain controller backup into production. For that, you do not need to fully restore and start the virtual machine hosting the domain controller. Instead, you can use Veeam Backup & Replication data recovery options to obtain the necessary Active Directory database file ( . DI T), mounting the virtualized DC backup to the local machine. Then you can utilize the following Veeam Explorer for Microsoft Active Directory capabilities:
Use granular browsing and searching capabilities to find any object/container stored in Active Directory database
Export objects/containers to a local folder or network drive
Restore them to the srcinal or different location
With Veeam Explorer, you can restore changed or deleted Active Directory objects and containers: users, groups, computers, account passwords for user, group or computer account, mail-enabled and mailbox-enabled users and groups reconnecting their mailboxes, hard-deleted items and Online Archive mailboxes, Organizational Units (OUs), Group Policy Objects (GPO), Configuration partition objects, and AD-integrated records. Forattributes Active Directory Domain Services 2016, restore of DNS lookup zones and expirationDNS time for linked is also supported.
Note:
Restore of Group Policy objects, AD-integrated DNS records and objects from the Configuration partition is supported in the Enterprise and Enterprise Plus editions only.
What's New in v9.5 The following new features and enhancements were implemented in Veeam Explorer for Active Directory 9.5:
7
Support for Active Directory Domain Services 2016, including restore of passwords, DNS lookup zones, and expiration time for linked attributes. UI enhancements, including ribbon menu, command-specific tabs, and support of display themes as in Veeam Backup & Replication console.
| Veeam Explorers Series | User Guide | REV 3
How It Works The basic procedure of searching and restoring Active Directory object with Veeam includes the following steps:
1.
Active Directory database (. DI T file) is extracted from the image-level VM backup or VeeamZIP VeeamtoBackup & Replication restore the file system of the backed up file, VM using is mounted the local mount server - thatcapabilities: is, the machine where Veeam Explorer runs.
2.
The database is added to the Veeam Explorer for Microsoft Active Directory scope, its hierarchy and content displayed in the Veeam Explorer window.
3.
Veeam Explorer for Microsoft Active Directory is used to find the necessary object/container, export it as .LDF file, or restore it to the srcinal or different server.
Important! Veeam Explorer for Microsoft Active Directory requires full access to Active Directory database files for item recovery. Refer to Permissions section for details. So, before viewing and restoring Active Directory objects with Veeam Explorer for Microsoft Active Directory, the following steps should be taken automatically or manually:
8
1.
Active Directory database (. DI T file) is obtained automatically from the mounted imagelevel VM backup, or manually from VeeamZIP file. For details, see Obtaining Database File from VM Backup.
2.
Add the recovered database file to Veeam Explorer for Microsoft Active Directory scope (automatically or manually). For details, see Adding Database to Veeam Explorer Scope.
| Veeam Explorers Series | User Guide | REV 3
Prerequisites To provide for Active Directory objects restore with Veeam Explorer for Microsoft Active Directory, the following prerequisites are necessary: 1.
System requirements should be met, as listed in the System Requirements section.
2.
Required permissions should be assigned to the accounts involved, as listed in the Permissions section.
3.
Ports should be configured, as listed in the Required Ports section.
4.
Recovery logic and peculiarities of Veeam Explorer for Microsoft Active Directory operation should be considered, as described in the Recommendations section.
5.
Application-aware image-level backup should be successfully created for your Active Directory Domain Services server, as described in the Veeam Backup & Replication User Guide.
System Requirements Veeam Explorer for Active Directory does not require a separate license. It is installed with Veeam Backup & Replication server or standalone management console; all editions including Veeam Backup Free Edition are supported (for details, see the Licensing and Editions section). To install and use Veeam Explorer for Active Directory as a component of Veeam Backup & Replication, make sure that all necessary system requirements for Veeam Backup & Replication are met. System requirements specific for Veeam Explorer are listed below. Specification
Requirement Veeam Explorer for Microsoft Active Directory supports database files (. DI T) created with Microsoft Active Directory Domain Services servers (domain controllers):
Microsoft Active Directory Domain Services
Microsoft Windows Server 2016 Microsoft Windows Server 2012 R2 Microsoft Windows Server 2012 Microsoft Windows Server 2008 R2 Microsoft Windows Server 2008 Microsoft Windows Server 2003 SP2
Minimum supported domain and forest functional level is Windows 2003.
Important! Database files created by a domain controller can be open for object recovery with Veeam Explorer for Active Directory only if Veeam Explorer is installed on a Windows machine with OS version same or above the version of that domain controller's OS.
Software
9
Any edition of Veeam Backup & Replication 9.5. Microsoft PowerShell 2.0 and later. Veeam Explorer can restore the relationships between Active Directory objects and corresponding mailboxes - if an object (user or group) was deleted from production Active Directory, Veeam Explorer can restore this
object from Active Directory mailbox security role for thatbackup, object. reconnect Exchange mailbox and restore Veeam Explorer for Active Directory supports restore of both mailbox-enabled objects (including hard-deleted items and Online Archives) and mail-enabled objects for the following Microsoft Exchange versions: o Microsoft Exchange Server 2016 o Microsoft Exchange Server 2013 o Microsoft Exchange Server 2010 SP1 and later For other Microsoft Exchange versions, restore of mailbox-enabled objects is not supported (only mail-enabled objects can be restored).
| Veeam Explorers Series | User Guide | REV 3
Specification
Requirement
To open database files, Veeam Explorer for Microsoft Active Directory uses a service dynamic link library (esent . dl l ) which is installed together with Microsoft Active Directory Domain Services and can be found in the system directory at %SystemRoot%.
Important! Esent . dl l on the machine where Veeam Explorer runs should be of the same version as Microsoft Active Directory Domain Services used to create database files.
To restore account password, Veeam Explorer for Microsoft Active Directory uses the registry database, so if you plan to restore password(s), make sure that Syst emregistry hive is available (default location is %sys t emr oot %\ Syst em32\ Conf i g) . If you restore Active Directory database from Active Directory backup using Veeam file-level restore, then registry hive will be located automatically. Otherwise, for example, if you restore from an imported backup or from VeeamZIP file, make sure the Syst emregistry hive is located in the same folder as . DI T file.
Permissions The account used for connection with target domain controller where objects/containers will be restored needs the following:
Administrative rights for target Active Directory Membership in the Exchange Organization Management group is required to provide for automatic mailbox re-connect for recovered user or group account
The account can be assigned an appropriate role on the Exchange server in target domain by running the following Exchange Management PowerShell cmdlet: Add- Rol eGr oupMember “Or gani zat i on Management ” – Member “”
Used Ports The following table describes network ports that must be opened to ensure proper communication of the Veeam backup server with the Microsoft Active Directory VM during application-item restore. From
To
Protocol
Port
Notes
Veeam backup server/stand alone console
Microsoft Active Directory VM guest OS
TCP
135
Port required for communication between the domain controller and Veeam backup server.
TCP, UDP
389
LDAP connections.
TCP
636, 3268, 3269
LDAP connections.
TCP
1025 to 5000 (for Microsoft Windows 2003)
Dynamic RPC port range used by the runtime coordination process deployed inside the VM guest OS for applicationaware image processing (when working over the network, not over VIX API). For more information, see http://support.microsoft.com/kb/92985 1/en-us.
49152-65535 (for Microsoft Windows 2008 and newer)
10
| Veeam Explorers Series | User Guide | REV 3
Required Backup Job Settings To be able to explore and recover the necessary database using a desired restore scenario, you should have a transactionally-consistent backup of your Active Directory Domain Services server created successfully. For that, you should enable application-aware image processing and specify applicationspecific settings, as described in the Veeam Backup & Replication User Guide for the corresponding platform.
You may also find useful information in the following articles:
Backing Up a Domain Controller - the series of post in the Veeam corporate blog Active Directory Backup & Recovery with Veeam - a technical white paper (currently available for v8)
Licensing and Editions Veeam Explorer for Microsoft Active Directory requires no special license to purchase; it is shipped with all editions of Veeam Backup & Replication, including Veeam Backup Free Edition. However, the full range of restore capabilities will be available with Veeam Backup & Replication Enterprise and Enterprise Plus Edition only. Compare editions: Feature
Free
Standard
Enterprise
Enterprise Plus
Browse
Available
Available
Available
Available
Search
Available
Available
Available
Available
11
| Veeam Explorers Series | User Guide | REV 3
Save
Available
Available
Available
Available
Send
Available
Available
Available
Available
Export
Available
Available
Available
Available
Single object restore
Available
Available
Available
Available
Container restore
Not available
Not available
Available
Available
Password restore
Not available
Available
Available
Available
Group Policy Object restore
Not available
Not available
Available
Available
ADintegrated DNS records restore
Not available
Not available
Available
Available
Configurat ion Partition Object restore
Not available
Not available
Available
Available
Restore to Active Directory Domain Services server
Considerations and Recommendations To be able to explore and recover the necessary item within the Active Directory database files, make sure that you have a transactionally consistent backup of your Active Directory Domain Services server (domain controller) created successfully. (For details, see the "Transaction Consistency" and "Enable Application-Aware Image Processing and Indexing" sections of Veeam Backup & Replication User Guide.) When planning for Active Directory objects restore, please be aware of the considerations and limitation described below. The following logic is implemented in the Active Directory objects recovery process (except for Group Policy objects described later in this topic):
If a tombstone object exists in the target Active Directory, Veeam will use this object for recovery. This allows you to restore security attribute values including objectSID and objectGUID for recovered objects, which is especially important for security principals (including User, Computer, inetOrgPerson and Group objects).
Important! To be able to restore from tombstone objects, make sure that AD Recycle Bin feature is disabled (default setting) in the target domain.
12
If no tombstone object exists in the target Active Directory, Veeam will create a new object during the recovery process and set all attributes to the same values as in corresponding object in the backup. However, these attributes (including security) will be new, which may result in losing access rights.
| Veeam Explorers Series | User Guide | REV 3
Note:
In case you need to restore a business-critical object for which a tombstone is missing, you can perform authoritative restore of entire domain from old DC backups which contain deleted object, and then refresh them using Veeam Explorer for Microsoft Active Directory and newer backups. To read more about tombstone objects, refer to Microsoft TechNet at http://technet.microsoft.com/en-us/library/dd379542%28v=ws.10%29.aspx. Also, consider the following when planning for your AD objects restore:
Tip:
1.
To properly restore deleted objects and their attributes including SID and GUID, it is recommended that you carry out the restore procedure using Veeam Explorer for Microsoft Active Directory, as explained in this guide, and make sure that recovery was a success.
2.
Always use the backups which are newer than tombstone lifetime interval for Active Directory forest.
To determine this interval, you can use ADSIEdit or Dsquery as described in http://technet.microsoft.com/en-us/library/cc784932(v=ws.10).aspx. 3.
Remember that when you move an object from one domain to another within a forest (for example, using the Movetree.exe utility or any 3rd party tool), no tombstone for this object will remain in the source Active Directory. Thus, such an object cannot be fully recovered to the srcinal domain.
4.
Consider that when Group Policy objects are restored from the backup, both Active Directory data (storing Group Policy Containers) and %Sysvol %data (storing Group Policy Templates) is involved. Therefore, for successful restore data should be consistent in these two locations. Restore logic is implemented as follows: existing Group Policy objects are deleted from target, and new ones from the backup are written there.
5.
Link attributes without the corresponding back link to deleted objects are not restored, if both deleted objectsthe andrestore links are restored will need to perform once again.in a single restore operation. To work around, you
In case you want to restore Active Directory Domain Services server as a whole, the recommendations provided in the series of Veeam blog posts at https://www.veeam.com/blog/how-to-recover-adomain-controller-best-practices-for-ad-protection.html can be helpful.
13
| Veeam Explorers Series | User Guide | REV 3
Administration The basic procedure of Active Directory object recovery with Veeam Explorer for Microsoft Active Directory involves the following main steps:
Step 1: Obtain Database File from VM Backup
Step 2: Add Database to Veeam Explorer's Scope
Step 3: View and Restore AD Objects
First Steps Veeam Explorers are installed together with Veeam backup server or standalone console, and there are several ways of starting a Veeam Explorer tool. If you want to open Veeam Explorer, simultaneously adding the required database to its scope in the automated way, follow the procedures described later in this guide. You may also want to open Veeam Explorer as an individual application - for that, go to the list of applications (or Start menu), and double-click Veeam Explorer icon. By default, it connects to the backup server installed locally. If you are starting Veeam Explorer from the standalone console, you will be prompted for the settings of Veeam backup server to connect to:
You can enter Veeam backup server name or IP address, or select it from the list of recent connections. Port number to communicate to - default is 9232 Credentials under which Veeam Explorer will connect to server; if you plan to use the account currently logged on, select Use Windows session authentication.
If you plan to use these settings for future connections, you can click Save shortcut - the shortcut will be saved to your Desktop. When ready, click Connect.
14
| Veeam Explorers Series | User Guide | REV 3
Getting to Know the User Interface Main Menu The main menu of Veeam Explorer can be opened by clicking its icon in the top left corner of the main window, next to the Home tab. The menu contains commands related to general application settings. In particular, you can perform the following operations:
Open log file or folder
Access online Help
View information about the program
Exit the program
Main Window On the left of the window there is the navigation pane. It displays content database as a hierarchical structure, including content databases, sites, subsites, libraries and lists. It facilitates browsing for application items you want to restore. When you select a node in the navigation pane, you can browse and search for its sub-nodes in the preview pane on the right. Operation commands in Veeam Explorer are organized into logical groups and collected under the tabs on the ribbon. The ribbon is displayed at the top of the main application window.
Tip:
The Home ribbon tab p rovides quick access to some common operations. Other tabs contain commands specific for certain entities appear when the corresponding nodes are selected in the navigation pane. For example, if you select a container in the navigation tree, the Container tab displaying buttons for operations with libraries will appear on the ribbon.
Commands for selected entity are also available in the entity's shortcut menu.
15
| Veeam Explorers Series | User Guide | REV 3
Display Theme When you open Veeam Explorer application, its display theme settings are imported from the Veeam Backup & Replication configuration. So, if you want to change the display theme, you should do it in Veeam Backup & Replication general options, as described in its User Guide, and then re-open Veeam Explorer.
16
| Veeam Explorers Series | User Guide | REV 3
Obtaining Database Files from Backup Veeam Explorer for Microsoft Active Directory works with database files that you obtain from the VeeamZIP file or from database backup or replica of an Active Directory Domain Services Server VM, without a need to restore that VM itself. The file system of the backed up VM is mounted to the local mount server - that is, the machine where Veeam Explorer runs. Being added to Veeam Explorer scope, the database becomes available for browsing, search and restore of Active Directory objects.
VeeamZIP File To obtain the database from the VeeamZIP file, you can use full VM recovery or guest OS file-level recovery (preferred option) for the virtualized domain controller (Active Directory Domain Services server), then in the Veeam Backup browser, locate the Active Directory database file you need. If you want to add the database file to Veeam Explorer for Microsoft Active Directory directly from the mounted VM file system, do the following:
Note:
1.
In the navigation tree of the Backup Browser, choose the folder where content database files reside, then on the Backup Browser toolbar, click Open in Explorer. The target directory will be opened in the Windows Explorer.
2.
Copy the full path to the target directory to clipboard. You can now launch Veeam Explorer for Microsoft Active Directory and add the database file from backup that was mounted to the Veeam Backup server. For details, see Adding Database to Veeam Explorer's Scope.
If you choose to restore Active Directory objects directly from the mounted VM file system, do not close the Backup Browser until you finish restore operations. Closing the Backup Browser automatically unmounts the file system of the backed up VM.
Backup or Replica To obtain Active Directory database from the backup or replica file, you can use any data recovery feature available in Veeam Backup & Replication: Instant VM recovery, full VM restore, replica failover and so on. These features are described in detail in Veeam Backup & Replication User Guide. The guidelines in this section explain how you can use Microsoft Active Directory Object Restore Wizard to automatically obtain database file and add it to Veeam Explorer scope, or use Guest OS Restore Wizard and Backup Browser for that purpose.
Using Microsoft Active Directory Object Restore Wizard To start the Microsoft Active Directory Object Restore wizard, do one of the following:
17
In Veeam Backup & Replication, open the Backup & Replication view. Go to the Home tab of the ribbon menu and click Restore on the toolbar. In the Restore wizard, select Application items, then select Microsoft Active Directory and click Next.
| Veeam Explorers Series | User Guide | REV 3
You will be taken to Step 1 of the Microsoft Active Directory Item Restore wizard.
In Veeam Backup & Replication, open the Backup & Replication view. Select the Backups node, expand the backup job with the Microsoft Active Directory server in the working area. Select the Microsoft Active Directory Domain Services server VM and click Application items > Microsoft Active Directory from the ribbon. In this case, you will pass to the Step 2 of the wizard. In Veeam Backup & Replication, open the Backup & Replication view. Select the Backups node, expand the backup job with the Microsoft Active Directory server in the working area. Right-click the Microsoft Active Directory Domain Services server and select Restore application items > Microsoft Active Directory objects... . In this case, you will pass to the Step 2 of the wizard. Note that you can use this method only for Microsoft Active Directory backups that were created with VSS-aware image processing enabled.
Step 1. Select a Backup with Microsoft Active Directory In the list of available jobs, select a Microsoft Active Directory VM. If you want to view all VMs included in the job, select the Show all VMs check box. To quickly find VMs in jobs, use the search field at the bottom of the window.
Step 2. Select a Restore Point Select a necessary restore point for the Microsoft Active Directory VM.
18
| Veeam Explorers Series | User Guide | REV 3
Step 3. Enter a Restore Reason If necessary, enter the reason for performing VM guest file restore and click Next. The information you provide will be saved in the session history so that you can reference it later.
If you do not want Veeam Backup & Replication to display the Reason step next time, select the Do not show me this page again check box at the bottom of the wizard.
Step 4. Restore the Microsoft Active Directory Data base At the last step of the wizard, review the summary and click Finish to start the restore process.
19
| Veeam Explorers Series | User Guide | REV 3
After you click Finish, Veeam Backup & Replication will automatically perform the following actions: 1.
Mount the selected backup file to Veeam backup server.
2.
Locate the Microsoft Active Directory database in the backup file.
3.
Launch Veeam Explorer for Microsoft Active Directory.
4.
Add the Microsoft Active Directory database to the Veeam Explorer for Microsoft Active Directory scope, displaying database hierarchy and objects in the Veeam Explorer window.
Using Guest OS Restore Wizard The Guest OS Restore wizard allows you to mount the backup of the Active Directory domain controller and extract the Active Directory database files. When you perform file-level restore of guest OS files, the VM image will not be extracted from the backup but the content of a backup file is mounted directly to the corresponding mount server and displayed in the inbuilt Veeam Backup Browser. After that, you can locate the necessary database file and add it to Veeam Explorer for Microsoft Active Directory.
Note:
1.
In the Veeam Backup & Replication console, open the Backup & Replication view, go to the Home tab on the ribbon menu and click Restore.
2.
In the Restore Wizard, select Guest Files > Guest Files (Windows) .
3.
In the list of available jobs, select the backup or replica of the domain controller from which the Active Directory database should be restored.
The domain controller VM requires a backup with VSS enabled. For more information, see the "Enable Application-Aware Image Processing and Indexing" section of the Veeam Backup & Replication User Guide.
20
4.
Select the restore point for the domain controller VM. The details on this VM (including name, size and srcinal host) will be also displayed. Click Next to proceed.
5.
Click Finish to start restoring files. Once restore is completed, Veeam Backup & Replication will open a Backup Browser displaying the file system tree of the restored VM.
| Veeam Explorers Series | User Guide | REV 3
Note:
Please note that the names of the restored machine drives may differ from the srcinal ones.
6.
Browse through the contents of the backup and locate the Active Directory database file (NTDS. DI T). If you prefer opening file tree in Explorer, consider that VM disks are mounted under the C: \ veeamf l r \ \ folder; the NTDS. DI T file is located in the %Syst emRoot%\ NTDS folder (see the "Datastore Physical Structure" section in this Microsoft Technet article for more information).
7.
Double-click the file to automatically launch Veeam Explorer for Microsoft Active Directory and add the database to Veeam Explorer's scope, or open the Home tab of the ribbon menu, and select Application Items > Active Directory Items.
If you obtain database backup in the alternative way (for example, from VeeamZIP), then you should add the database manually, as described in Adding Database to Veeam Explorer's Scope.
21
| Veeam Explorers Series | User Guide | REV 3
Adding Databases to Veeam Explorer Scope For users to be able to browse and restore the AD objects, Active Directory database should be added to the Veeam Explorer for Microsoft Active Directory scope.
Note:
If you were using Microsoft Active Directory Object Restore Wizard, this operation will be performed automatically. If you were using file-level restore to mount the contents of the backup file with the database file in it, then you can browse to NTDS. DI T file using Backup Browser and double-click it to automatically open Veeam Explorer for Microsoft Active Directory and add the database to its scope. Alternatively, you will need to manually add a database to Veeam Explorer scope.
If you know in which database the necessary objects or containers are located, you only need to add one . DI T file. If you are not sure in which database the necessary objects are located, you can add multiple . DI T files to Veeam Explorer for Microsoft Active Directory scope. To manually add a database file to the Veeam Explorer for Microsoft Active Directory scope and make it visible in the main Veeam Explorer window, do the following:
Note:
1.
Open Veeam Explorer for Microsoft Active Directory and click Add Database on the toolbar.
2.
In the dialog displayed, enter the location of the Active Directory database file and, if required, the folder where corresponding transaction log files (Edb. l og and Edb. chk) are stored. The Active Directory database file ( NTDS. DI T) default location is the %Syst emRoot%\ NTDS folder.
Make sure the System registry hive is located in the same folder as NTDS. DI T.
3.
Click Open and wait for the operation to complete.
To add multiple databases to Veeam Explorer scope when one database is already open, you can run the same command from the menu bar on the Home tab of the ribbon menu, or right-click the root item in the navigation tree and select Add database from its shortcut menu.
22
| Veeam Explorers Series | User Guide | REV 3
To remove a database from Veeam Explorer scope: 1.
Select the database in the navigation pane.
2.
Click Remove Database on Home tab of the toolbar.
You can also right-click the domain item in the navigation pane and click Remove database in the item's shortcut menu.
Other databases (if added) will remain untouched. The database removed from the Veeam Explorer for Microsoft Active Directory scope will be no longer shown in the console.
23
| Veeam Explorers Series | User Guide | REV 3
Viewing and Restoring AD Objects After adding the Active Directory databases to the Veeam Explorer for Microsoft Active Directory scope, you can browse through the database objects and containers, view their attributes, search and restore the objects or containers you need.
Browsing for AD Objects In the Veeam Explorer for Microsoft Active Directory navigation pane, you can see Active Directory objects and containers. When you select a container node, you can browse its contents in the working area on the right.
Note:
The content of Domain Controllers node is unavailable for browsing; restore of domain controller objects is not supported. This limitation is due to organizational and security purposes. To browse Active Directory Configuration Partition container and Integrated DNS container, go to the Home tab and click Advanced Features on the toolbar:
For computer objects, Veeam Explorer for Microsoft Active Directory will also show their shared volumes and/or print queues (if any) after you expand the computer node:
Searching for AD Objects At the top of the preview pane on the right, there is a search field that allows you to find items that match a specified search term. You can select any item in the hierarchy on the left to define your search scope: Veeam Explorer for Microsoft Active Directory will search through attribute values of all items within selected container (for example, organizational unit) or within the whole database. You can use logical operators such as AND, OR and NOT (must be typed in uppercase letters). When you search a phrase, the search will by default locate items that contain any search terms in the phrase, not the phrase itself. For example, as shown in the figure below, searching for group policy will return the objects with names and/or attribute values containing the words group and policy (not the group policy as the exact phrase).
24
| Veeam Explorers Series | User Guide | REV 3
To find the exact phrase, use double quotes (for our example, “group policy”). Search results are shown in the preview pane; you can right-click the required item and use the ribbon or shortcut menu command to export, restore, view the attributes of the object found, or compare its attributes with the srcinal values.
Using LDAP Queries You can also use LDAP queries to efficiently search for the objects/containers meeting specified criteria. For that, do the following:
25
1.
Select the container you need in the navigation tree.
2.
On the Home tab, click Use LDAP Filter on the toolbar to switch to the corresponding search mode.
3.
In the search field, enter the LDAP query and click the search icon.
4.
Wait for the process to complete, then view the results in the preview pane.
| Veeam Explorers Series | User Guide | REV 3
Note:
If you enter LDAP query without switching to the corresponding search mode, your search will return no results. If your LDAP query syntax is incorrect, you will get an error message. For detailed information about LDAP query syntax, refer to http://msdn.microsoft.com/enus/library/aa746475(v=vs.85).aspx.
Viewing Object Attributes Veeam Explorer for Microsoft Active Directory allows you to view the attributes of selected object. For that, right-click the item you need and select View Attributes from the shortcut menu.
All attributes, including name and value will be shown in the Attributes window:
26
Select a multi-valued attribute and double-click it to see all values.
Select a linked attribute and double-click it to see the value of attribute linked to selection.
| Veeam Explorers Series | User Guide | REV 3
To copy the necessary attributes to the clipboard, select the attribute in the list and press [CRTL]+C on the keyboard. Multiple selection is also supported.
Viewing Changes Viewing All Object Changes To detect the objects which were changed, moved, or deleted since the Active Directory backup, you can use the Compare All Objects menu command from the Home tab. This allows you to compare Active Directory objects in the backup and in the production database.
27
| Veeam Explorers Series | User Guide | REV 3
Then you can examine status of the Active Directory objects in the right pane.
Note:
For object comparison, Veeam Explorer will try to access production Active Directory Domain Services server using current account; if it does not have permissions to access Active Directory domain, you will be prompted for domain user name and password to connect to Active Directory Domain Services server. For object attribute statuses to be displayed correctly, make sure the account you supply has enough rights to view object attributes. Veeam Explorer for Microsoft Active Directory detects common attribute changes, displaying the object status: Changed, Moved, Tombstone (if a corresponding Active Directory tombstone object exists and can be used for restore), Deleted (if no tombstone object exists). For details on Tombstone and Deleted objects recovery, please refer to the Considerations and Recommendations section. If an object is displayed with the Unknown status, this indicates that a user started browsing the database with Compare mode turned on, then tried to proceed with browsing underlying objects (domain services servers or containers) without sufficient access rights and did not supply credentials when prompted (that is, clicked Cancel in the dialog). To display proper status, make sure the user account has sufficient rights to access the database and underlying objects.
Note:
If some object attributes were changed, and the object was moved, the object status will appear as Moved, Changed (that is, combined). You can also use the Show Changed Objects Only ribbon menu command to display only objects with non-empty Status field.
Note:
Show Changed Objects Only menu command can be used only when you have the Compare command selected (highlighted in the ribbon menu).
Viewing Selected Object Changes To review attribute modifications for a single object, right-click it and from the shortcut or ribbon menu on the Objects tab select Compare Selected Object. (If selected object status has been changed to Tombstone, a corresponding message will be displayed.)
28
| Veeam Explorers Series | User Guide | REV 3
Then the Compare Attributes window will be displayed where attribute changes will be presented, showing Name, Backup Value and Production Value for object attributes that were modified. Here the following options can be used:
To display system attributes (hidden by default), select the Show system attributes check box.
To review changes of linked or multi-valued attributes, double-click on the attribute.
To select one or more attributes from the list, use CTRL and Shift keys.
29
To display both changed and preserved attributes, select the Show unchanged attributes check box; changed attributes will be displayed with bold font.
To restore selected attribute values from backup to production Active Directory, click the Restore button. The 1-Click Restore process will be started, as described in the 1-Click Restore section.
| Veeam Explorers Series | User Guide | REV 3
Note:
During this restore process, the "Replace" logic will be applied; when restoring mail attributes, no automatic mailbox re-connect will be performed.
Exporting Objects and Containers With Veeam Explorer for Microsoft Active Directory, you can export object(s) or container(s) to a folder in the specified location. Exported objects/containers will be saved using Lightweight Data Interchange Format (LDIF) into .LDF files. You can make a .LDF file available to Active Directory Domain Services server you need by importing it with ldifde utility (see http://technet.microsoft.com/en-us/library/cc816781(v=WS.10).aspx for details).
Exporting Objects To export Active Directory object(s), do the following:
30
1.
Select the required object(s) in the preview pane on the right; multiple objects selection using Shift and Ctrl keys is also supported.
2.
Click Export Objects>Export objects... from the ribbon menu on the Objects tab, or use the Export to... shortcut menu command.
| Veeam Explorers Series | User Guide | REV 3
Note:
3.
Specify destination location.
4.
Click Save and wait for the export to complete.
If you select several objects and then use Export Objects menu command, the container that includes selected objects will be exported as a whole. Exported object(s) will be saved in LDIF (.ldf) file in the specified destination folder and can be then imported to the Active Directory database of your choice using ldifde utility.
Note:
You can also use this menu command to export computer's shared volumes and/or print queues, as well as objects shown in search results.
Exporting Containers To export selected container including its content into .LDF file, do the following:
31
1.
Select the required container in the navigation tree on the left.
2.
Click Export Container>Export container... from the ribbon menu on the Container tab, or select this command from the container's shortcut menu.
| Veeam Explorers Series | User Guide | REV 3
Note:
3.
Specify destination location in the Export to: field.
4.
If you want to save only objects that are included in the selected container and meet specific filtering criteria, click Show settings to set the filter. With the applied filter, exported container will include only selected objects.
5.
Select the Save only objects that suit the following filter check box and enter filtering criteria (see the Searching section for more details). If necessary, select the Use LDAP filter check box to switch to the corresponding filtering mode.
If using LDAP filter, verify the filtering query syntax before you proceed.
6.
32
Click Export and wait for the process to complete.
| Veeam Explorers Series | User Guide | REV 3
Note:
Nested containers are exported with the preserved hierarchy.
1-Click Export You can use the Export Object to or Export Container to command from the ribbon or shortcut menu to quickly export selected object(s) or container(s) to the default location.
Initially, default location is current user's Desktop folder ( C: \ User s\ %user name%\ Deskt op). It may change if for the latest export operation a user has specified another target location (that is, performed the restore using Export Objects or Export Container command). If so, that location will be used as a new default target, appearing in the UI menu command.
Restoring Objects and Containers With Veeam Explorer, you can restore Active Directory objects and containers to the srcinal or different location in your production environment. For that, Active Directory Restore Wizard is used, where you can choose target server and restore options. Also, you can use 1-Click Restore feature to quickly recover selected objects or containers to their srcinal location.
Restoring Objects You can restore Active Directory object(s) to the location you specify, or use 1-Click Restore to quickly restore to the srcinal location. To restore objects to the location you specify, do the following:
33
1.
Select the required object(s) in the navigation pane on the right.
2.
Select Restore Objects > Restore to... from the ribbon menu on the Objects tab, or use the object's shortcut menu command.
| Veeam Explorers Series | User Guide | REV 3
3.
The restore wizard is launched; follow its steps to specify restore options for the AD object(s).
Step 1. Specify Target Server Specify target settings to be used for restoring Active Directory objects:
Select target Active Directory Domain Services server from the list, or type in server name. To specify Global Catalog server, click the button on the right. If necessary, select to Use SSL when connecting to the server. Specify the account to be used for connection with LDAP server. You can use the current account under which you are running Veeam Explorer for Microsoft Active Directory, or specify another account in the domain\username format, and enter its password.
sure the account you selectfor at this step has sufficient rights to restore objects in the target Important! Make domain. See Permissions section details. If you select to Use SSL, consider that the machine where Veeam Explorer for Active Directory is running should belong to the target domain or have the trust certificate installed (you can install it when prompted).
34
| Veeam Explorers Series | User Guide | REV 3
Then click Next, and Veeam Explorer for Microsoft Active Directory will verify the connection, using the settings you have specified. If validation fails, an error message will be issued. Check the connection settings and try again.
Step 2. Specify Restore Location Next, specify whether the object(s) should be restored to the srcinal container, or to a different one.
Step 3. Specify Password Restore Options Next, select whether to restore account password for user(s) or computer account(s) you are recovering.
Note:
To restore account password, Veeam Explorer for Microsoft Active Directory uses the registry database, so if you need to restore password(s), make sure that System registry hive is available (default location is %sys t emr oot %\ Syst em32\ Conf i g). If you are restoring Active Directory database from Active Directory backup using Veeam file-level restore, then registry hive will be located automatically. Otherwise (for example, if you are restoring from an imported backup or from VeeamZIP file), make sure the System registry hive is located in the same folder as .DIT file.
35
| Veeam Explorers Series | User Guide | REV 3
Consider the following when making your choice:
If you are setting a new password for the account being restored, check that it complies with password policy in your production environment. Otherwise, production Active Directory will report the following error which will be written to Veeam Explorer for Microsoft Active Directory log: Ext ended LDAP er r or : 0x1325 Unabl e t o updat e t he passwor d. The val ue pr ovi ded f or t he new pass wor d does not meet t he l engt h, compl exi t y, or hi st ory r equi r ement s of t he domai n.
Also, Veeam Explorer for Microsoft Active Directory will report an error in the restore summary (warning or failure) displayed after you finish the wizard.
If you select Restore password or Set password to option, you may also request user to change password at next logon. However, this setting will not take effect if the user is not allowed to change password due to security policy. If you are restoring multiple accounts, this new password will be set for all of them, so it is recommended to enable User must change password at next logon .
Step 4. Select Account State to Apply Next, choose whether account state should be restored as it is in the backup (then it will overwrite account state in production database), or it should be set to Enabled or Disabled.
36
| Veeam Explorers Series | User Guide | REV 3
Step 5. Specify Restore Options 1.
Specify what objects should be restored — you can select to restore Changed objects and/or Deleted objects.
If you are working with Active Directory 2016, this dialog will also include the Restore expiration time option for Linked attributes:
37
| Veeam Explorers Series | User Guide | REV 3
2.
38
o
With this option selected (default setting), Veeam will restore expiration time for linked attributes, defining it as time remaining to expiration (as set up in the srcinal AD).
o
With this option cleared, restore expiration time will not be set for restored linked attributes.
o
If a linked attribute expires by the moment of restore, it will not be restored to target Active Directory.
Select whether you need to restore Entire objects or Selected attributes only. Consider the following:
o
With the Entire objects option selected and sufficient rights of the account used to connect to target server, Exchange mailboxes will be reconnected, and mailbox security roles will be restored. For details on account rights, see Permissions.
o
With the Selected attributes only option selected, you will be offered to select the attributes to be restored:
| Veeam Explorers Series | User Guide | REV 3
If necessary, use the Select All or Clear All buttons, as well as the Select mail attributes link to speed up your choice (this link will be shown only if mail attributes are present in Active Directory Domain Service server backup).
Note:
Users cannot change restore settings for the attributes colored gray — these attributes will be restored or skipped as prescribed by default configuration. For example, the groupType attribute will be always restored from backup, while homeMDB and homeMTA will be skipped (that is, will keep their existing values). 3.
By default, multi-valued attributes will be restored using Replace logic, that is, values from the backup will replace values in production. To proceed with that logic, you can click Restore. To change restore logic for multi-valued attributes, in the Specify restore options dialog, select Merge. (You can get back to that dialog by clicking the Back button after attribute selection.) With Merge option selected, the following logic will be applied when restoring attributes:
4.
o
Security descriptors existing on target will be merged with those of the source (backup) object.
o
Attribute values for single-value attributes on target will be replaced by source ones if source values are not empty, otherwise target values will be preserved.
o
Attribute values for multi-value attributes existing on target will be merged with those of the source (backup) object.
Finally, click Restore and wait for the process to complete.
Veeam Explorer will display the restore summary, notifying you of the number of object(s) that were restored successfully, skipped, restored with warnings or failed to restore. You can view the Veeam Explorer current session log to examine the details. For that, from the main menu, select Current log. To examine any session log you need, select Open logs path.
Restoring Containers To restore an Active Directory container to the srcinal location, you can use the 1-Click Restore.
39
| Veeam Explorers Series | User Guide | REV 3
To restore to the location of your choice, take the following steps: 1.
Select the required container in the navigation tree on the left.
2.
From the toolbar menu commands, select Restore Container > Restore container... from the ribbon menu on the Container tab, or use the container's shortcut menu command.
3.
The Active Directory Restore Wizard will be launched; follow its steps to complete the process.
1-Click Restore This feature allows you to quickly restore Active Directory objects and containers to the srcinal domain. Restore process will be performed with the following settings:
Both changed and deleted objects will be restored.
All attributes will be restored.
"Replace" logic will be applied when restoring attribute values and security descriptors: attribute values existing in source (backup) database will replace the target (production) values; if no value exists for a source (backup) attribute, and target attribute value is not empty, then target value will be deleted.
Important! User credentials for carrying out the restore procedure will be picked as follows:
Firstly, Veeam Explorer for Active Directory will try to use the account which is currently logged in. If this account does have sufficient rights to perform the restore procedure, then Veeam Explorer for Active Directory will try the account specified in the backup job settings for application-aware image processing of Active Directory Domain Service server VM (see the Veeam Backup & Replication User Guide for details). If this account does not suit either, user will be prompted to supply the necessary credentials. (They will be cached for future restore operations.)
1-Click Container Restore To quickly restore a container to the original server, do the following: 1.
40
Select the required container in the navigation tree on the left.
| Veeam Explorers Series | User Guide | REV 3
2.
Select Restore Container > Restore container to from the ribbon menu on the Container tab, or use the same command from the shortcut menu.
3.
Wait while selected container is being restored to the srcinal location.
1-Click Object Restore 1.
Select the required object in the preview pane on the right. (Multiple selection is also supported.)
2.
Select Restore Objects > Restore to from the ribbon menu on the
Container tab, or use the same command from the shortcut menu.
3.
41
Wait for the process to complete.
| Veeam Explorers Series | User Guide | REV 3
Obtaining Veeam Explorer Logs To view current restore session log, go to the main menu and select Current log. To open folder where Veeam Explorer log files are stored, select Open logs path. Default location is C: \ Pr ogr amDat a\ Veeam\ Backup\ Act i veDi r ect oryExp l or er \ Logs .
42
| Veeam Explorers Series | User Guide | REV 3
WORKING WITH VEEAM EXPLORER FOR MICROSOFT SQL SERVER This chapter describes Veeam Explorer for Microsoft SQL Server and explains how to restore SQL server databases from the backups created with Veeam Backup & Replication.
Before You Start Veeam Explorer for Microsoft SQL Server is a tool that extends the functionality of Veeam Backup & Replication, allowing you to view and recover databases from within Microsoft SQL Server VM backup. For that, you do not need to fully restore and start the virtual machine hosting the SQL Server. Instead, you can use Veeam Backup & Replication data recovery options to mount the selected restore point (image-level backup or replica) of Microsoft SQL Server VM to Veeam backup server and then specify how you want your database to be restored. Veeam Explorer for Microsoft SQL Server offers the following capabilities:
Browsing Microsoft SQL Server instances and databases Exporting databases, schema objects and data to a local folder or network drive, including quick and easy 1-Click Export Restoring databases, schema and data to the srcinal server or different server
Veeam supports database and schema restore to the current state (that is, to the moment when currently selected Microsoft SQL Server backup was created), restore to the selected point in time (here transaction log replay will bring the database to the desired point), and restore to the state before selected transaction.
Note:
Availability of these options depends on Microsoft SQL Server VM backup settings (see the corresponding section of this guide). Before you start using Veeam Explorer for Microsoft SQL Server to restore your databases, you need to know the following:
How Veeam Explorer works?
What are system requirements and permissions for its operation?
How to configure your Microsoft SQL Server backup for your preferred database restore scenario?
What's New in v9.5 The following new features and enhancements were implemented in this version Veeam Explorer for Microsoft SQL Server:
43
Support for SQL Server 2016, including AlwaysOnGroups and system-versioned tables. Support for memory-optimized tables in SQL Server 2014 and FileTable tables in SQL Server 2012. UI enhancements, including ribbon menu, command-specific tabs, and support of display themes as in Veeam Backup & Replication console.
| Veeam Explorers Series | User Guide | REV 3
Planning for Database Restore Veeam Explorer for Microsoft SQL Server supports several database recovery scenarios and offers flexible options for them. First, you should analyze how your backup infrastructure is organized and identify the locations of Veeam backup server, backup repository and production VMs. This will help you to decide on preferable machine for mount operation. For mount operations, Veeam Explorer utilizes the corresponding service (Veeam Mount Service) that can run on Veeam backup server or on Veeam standalone console - both of them include Veeam Explorer in their setup. So, Veeam backup console can work as a mount server in the remote site, eliminating the need to deploy additional Veeam backup server in that site and minimizing traffic at restore. Consider the following recommendations:
If repository and production (target) SQL Server VM are located in the same site with Veeam backup server, Veeam Explorer will utilize Mount Service running on Veeam backup server for mount operation. If repository and production (target) SQL Server VM are located in a remote site (separately from Veeam backup server), it can be reasonable to deploy Veeam Backup & Replication console in that remote site, and launch Veeam Explorer from that console, initiating mount operation locally in the site where console is running.
Next, to choose a restore scenario, you should consider your organization’s policies and requirements and decide on the following: 1.
Do you need to recover your database to the moment when the certain Microsoft SQL Server VM restore point (backup or replica) was created, or to any point in time, maybe within the interval between two restore points? In the latter case, database will be restored to the closest VM restore point before the moment you specify, and then transaction log replay will bring the database to the necessary state. So,backed you willup need to make Microsoft Server transaction logging is enabled, and logs are according tosure VM backup jobSQL settings
2.
Should you recover to the point in time, or is it necessary to support more granular recovery and be able to roll back to a state before undesired transaction? For the most granular restore, you will need to enable backup of your Microsoft SQL Server transaction logs and ensure the staging SQL Server availability and proper configuration (see the Staging SQL Server section).
3.
Do you plan to restore your database to the srcinal Microsoft SQL Server, or to a different server? Make sure the account you plan to use for restore has sufficient permissions on the target server, and check for proper version (later version database cannot be restored to earlier version server).
To implement the selected scenario, you should, in particular, do the following:
44
Decide on the required level of restore granularity and configure the necessary SQL Server VM backup job settings Examine relevant considerations and limitations Provide the user account under which Veeam Explorer for Microsoft SQL Server will be launched with sufficient rights on your source and target SQL Servers Use the appropriate option when choosing VM’s restore point
| Veeam Explorers Series | User Guide | REV 3
How It Works The basic procedure of restoring Microsoft SQL Server database with Veeam Explorer for Microsoft SQL Server includes the following steps (illustration shows the most common scenario 'Restore to current restore point' that requires no dedicated staging server): 1,2 An IT administrator users Veeam Backup & Replication restore options to obtain database files from the SQL Server's backup and mount it to SQL server. This can be target or staging server, depending on the required restore scenario. 3.
Note:
Veeam Explorer for Microsoft SQL Server obtains SQL server hierarchy information (instances and databases) and presents it to user, facilitating browsing of the hierarchy. A user selects the necessary restore scenario. Veeam Explorer supports several scenarios:
o
Restore or export to current restore point (the one currently mounted to the corresponding server)
o
Restore or export to selected point in time
o
Restore or export to the state before selected transaction
For backup job settings required to implement these scenarios, refer to the corresponding section of this guide. 4.
Finally, the database is ‘re-created’ on the target Microsoft SQL server and becomes ready for use. If the export scenario was used, the exported database can be then attached to the SQL server you need.
Generic scenario steps are illustrated in the figure below:
Veeam SQL Restore Service In most scenarios, Veeam installs a runtime component named Veeam SQL Restore Service to the VM guest OS (target or staging server, depending on selected restore or export scenario) - to support restore activities on the SQL server VM guest.
45
| Veeam Explorers Series | User Guide | REV 3
Note:
If you are restoring the database to the local SQL server instance, this runtime component is not installed on the SQL server guest OS. This service runs during the restore session; it checks the rights assignment required for database restore, gets information about databases that should be restored, performs the necessary file operations (including database and transaction log copy) and so on. When restore session ends, the service is stopped and removed from guest. Then a new session starts, and the service is installed again.
The Veeam SQL Restore Service operates under the Local System account.
All service activities are logged to the Veeam. SQL. Ser vi ce_ . l og file stored in Temp folder of the system directory, next to the the Veeam. SQ L. Ser vi ce_. exe file (runtime component installed per session). If
you have enabled extended logging as described in this Knowledge Base article, this log data will be stored in the Veeam Explorer for Microsoft SQL log.
Communication between Veeam Explorer and the service is performed using RPC; default TCP port range that should be open on the guest for inbound traffic includes ports 1025 1034. If you need to change this port range, then do the following: 1.
Open Veeam Explorer configuration file named Conf i g. xml located at C: \ Pr ogr amDat a\ Veeam\ Backup\ SQLExpl or er \ on the machine hosting Veeam Explorer (create the file if it is not present).
2.
Locate the tag (create the tag if it is not present): SQLExpl or er > Veeam>
3.
Supply the necessary values for Agent MinimumPort and
MaximumPort.
Restore and Export Scenarios Restore scenarios are implemented as follows:
Target SQL Server is used to perform the restore operations. Depending on the scenario, the corresponding backup data is utilized (the restore points closest to the specified time or transaction, and transaction log backups). In the Restore to selected point in time and Restore to the state before selected transaction scenario, transaction log files are copied from backup repository to the Windows machine hosting the target server, so the account used to run Veeam Explorer for Microsoft SQL Server will require appropriate permissions (see Permissions for details). Then target server performs log replay with the closest earlier restore point to bring the database to the desired state. Staging SQL Server is used in Restore to the state before selected transaction scenario - it presents transaction records to user who selects the undesired transaction and instructs Veeam to restore database to the state prior to that operation. Staging SQL Server is specified on the SQL Server Settings tab of the Options dialog (open from the main menu). By default, local Microsoft SQL Server deployed together with the Veeam backup server is used as a staging system.
Export scenarios are implemented as follows:
46
| Veeam Explorers Series | User Guide | REV 3
•
•
•
In the Export to current restore point (the one currently mounted to Veeam backup server) scenario, database will be exported as .MDF to the specified target SQL Server, schema objects will be exported with .SQL script file; no staging server is needed. For the Export to selected point in time scenario, you will need a staging SQL Server – it will be used for log replay with the closest earlier restore point to bring the database to the desired state. Database file (. mdf ) or script file for schema objects ( . sql ) will be copied to the specified location. The Export to the state before selected transaction scenario also requires a staging SQL Server – to present the list of transactions to user and to replay the logs in order to bring the database to the desired state.
The scenarios involving staging SQL Server are illustrated in the figure below: 1,2 Database files from the SQL Server's backup are mounted to SQL server (staging or target, depending on the required restore scenario). In particular, staging server is used in Restore to the state before selected transaction scenario - it presents transaction records to user who selects the undesired transaction and instructs Veeam to restore database to the state prior to that operation. 3,4 Veeam Explorer for Microsoft SQL Server obtains SQL server hierarchy information (instances and databases) and presents it to user. A user chooses the database to restore and specifies target location (srcinal or another server), settings required to access that server, as well as the required point in time or undesired transaction. 5.
Note:
Database files (including log files, if necessary) are then copied from the repository to the Windows machine hosting the target server, the database is attached to target SQL server, put in the desired state (using log replay, if necessary) and becomes ready for use.
See System Requirements for more information on t he staging SQL Server.
47
| Veeam Explorers Series | User Guide | REV 3
Mount Operations For restore from backups of Microsoft SQL Server VMs, Veeam Mount Service – a component that is responsible for mount operations – creates an additional mount point on the srcinal VM, and, if necessary, on a staging Microsoft SQL Server. As said, mount to the staging server is used when you perform restore to a specific transaction, or if Veeam Backup & Replication does not have information about databases (for example, if you initiate restore from storage snapshots). To create a mount point on Microsoft Windows machines, Veeam uses the iSCSI protocol. The remote machine (srcinal VM) or staging server acts as an iSCSI initiator. The machine on which the Veeam Explorer runs acts as an iSCSI target. The iSCSI mount point is non-persistent – it is created only for duration of the restore process.
Prerequisites To provide for database restore with Veeam Explorer for Microsoft SQL Server, the following prerequisites are necessary: 1.
A proper scenario and restore options should be selected, as described in the Planning for Database Restore section.
2.
System requirements should be met, as listed in the System Requirements section.
3.
Required permissions should be assigned to the accounts involved, as listed in the Required Permissions section.
4.
If the restore scenarios you plan to implement involve a staging SQL Server, check requirements listed in the Staging SQL Server.
5.
The corresponding backup job should be properly configured, as described in the Required Microsoft SQL Server Backup Job Settings section.
Also, examine Considerations and Limitations for the solution, as well as edition comparison table provided in the Licensing and Editions section.
System Requirements System requirements specific for Veeam Explorer for Microsoft SQL Server are described below. Specification
Requirement The following versions of Microsoft SQL Server are supported as source/target systems for database restore:
•
Microsoft SQL Server 2016 Microsoft SQL Server 2014 Microsoft SQL Server 2012 Microsoft SQL Server 2008R2 Microsoft SQL Server 2008
•
Microsoft SQL Server 2005
• •
Microsoft SQL Server
• •
All editions of Microsoft SQL Server are supported. AlwaysOn Availability Groups are supported for Microsoft SQL Server 2012 and later. For export to selected point in time and for export/restore to the state before selected transaction, Veeam Explorer for Microsoft SQL Server uses a staging Microsoft SQL Server. By default, local Microsoft SQL Server deployed with Veeam backup server will be used as a staging system. Other
48
If you plan to use another server as a staging Microsoft SQL Server, then it should have the same or later version as the srcinal Microsoft SQL Server. Besides, if the source database uses any edition-specific features, then staging system should be of the same or higher edition than the srcinal SQL Server. See the Staging SQL Serversection for details.
| Veeam Explorers Series | User Guide | REV 3
Also, consider the following: 1.
By default, the AUTO_CLOSE option for SQL Server databases is set to False. However, check that this setting is False for the database you plan to restore (if AUTO_CLOSE is turned on, this may lead to database being skipped from processing).
2.
If you plan to restore database items from an SQL Server VM running Microsoft Windows ReFS, consider that Veeam backup server or management console (that is, the machine where Veeam Explorer and the mount service are running) must be installed on the Microsoft Windows Server 2012 or later.
3.
To restore from a server running Microsoft Windows ReFS 3.x, Veeam backup server or management console (that is, the machine where Veeam Explorer and the mount service are running) must be installed on the Microsoft Windows Server 2016.
See also "Restoring Guest OS Files - Before You Begin" section of the Veeam Backup & Replication User Guide and “How It Works” section of this document.
Required Permissions The following rights and permissions are required:
The user account that you specify for guest processing of the Microsoft SQL Server VM in the backup job should have the sysadmin fixed role assigned on that SQL Server (see the "Creating Backup Jobs>Specify Guest Processing Settings" section of the Veeam Backup & Replication User Guide for details on job configuration). This is the recommended setting; however, if you need to provide minimal permissions to the account performing backup operation, you can assign the following:
o
SQL Server instance-level roles: dbcreator and public
o
Database-level roles: db_backupoperator, db_denydatareader, public; for system databases (master, model, msdb) - db_backupoperator, db_datareader,
public o Note:
Securables: view any definition, view server state
If you want transaction logs to be truncated, note that in case log truncation with the specified account is not a success, Veeam will try to perform it using NT AUTHORITY\SYSTEM account, so for SQL Server 2016, 2014 or 2012 make sure it has sufficient rights (see this Veeam Knowledge Base article for more information). As for SQL Server 2008 and 2008 R2, default settings in these versions allow for database log truncation by local SYSTEM account (however, if they were modified, make sure this account is permitted to truncate logs).
The account you will use to access the target Microsoft SQL server where database will be restored needs sysadmin fixed role on that server. (This account you will specify when working with the Restore Wizard, as described later in this guide.) The account you plan to use for connection to the Windows machine (where database log backup files will be copied for further log replay) will need sufficient permissions to access the administrative share on that machine: Read and Write are minimal required. For restore scenarios, that machine is your target SQL Server. (To read more about scenarios that require log replay, refer to Planning for Database Restore section.)
49
The account used to run Veeam Explorer for Microsoft SQL Server should have sufficient permissions for the folder where you plan to export the database files: Read and Write are minimal recommended.
| Veeam Explorers Series | User Guide | REV 3
Used Ports Backup The following table describes network ports that must be opened to ensure proper communication with the runtime coordination process deployed inside the Microsoft SQL Server guest OS for application-aware processing and transaction logs shipping. From
Veeam backup server or Guest interaction proxy (in Enterprise and Enterprise Plus editions)
Microsoft SQL Server VM guest OS
To
Microsoft SQL Server VM guest OS
Veeam backup server or Guest interaction proxy (in Enterprise
Protocol Port
Notes
TCP, UDP
135, 137139, 445
Ports required to deploy the runtime coordination process on the VM guest OS.
TCP
4915265535 (for Microsoft Windows 2008 and newer)
Dynamic RPC port range used by the runtime coordination process deployed inside the VM guest OS for application-aware processing (when working over the network).*
TCP
6167
[For Microsoft SQL Server transaction logs shipping.] Port used by the runtime process on the VM guest OS from which transaction logs are collected.
TCP
4915265535 (for Microsoft Windows 2008 and newer)
Dynamic RPC port range used by the runtime coordination process deployed inside the VM guest OS for application-aware processing (when working over the network).*
2500 5000
[For Microsoft SQL Server transaction logs shipping.] Default range of ports used by Veeam data mover service for data transmission over the network.
For more information, see http://support.microsoft.com/kb/929851/en-us.
For more information, see http://support.microsoft.com/kb/929851/en-us.
and Enterprise Plus editions) Log shipping server
TCP
* - If you use default Microsoft Windows firewall settings, you do not need to configure dynamic RPC ports: during setup, Veeam Backup & Replication automatically creates a firewall rule for the runtime process. If you use firewall settings other than default ones or application-aware processing fails with the “RPC function call failed” error, you need to configure dynamic RPC ports.
Restore The following table describes network ports open during application item restore. From
To
Protocol Port
Notes
Machine running Veeam Explorer (this can be Veeam backup server or standalone console)
Microsoft SQL Server VM guest OS
TCP
Port used for communication with the Microsoft SQL Server installed inside the VM during application-item restore. Exact port numbers depend on configuration of your Microsoft SQL server. To learn more, see http://msdn.microsoft.com/enus/library/cc646023.aspx#BKMK_ssde.
UDP
50
1433,1434 and other
1434
| Veeam Explorers Series | User Guide | REV 3
Port used by Microsoft SQL Server Browser Service. To learn more, see
Default RPC port range for the runtime component installed on target or staging server guest OS to support restore operations in most scenarios. Port is open only during application item restore (Veeam Explorer session). To learn how to modify default port range, see How It Works.
Target remote machine to which application items are restored, or staging Microsoft SQL Server
Machine running Veeam Explorer
TCP
3260 - 3270
Range of ports opened by Veeam & the Replication for iSCSI traffic during Backup restore to srcinal VM. See Mount Operations for details. Ports are open only during application item restore (Veeam Explorer session).
Licensing and Editions Veeam Explorer for Microsoft SQL Server does not require a separate license; it is installed together with Veeam Backup & Replication server or stand-alone management console during the setup. All editions including Veeam Backup Free Edition are supported. However, the full range of restore capabilities will be available with Veeam Backup & Replication Enterprise and Enterprise Plus Edition only, as listed in the table below. Feature\Edition
Free
Standard
Enterprise
Enterprise Plus
View database information
Available
Available
Available
Available
Export database
Available
Available
Available
Available
Export database schema and/or data
Available
Available
Available
Available
Restore database to srcinal or different server
Not available
Not available
Available
Available
Restore database schema and/or data to the srcinal or different server
Not available
Not available
Available
Available
Considerations and Limitations 1.
51
If you are using SQL Server Express edition (for example, SQL Server 2012 Express included in Veeam setup) as a staging system, consider that databases that exceed 10 GB cannot be attached to this SQL Server due to Express edition limitations (http://msdn.microsoft.com/enus/library/cc645993(v=SQL.110).aspx). If you plan to recover large databases following a scenario that requires a staging server, then it is necessary to configure a fully functional commercial version of Microsoft SQL Server as a staging system.
| Veeam Explorers Series | User Guide | REV 3
2.
By default, system databases (master, model, msdb) are skipped from transaction log processing and are not a part of Veeam Explorer restore workflow. These databases can be restored using file-level restore, as described in the Veeam Backup & Replication User Guide. If you want to exclude other database(s) from transaction log processing workflow, please refer to this Veeam Knowledge Base article. Consider that exclusion configured this way will be treated as a global setting.
3.
Transaction log backup requires that at least one image-level backup of SQL Server VM is performed. This particularly means that transaction log backup will not function after full SQL Server VM restore is performed, or for newly appearing databases, until first image-level VM backup is performed.
4.
Currently, point-in-time restore and restore to the state before selected transaction is not
5.
supported for replica VMs and for restore points created by backup copy job. Transaction log backups is not supported for Windows Server 2008 or earlier guests on Hyper-V 2012 R2.
6.
If you want to restore a database from AlwaysOn availability group node to the state as of prior to selected transaction, all nodes of the group should be located in the same time zone.
7.
Table-level recovery is supported only for database tables with no external dependencies.
8.
If you plan to restore an encrypted database using Veeam Explorer for Microsoft SQL Server, consider information provided in this Veeam Knowledge Base article.
9.
If you plan to restore database schema objects, consider that 'Replace' logic is not supported that is, if an object with the same name exists in the production database and in the backup, then a backup object will not replace the existing one, but an object with a different name will be created instead, as described in the Restoring Database Schema and Data. Also, consider that when objects are renamed, relationships between them are not renamed.
10. If both Microsoft SQL Server and Oracle Server are installed on one VM, and this VM is processed by a job with log backup enabled for both applications, Veeam Backup & Replication will back up only Oracle transaction logs. Microsoft SQL Server transaction logs will not be processed.
Support for AlwaysOn Availability Groups AlwaysOn Availability Groups are supported for Microsoft SQL Server 2012 and later.
If you want to restore a database from AlwaysOn availability group node to the state as of prior to selected transaction, all nodes of the group should be located in the same time zone. If you are using Basic Availability Groups on Microsoft SQL Server 2016 Standard Edition, consider that secondary replica node cannot be backed up because the secondary node is not readable. See the following article for more information: https://blogs.msdn.microsoft.com/alwaysonpro/2016/05/02/sql-server-2016-alwaysonavailability-group-enhancements-basic-availability-group-on-standard-edition/.
See also the corresponding section of the "How To Backup and Restore SQL Server Database with Veeam" document at https://helpcenter.veeam.com/backup/howtosql/how2_sql_always_on.html.
Staging SQL Server To restore or export application item (database, schema or data) to the state as of the current restore point (that is, as of in the VM backup which is currently mounted to Veeam backup server), no extra configuration is needed. However, as described in the How It Works section, to support other scenarios, Veeam Explorer for Microsoft SQL Server needs a staging Microsoft SQL Server. In particular, it is required for the following operations:
52
Restore to the state before selected transaction
| Veeam Explorers Series | User Guide | REV 3
Export to selected point in time
Export to the state before selected transaction
As a staging system, you can use the Microsoft SQL Server 2012 Express that is shipped with the Veeam Backup & Replication setup (this will be the default staging server).
Note:
Databases that exceed 10 GB cannot be attached to this SQL Server due to Express edition limitations (http://msdn.microsoft.com/en-us/library/cc645993(v=SQL.110).aspx). Check that the staging system meets the following prerequisites: 1. 2.
Make sure that staging SQL Server has the same or later version as the srcinal SQL Server (the VM processed by Veeam job). If the database you plan to restore utilizes any SQL Server feature that is supported in the certain edition of SQL Server, then the staging SQL Server must be not only of the same (or higher) version as the srcinal SQL Server but also of the same (or higher) edition. For example, if the database was created with Backup Compression built-in feature of SQL Server, then you can use SQL Server 2008 R2 Standard Edition and higher as a staging system, but you cannot use SQL Server 2008 R2 Express Edition, as it does not support that feature. So, when planning for the staging SQL Server, check for edition-specific features of your source databases and make sure the staging system meets the above requirement.
3.
Specific ports on staging server will be used during restore session, as described in the Used Ports section.
4.
If you plan to add database(s) to Veeam Explorer scope manually, consider domain trusts.
Required Microsoft SQL Server Backup Job Settings To be able to explore and recover the necessary database, you should have a transactionallyconsistent backup of your Server successfully. Backup & Replication User Microsoft Guide for SQL VMware or created for Hyper-V platform.For details, see the Veeam Also, you need to decide whether you need to recover your SQL database items to the latest available restore point only, to any point in time, or to the state before a particular transaction. Then you should configure the corresponding log processing options with Veeam Backup & Replication, using the VM processing settings in backup job properties.
Important! Remember that application-specific log handling options required for your restore scenario are available on the SQL tab of the VM's guest OS processing settings. The SQL tab becomes active only if Veeam Backup & Replication is instructed to process transaction logs for SQL server (not 3rd party application). So you should open the General tab and make sure that the Process transaction logs with this job (recommended) option is selected in the Transaction logs section.
53
| Veeam Explorers Series | User Guide | REV 3
Then go to the SQL tab and select the option you need:
Truncate logs – if selected, this option will allow only for the database restore to the state as of currently selected VM restore point (no logs to replay). Any recovery model can be set for SQL server database; logs written by SQL server will be truncated by Veeam Backup & Replication.
Note:
If you want to use this option, note that in case log truncation with the specified guest processing account is not a success, Veeam will try to perform it using NT AUTHORITY\SYSTEM account, so for SQL Server 2016, 2014 and 2012 make sure it has sufficient rights (see this Veeam Knowledge Base article for more information). As for SQL Server 2005, 2008 and 2008 R2, default settings in these versions allow for database log truncation by local SYSTEM account (however, if they were modified, make sure this account is permitted to truncate logs).
Tip:
An alternative method can be also recommended if you want to prevent storage space from being occupied with growing log files: set the database logging model to simple and use the Don’t truncate logs option (as described below). This method does not involve log truncation, so it does not require specific permission assignment.
Do not truncate logs – this option instructs Veeam to preserve logs (if any) on the srcinal SQL server (nor they will be truncated, neither will be backed up by Veeam Backup & Replication). With this option selected, your database administrator will have to take care of database logs. Applicable restore scenario – database restore to the state as of currently selected VM restore point.
Important! To prevent log files from growing rapidly, it is strongly recommended NOT to use this option if full or bulk-logged recovery model is set up for your SQL server database; simple recovery model is the recommended setting.
54
| Veeam Explorers Series | User Guide | REV 3
Backup logs – if selected, this option will support any database restore scenario (to the state as of in currently selected VM restore point, to any point in time or to the state before particular transaction). Veeam Backup & Replication will periodically ship transaction logs to the backup repository and store them with the SQL server VM backup, truncating transaction logs on the srcinal VM. Make sure that recovery model for the required SQL server database(s) is set to full or bulk-logged. Contact your database administrator, if necessary.
To be able to restore to any point in time or to the state before particular transaction, make sure that recovery model for the database is set to full or bulk-logged. Contact your database administrator, if necessary. The following table lists possible database logging models and Veeam backup options, describing all combinations.
Veeam option: Truncate logs
Do not truncate logs
Backup logs periodically
Applicable option for this mode.
Databases in this mode are skipped from this type of processing.
SQL DB logging model:
Simple
Full
55
Databases in this mode are skipped from this type of processing. Though it is a default option, there is no sense in
Log files do not grow (and do not need to be backed up), so
applying it in this case.
this option does not make sense in this case.
Applicable option. Veeam performs “backup to NUL” for log files on guest.
Applicable but not recommended to use without native or 3rd party means of log truncation or backup – otherwise, logs will increase in size.
| Veeam Explorers Series | User Guide | REV 3
Applicable option. Log backup files (.BAK) are copied from the temporary folder on SQL Server to Veeam repository. As soon as data is copied to target, .BAK files are deleted from source.
Veeam option: Truncate logs
Bulk-logged
56
Applicable option. Veeam performs “backup to NUL” for log files on guest.
Do not truncate logs
Backup logs periodically
Applicable but not recommended to use without native or 3rd party means of log truncation or backup – otherwise, logs will increase in size.
Applicable option. Log backup files (.BAK) are copied from the temporary folder on SQL Server to Veeam repository. As soon as data is copied to target, .BAK files are deleted from source.
| Veeam Explorers Series | User Guide | REV 3
Administration Having your Microsoft SQL Server VM application-aware backup created successfully, with the necessary log processing options applied, you can use Veeam Explorer for Microsoft SQL Server to restore the required database, using the preferred scenario. Generic procedure goes as follows: 1.
Recover database file(s) (as well as secondary and log files, if available) from SQL server VM backup, replica or VeeamZip file manually or automatically. See Recovering Database File from VM Backup.
2.
In case of manual recovery, add database to Veeam Explorer for Microsoft SQL Server scope. See Adding Database To Veeam Explorer's Scope.
3.
View database information to make sure database backup settings allow you to follow the restore scenario you need. See Viewing Database Information.
4.
To restore or export database(s) to the original location, use 1-Click Restore and 1-Click Export.
5.
To restore or export database(s) to another location, follow the required scenario, as described in the corresponding section later in this document. See Restoring Databases and Exporting Databases.
First Steps This section described the initial steps that will help you to start efficiently using Veeam Explorer for Microsoft SQL Server. There are several scenarios of launching Veeam Explorer from Veeam Backup & Replication console using different recovery options they will be described later in this guide. You can also run Veeam Explorer from the Start menu. The application will connect to Veeam Backup & Replication database to obtain the necessary configuration settings - in particular, display theme that will be used by Veeam Explorer. The most common scenario involves Veeam Explorer that is co-installed with Veeam backup server, and Veeam Backup Service is accessed via default port, under current account using Windows session authentication. No special settings need to be configured in this case. Alternatively, if you want to work with Veeam Explorer that is co-installed with the standalone console, you will need to enter several settings to connect to Veeam backup server running on another machine. At launch, specify the following:
Server name or IP address
Port number used to communicate with Veeam Backup Service (default is 9392)
57
User name and password for connection - you can select to Use Windows session authentication if current account has sufficient access rights
| Veeam Explorers Series | User Guide | REV 3
Click Save shortcut if you want to store these connection settings for future use as a shortcut on your Desktop.
In This Section
Getting to Know User Interface
Configuring Staging SQL Server Settings
Getting to Know the User Interface The main menu of Veeam Explorer can be opened by clicking its icon in the top left corner of the Veeam Explorer for Microsoft SQL Server main window. The menu contains commands related to general application settings.
In particular, you can perform the following operations using the main menu: Configure Veeam Explorer options, as explained later in this guide
58
Open log file or folder
Access online Help
View information about the program
Exit the program
| Veeam Explorers Series | User Guide | REV 3
Main Window The navigation pane, located on the left of the window, enables you to easily access application items you want to restore. Operation commands in Veeam Explorer are organized into logical groups and collected under tabs on the ribbon. The ribbon is displayed at the top of the main application window. The Home ribbon tab provides quick access to some common operations. Other tabs contain commands specific for certain entities appear when the corresponding nodes are selected in the navigation pane. For example, if you select a database, the Database tab displaying buttons for operations with databases will appear on the ribbon. If you then select a server node, the Server tab with the corresponding operations will be displayed.
Tip:
Commands for operations with selected entity are also available in the shortcut menu.
Display Theme When you open Veeam Explorer application, its display theme settings are imported from the Veeam Backup & Replication configuration. So, if you want to change the display theme, you should do it in Veeam Backup & Replication general options, as described in its User Guide, and then re-open Veeam Explorer.
Configuring Staging SQL Server You can use the Microsoft SQL Server 2012 Express that is shipped with the Veeam Backup & Replication setup as a staging system (this will be the default staging server). You can also use another SQL Server instance, either local or remote, as a staging system. 1. 2.
Important!
3.
Make sure the staging system meets the requirements listed in this guide. Make sure the accounts you specify have sufficient permissions to connect to Windows machine and to access SQL server. Consider that specific ports on staging server will be used during restore session, as described in this guide.
To configure a staging system, do the following: 1.
59
Launch Veeam Explorer for Microsoft SQL Server, open the main menu and click Options.
| Veeam Explorers Series | User Guide | REV 3
2.
Select the necessary SQL Server instance (local or remote) from the list.
3.
Specify user account that will be used to access this SQL server - this can be current account (the one under which Veeam Explorer is running) or another account.
4.
Specify account that will be used to access Windows machine where that SQL server runs. You can also use current account or another account.
Staging Server and Domain Trusts If you plan to add database(s) to Veeam Explorer scope manually, as described later in this guide, consider the following when setting up the staging SQL Server:
If this SQL Server belongs to an untrusted domain, connection will not be possible. If this SQL Server belongs to a trusted domain, then only SQL Server authentication is possible. If this SQL Server belongs to the same domain as the machine where Veeam Explorer runs, then both Windows and SQL Server authentication methods are possible. In this case, if you plan to use Windows authentication for connection, you will need to configure delegation settings as follows: a)
In Active Directory Users and Computers , select the necessary staging SQL Server.
b) Open its properties and select the Delegation tab. Select Trust this computer for delegation to specified services only and Use any authentication protocol options for the cifs service on the computer where Veeam Explorer runs. c)
After that, restart the staging SQL Server.
d) Select the domain user account that you want to use for connection to the staging SQL Server, and in its properties on the Account tab make sure the Account is sensitive and cannot be delegated check box is cleared.
60
| Veeam Explorers Series | User Guide | REV 3
Note:
Contact your Active Directory administrator, if necessary.
Obtaining Database File from VM Backup Veeam Explorer for Microsoft SQL Server supports database files obtained from the VeeamZIP file or from SQL server VM backup or replica. So, the following operations should be performed: 1.
Obtain database file from the latest or specified restore point (backup, replica or VeeamZIP file) by means of Veeam Backup & Replication.
2. Add this database to the Veeam Explorer scope. You can carry out these two steps in a fully automated way by using the Microsoft SQL Server Database Restore wizard (described later in this guide). In this case, Veeam Backup & Replication will automatically obtain the database from the backup and open it in Veeam Explorer for Microsoft SQL Server. Alternatively, you can perform these steps manually: first, obtain the database files from the backup using any other Veeam recovery option (for example, Windows guest OS recovery), then locate the necessary database and add it to Veeam Explorer scope. This course of action is described in the next sections.
Manual Steps for VeeamZIP File To obtain the database file from the VeeamZIP file, you can use full VM recovery or guest OS file-level recovery (preferred option) for the virtualized SQL server. Then in Veeam Backup Browser you can locate the database you want to restore. To add the database file to Veeam Explorer scope directly from the mounted VM file system, do the following: 1. In the navigation tree of Veeam Backup Browser, choose the folder where the primary database file (.mdf ) is located (for information about default file paths, please refer to the http://technet.microsoft.com/en-us/library/ms143547.aspx). 2.
61
On the Home tab of Veeam Backup Browser toolbar, select Application Items>SQL Server Databases. The database will be added to Veeam Explorer scope and displayed in its main window.
| Veeam Explorers Series | User Guide | REV 3
Note:
If you choose to restore database directly from the mounted VM file system, do not close Veeam Backup Browser until you finish restore operations. Closing Veeam Backup Browser automatically unmounts the file system of the backed up VM.
Manual Steps for Backup or Replica To extract the database from the backup or replica file, you can use any data recovery feature available in Veeam Backup & Replication: Instant VM recovery, full VM restore, replica failover and so on. Data recovery options are described in detail in Veeam Backup & Replication User Guide. We will use Guest OS Restore wizard as a sample method. Guest OS Restore Wizard allows you to mount the backup of the Microsoft SQL server to the Veeam backup server and extract the database files. When you perform file-level restore of guest OS files, the file system of a backed up VM will be mounted to the Veeam mount server and automatically displayed in the in-built Backup Browser. After that, you can locate the necessary database file and add it to Veeam Explorer's scope. Do the following:
Note:
1.
In the Veeam Backup & Replication console, open the Home tab and click Restore.
2.
In the Restore Wizard window, select Guest Files > Guest Files (Windows).
3.
In the list of available jobs, select the backup or replica of the SQL server from which the database should be restored.
This backup must be created by a job with application-aware image processing enabled. For more information, see Veeam Backup & Replication User Guide.
62
1.
Select the restore point for the SQL server VM. The details on this VM (including name, size and srcinal host) will be also displayed.
2.
Enter restore reason.
| Veeam Explorers Series | User Guide | REV 3
3.
Note:
Click Finish to start restoring. Once the restore is completed, Veeam Backup & Replication will open Backup Browser displaying the file system tree of the restored VM.
Please note that the names of the restored machine drives may differ from the srcinal ones.
4.
Browse through the contents of the backup and locate the database file. Consider that VM disks are mounted under the C: \ veeamf l r \ \ folder; the default SQL server instance paths are listed in File Locations for Default and Named Instances of SQL Server article.
5.
Use the Application Items>SQL Server Databases menu command on the Home tab to launch Veeam Explorer for Microsoft SQL Server and add the database to Veeam Explorer's scope.
Automated Steps for Backup or Replica This wizard automatically performs SQL Server VM file-level recovery, detects SQL hierarchy, including instances and databases, and adds selected database to Veeam Explorer scope, attaching it to the staging server for further export and restore. To start the Microsoft SQL Server Database Restore wizard, do any of the following:
63
In Veeam Backup & Replication, open the Backup & Replication view and go to the Home tab. Click Restore and select the necessary VM platform. In the Restore Options window, select Application items, on the next step select Microsoft SQL Server. You will proceed to the Virtual Machine step of the wizard.
In Veeam & Replication, openthe thebackup Select the Backups Backupjob & Replication node, thenBackup in the right pane expand with the SQLview. server you need. Select the SQL server VM, then on Backup tab of the toolbar click Application items > Microsoft SQL Server. In this case, you will pass to the Restore Point step of the wizard.
| Veeam Explorers Series | User Guide | REV 3
Note:
In Veeam Backup & Replication, open the Backup & Replication view. Select the Backups node, expand the backup job with the SQL server VM in the right pane. Right-click the SQL server VM and from its shortcut menu select Restore application items > Microsoft SQL databases. In this case, you will pass to the Restore Point step of the wizard.
Consider that you can use this method only for VM backups that were created with VSS-aware image processing enabled. Then follow the steps of the wizard, as described in the next section.
Microsoft SQL Server Database Restore Wizard 1.
64
In the Virtual Machine step, expand the job you need from the list of backup jobs, and select the SQL server VM hosting the required database. To quickly find VMs in jobs, use the search field at the bottom of the window.
| Veeam Explorers Series | User Guide | REV 3
2.
Select the restore point to be used. Veeam supports the following restore options:
Restore from the latest available backup – this is the default option.
Restore from this restore point – with this option selected, you can then choose the necessary restore point from the list.
65
3.
Next, enter the reason for SQL server VM restore.
4.
On the Summary page, review the details of your VM to be recovered, and click Finish.
| Veeam Explorers Series | User Guide | REV 3
After that, Veeam Explorer for Microsoft SQL Server will be launched, with the SQL server hierarchy (for the chosen restore point) automatically added to its scope and shown in the navigation tree. Then you can use Veeam Explorer functionality to view, export and restore databases.
66
| Veeam Explorers Series | User Guide | REV 3
Adding Database To Veeam Explorer Scope To allow users to browse and restore the necessary data, SQL server database must be added to Veeam Explorer's scope. The following ways are possible:
If you are using Microsoft SQL Database Restore Wizard to mount the contents of the backup file, then Veeam Explorer for Microsoft SQL Server will be launched automatically, with the database added to its scope, and Microsoft SQL server hierarchy will be displayed in the main window. If you are using other Veeam file-level restore option, then you can navigate to the necessary database file in Veeam Backup Browser and use the Application Items>SQL Server Databases menu command on the Home tab to launch Veeam Explorer; Veeam will automatically discover SQL server databases in the mounted backup and add them to scope.
Note:
Otherwise, if you have manually recovered the database from backup or if you are using imported backup, then you should explicitly add database file to the Veeam Explorer scope, making it visible in the console.
If you plan to add the database manually, make sure the staging Microsoft SQL server is configured, as described in the System Requirements section above. Do the following: 1.
Open Veeam Explorer for Microsoft SQL Server and click Add Database on the toolbar.
2.
In the displayed window, enter the location of the primary database file, the secondary database and corresponding log files. If necessary, specify BLOB store location.
Manually added databases will be displayed in the navigation tree under the Other SQL Servers
Databases node.
To add multiple databases to scope when one database is already open, you can run the same command from the menu bar, or right-click any item in the navigation tree and select Add database from its shortcut menu. After the database has been added to the Veeam Explorer scope, you can browse through the server instances and databases, view their properties, export and restore the databases, as well as their schema objects.
67
| Veeam Explorers Series | User Guide | REV 3
Important! Keep in mind that the restore point you have selected when restoring SQL server VM becomes a reference point for the database recovery scenarios (it will be referred to as current restore point). You can remove a database that you have manually added to Veeam Explorer scope. For that, select it in the navigation tree and click Remove Database on the toolbar, or use the shortcut menu command. When prompted, confirm the operation.
Note:
If the database was added automatically (by using Microsoft SQL Item Restore wizard), this command will be unavailable for it.
Viewing Database Information In the Veeam Explorer navigation pane, you can see the hierarchy of SQL server, including all instances and databases added to scope When you select an entity in the navigation tree, you can view its properties in the working area on the right. .
For SQL server - server name and VM name.
For server instance - name and full version
68
For each database - name, backup creation date, recovery model, whether in read-only mode, database files location for databases and log files, availability of the restore scenario (if restore to point in time is possible due to backup settings) If current VM restore point was created with AlwaysOn availability group configured for selected database, you can also view availability group name and server role (as for the srcinal server)
| Veeam Explorers Series | User Guide | REV 3
Restoring Databases With Veeam Explorer for Microsoft SQL Server, you can restore SQL server database(s) to the srcinal or different server instance in your production environment. For that, the Restore Wizard is used, where you can choose target server and restore options. Also, you can use 1-Click Restore feature to quickly recover your database(s) to the srcinal location.
1-Click Restore With 1-Click Restore, Veeam Explorer allows you to quickly restore one or several databases to the srcinal location (that is, the srcinal SQL server instance hosting the database(s)). You can restore selected database(s) to the current state, or to the certain point in time - for that, make sure the SQL Server backup job was set up properly (see Required Microsoft SQL Server Backup Job Settings ) and completed successfully. Restore process will be performed with the following settings:
Database(s) will be restored to the srcinal VM (files will be copied to the srcinal location and then attached to the srcinal SQL Server instance). AlwaysOn availability groups will be restored in accordance with the source (backup) settings.
Important! If a database with the same name exists on target, it will be deleted and replaced by the database from backup. You will need to confirm this operation before it starts.
User credentials for carrying out the restore procedure (using Windows authentication) will be picked as follows: firstly, Veeam Explorer will try to use the account which is currently logged in. If this account does not have sufficient rights to perform the restore procedure (for example, in case of imported backup), then it will use the account configured for guest access in the corresponding backup job; if this does not work either, user will be prompted to supply the credentials. Remember that the account permissions, should have administrative rights on the necessary target server. For detailed information on required see Permissions.
Restore to the current state You can quickly restore one or several databases as of the current (that is, currently mounted to Veeam backup server) state on the srcinal server. As you remember, when mounting a VM backup to Veeam backup server, you can select the latest or any other state from the list of available restore points. To restore to the current state on the srcinal server:
69
1.
Select the required database in the navigation tree on the left. To restore all databases residing on a server or instance, select the corresponding node.
2.
To restore a single database, on the Database tab select Restore Database > Restore to \ on the toolbar or use the same command from the shortcut menu.
| Veeam Explorers Series | User Guide | REV 3
To restore multiple databases, select the required server or instance in the navigation tree on the left, then:
3.
o
If restoring multiple databases of the selected SQL Server, select Restore to - in this case, all databases will be restored to corresponding instances on that (srcinal) server.
o
If restoring multiple databases of the selected instance, select Restore to \ - in this case, all databases will be restored to the specified instance on the srcinal server.
Veeam Explorer will display a confirmation dialog. To start the restore process, click Proceed. Wait for the process to complete.
Restore to point in time To quickly restore one or several database(s) to the certain point-in-time state to the original server, do the following:
70
1.
Select the required database in the navigation tree on the left. To restore all databases residing on a server or instance, select the corresponding node.
2.
To restore a single database, select Restore Database > Restore point-in-time state to \ on the toolbar or use the same command from the shortcut menu:
| Veeam Explorers Series | User Guide | REV 3
To restore multiple databases, select the required server or instance in the navigation tree on the left, then:
3.
o
If restoring multiple databases of the selected SQL Server, select Restore point-intime state to - in this case, all databases will be restored to corresponding instances on that server.
o
If restoring multiple databases of the selected instance, select Restore point-intime state to \ - in this case, all databases will be restored to the specified instance.
At the wizard step displayed, select the Restore to a point in time option. If restoring a single database, use the slider to select the necessary point. For details on using the time scale, see Restoring to Specific Point in Time.
71
| Veeam Explorers Series | User Guide | REV 3
If restoring multiple databases, consider that depending on the database recovery model, the following cases are possible:
4.
o
Some database(s) will be restored to the state as not of the specified moment but as of the different time (the closest prior to selection) - this will be shown in the list next to database name
o
Some database(s) cannot be restored as there are no transaction logs for the specified period - this will be mentioned in the list
o
Some database(s) will be restored to the specified moment - they will not appear in the list
Click Restore. Veeam Explorer will display a confirmation dialog. To start the restore process, click Proceed. Wait for the process to complete.
Using Restore Wizard Step 1. Specify restore point Select the state to which the database should be restored:
Restore to the current restore point option instructs Veeam Explorer to recover the database to the moment when current restore point of SQL server VM was created. With this option selected, you will proceed to step 3. Restore to a point in time option instructs Veeam Explorer to recover the database to the state as of the specified moment.
Use the slider to specify the point in time to which you want the database to be restored. Database will be recovered to the closest VM restore point before the moment you specify on the timeline, and then transaction log replay will bring the database to the necessary state. The timeline includes the following timestamps (relatively to current SQL server restore point):
72
o
Beginning – refers to the previous restore point of SQL server VM which contains selected database backup
o
End – refers to the next restore point which contains selected database backup
| Veeam Explorers Series | User Guide | REV 3
Note:
Consider the following:
If the previous restore point (server backup) was not found, or database backup does not exist in it, then Beginning will refer to current restore point. If the next restore point (server backup) and corresponding transaction log backup were not found, or if database backup does not exist in server backup, then End will refer to current restore point. If the next restore point (server backup) was not found, but transaction log backup exists for the preceding period, then End will refer to the latest log backup time. Finally, you can select the Perform restore to the specific transaction check box - this enables you to review major database transactions around the selected time, and restore the database to the moment in time right before the unwanted change. With this check box selected, you will proceed to Step 2, with the check box cleared, you will proceed to Step 3.
Step 2. Fine-tune the Restore Point On this step, you get a list of database operations logged during the time period you have specified.
Select the undesired operation (for example, you can select the row deletion or insertion). The database will be restored to the most recent state preceding the selected operation.
Note:
For the full list of operations for which this process is supported, please refer to the Appendix.
Step 3. Specify target SQL Server connection parameters On this step, specify settings for the target server where the database should be restored:
73
| Veeam Explorers Series | User Guide | REV 3
a)
Note:
Supply SQL server virtual machine name and SQL server instance where to restore; use the server_vm_name\instance format. You can select server\instance from the drop-down list, or use the Browse button. Enter database name (by default, the srcinal name will be used). Consider that database in mirror mode cannot be used as a target.
Target SQL server must be of the same or later version as the srcinal server. For example, SQL server 2008 database can be restored to SQL server 2008 or 2012, but cannot be restored to SQL server 2005. b)
Specify account to be used for connection with the target SQL server. You can use the current account (under which you are running Veeam Explorer), or specify another account and enter its password.
c)
You can select to Use SQL Server authentication; if this check box is not selected, Windows authentication will be used. Remember that the account used to access target SQL server must be assigned the sysadmin role on that server.
Important! To be able to copy transaction logs to the target server for further replay, the account you specify for server connection (that is, credentials to connect to Windows server) should be granted sufficient permissions to access the administrative share on that machine (e.g., \ \ myser ver \ C$) - Read and Write are minimal required, Full Control recommended. See the Permissions section for information.
Important! If a database with the specified name exists on the target SQL server instance, the restore process by design will delete it and replace with from backup. Thus, when you click Next, a message will be displayed, asking youthe to database confirm the deletion.
Step 4. Specify AlwaysON Restore Options If the specified target SQL server supports AlwaysOn Availability Groups, then you will be offered to click Next and specify AlwaysOn restore options; otherwise, proceed to Step 5.
74
| Veeam Explorers Series | User Guide | REV 3
If you plan to use AlwaysOn capability for the database, select the Add the database to the following group check box, then select the necessary availability group from the list. Database will be restored to the primary server (shown in the list of nodes) and replicated to the secondary node(s). If you do not plan to use AlwaysOn capability when restoring the database, clear the the Add the database to the following group check box.
Step 5. Specify Files Location Finally, specify the location to which database and log files will be restored:
Default path depends on the SQL server. For example, for SQL server 2008 R2 it will be: %Pr ogr am Fi l es%\ Mi cr osof t SQL Ser ver \ MSSQL10_50. .
Note:
Default path on target Windows server may be different.
You can click Browse to specify a path you need. After you select the target folder where to copy files, return to the wizard. Finally, click Restore and wait for the process to complete. Veeam Explorer will notify you of the operation results.
Restoring a Database to Current Restore Point This scenario allows you to recover selected SQL database to the moment when the current (that is, currently mounted to Veeam backup server) restore point — backup or replica — was created for the SQL server VM. To implement this scenario, you do not need to configure log backup or recovery settings; check only the following: 1.
You have a successful SQL server VM backup with application-aware image processing enabled.
2.
When recovering database file from VM backup or replica, you have selected the necessary restore point of SQL server VM (see the Obtaining Database File from VM Backup section above).
Also, decide where you will restore the database:
75
| Veeam Explorers Series | User Guide | REV 3
To restore to the srcinal server, use 1-Click Restore. To restore to another server, select the required database in the navigation tree on the left, then click Restore Database > Restore to another server... on the toolbar, or use the corresponding database's shortcut menu command.
The Restore wizard will be launched. On the Specify restore point step, select the Restore to the current restore point option.
Then follow the steps of the wizard to configure restore target and perform the restore.
Restoring a Database to Specific Point in Time This scenario allows you to recover your database to specific point in time (which may differ from current SQL Server restore point). Database will be recovered to the closest VM restore point before the moment you specify, and then transaction log replay will be performed on the target server to bring the database to the necessary state. So, to implement this scenario, ensure the following:
76
| Veeam Explorers Series | User Guide | REV 3
1.
SQL Server transaction logging is enabled - database recovery model must be set to Full or Bulk-logged.
2.
Transaction log handling in the SQL Server VM backup job settings had been configured to keep log backups: the Backup logs option should be selected.
3.
You have SQL Server application-aware backup created successfully.
Restore to Original Server To restore a database to the certain point in time to the srcinal server, do the following: 1.
In Veeam Explorer main window, select the required database in the navigation tree on the left.
2.
Select Restore Database > Restore point-in-time state to \... on the toolbar, or use the same database's shortcut menu command and perform 1-Click Restore.
Restore to Another Server To restore database to specified point in time to another SQL Server, do the following:
77
1.
In Veeam Explorer main window, select the required database in the navigation tree on the left.
2.
Select Restore Database>Restore to another server... on the toolbar, or use the same database's shortcut menu command.
| Veeam Explorers Series | User Guide | REV 3
3.
After the Restore wizard is launched, select Restore to a point in time option and use the slider to specify the necessary point, as described above. Leave the Perform restore to specific transaction check box cleared.
4.
Proceed to the Specify SQL Server step of the Restore Wizard. Go through the remaining steps of the wizard and wait for restore operation to complete.
Restoring a Database to Specific Transaction This scenario offers the greatest granularity of the database recovery: you can select the undesired operation from the list of database operations (available for the time period you have specified) – for example, user deletion. The database will be restored to the state prior to the transaction containing the specified operation, using log replay on target server. To implement this scenario, ensure the following: 1.
SQL Server transaction logging is enabled - database recovery model must be set to Full or Bulk-logged.
2.
Transaction log handling in the SQL Server VM backup job settings had been configured to keep log backups - the Back up logs option should be selected.
3.
You have SQL server application-aware backup created successfully.
In Veeam Explorer main window, select the required database in the navigation tree on the left, then launch the Restore Wizard: •
•
To restore a database to the srcinal server, click Restore Database > Restore point-in-time to \ on the toolbar, or use the database's shortcut menu command. To restore a database to another server, click Restore Database > Restore to another server on the toolbar, or use the database's shortcut menu command.
Then follow the steps of the Restore wizard:
Note:
1.
On the Specify point step, select Restore to a point in time and use the slider to specify the pointrestore you need.
2.
Select the Perform restore to the specific transaction checkbox.
Remember that these options will be available only if Microsoft SQL Server database recovery model had been set to Full or Bulk-logged and transaction log handling in the SQL Server VM backup job settings had been configured to keep log backups (see the Required SQL Server Backup Job Settings section).
78
| Veeam Explorers Series | User Guide | REV 3
3.
Next, on the Fine-tune the restore point step, you get a list of database operations logged during the time period you have specified. Select the undesired operation (for example, you can select the row deletion or insertion). The database will be restored to the most recent state preceding the selected operation.
4. Complete the steps of the wizard, as described in Using Restore Wizard. Veeam Explorer will notify you of the restore operation results, displaying a pop-up message.
Restoring Database Schema and Data Veeam Explorer allows you to restore certain database schema objects and data. For that: 1.
79
Click Restore Schema > Restore database schema and data on the toolbar, or use the database's shortcut menu command.
| Veeam Explorers Series | User Guide | REV 3
2.
Then go through the steps of the restore wizard, specifying the necessary options for the scenario you need.
3.
At the Select database objects step, review the list of database objects. Use the Object and Data check boxes to specify whether a database object and\or data should be restored.
To display only specific objects, click Filters and select the object type:
4.
80
Specify object names for the objects after restore. When proceeding to this step, Veeam Explorer checks for object name in backup to exist in the target database:
o
If no duplicates exist, new name will be the same as the srcinal name.
o
If any duplicates are found, you will get a message asking to provide different new name. You can click Auto to create new names automatically - then Veeam Explorer will use the srcinal names followed by suffix (for example, _new suffix). You can edit the name if necessary and click Auto to check for duplicates again. If the check is a success, you can proceed to the next step.
| Veeam Explorers Series | User Guide | REV 3
5.
6.
If you are restoring file tables, at the next step you should specify directory names for these tables. You have the following options:
o
Preserve directory names if applicable (use autogenerated otherwise) - Veeam Explorer will use the srcinal names, or, if such a name already exists, a new name will be generated automatically as current name followed by suffix (for example, _new suffix)
o
Use the following directory names - here you can enter a different name for directory.
At the next step, specify additional restore options. Select how the filegroups should be restored for selected schema object(s):
o
Preserve filegroup - with this option selected, srcinal filegroup will be restored. If this scenario is not applicable (for example, no such filegroup exists on target), then default filegroup configured on target will be used.
81
| Veeam Explorers Series | User Guide | REV 3
o
Use the following filegroup - select the necessary filegroup on target.
Select how partitioned tables should be restored:
o
Preserve partition schema - with this options selected, the table will be restored to the srcinal partition schema (if applicable; if not - default partition schema on target will be used)
o
Use the following partition schema - select the necessary partition schema on target.
o
Use the following filegroup - alternatively, select the filegroup on target to be used at restore.
7.
Finally, click Restore and wait for the restore process to complete.
Restoring Multiple Databases You can use Veeam Explorer to restore multiple databases at once: these can be all databases hosted by the certain SQL Server, or all databases of the certain SQL Server instance. You can restore the databases to the current restore point or to the state as of the selected point in time. Restore to the state prior to selected transaction is not available for that scenario. To restore multiple databases, first check the following: 1.
You have a successful SQL Server VM backup with application-aware image processing enabled.
2.
You have selected an appropriate restore point of SQL Server VM (see the Recovering Database File from VM Backup section above).
Also, Restore. decide where you will restore the databases. To restore to the srcinal server or instance, use 1Click To restore to another server or instance: 1.
82
Select the required server or instance in the navigation tree on the left, then click Restore Databases > Restore to another server... .from the ribbon menu or from the shortcut menu.
| Veeam Explorers Series | User Guide | REV 3
2.
On the Specify restore point step of the wizard, select the state to which the databases should be restored:
o
Restore to the current restore point option instructs Veeam Explorer to recover all databases to the moment when current restore point of SQL server VM was created.
o
Restore to a point in time option instructs Veeam Explorer to recover the databases to the state as of the specified moment. Depending on the database recovery model, the following cases are possible:
a)
If you are restoring all databases of a server, having selected SQL Server node in the navigation tree, consider that databases will be restored to a single instance on that server. The srcinal database names will be used for restored databases.
b) Specify the account to be used for connection with the target SQL Server. You can use the current account (under which you are running Veeam Explorer), or specify another account and enter its password. c)
83
You can select to Use SQL Server authentication; if this check box is not selected, Windows authentication will be used. Remember that the account used to access target SQL Server must be assigned the sysadmin role on that server.
| Veeam Explorers Series | User Guide | REV 3
Important! Consider the following:
4.
If database with the specified name exists on the target SQL Server instance, the restore process by design will delete it and replace with the database from backup. Thus, you will need to confirm the deletion. If the specified target supports AlwaysOn availability groups, and you are restoring the databases belonging to the AlwaysOn group to their srcinal instances, these databases will be restored to the same group on target (this setting cannot be changed). By default, databases will be restored to the primary server and replicated to the secondary node(s). If connection to the Windows machine hosting the target SQL server uses the same credentials that you specified on Step 3, you can proceed with Step 5. Otherwise, supply server connection credentials.
Important! To be able to copy transaction logs to the target server for further replay, the account you specify for server connection (that is, credentials to connect to Windows server) should be granted sufficient permissions to access the administrative share on that machine (e.g., \ \ myser ver \ C$): Read and Write are minimal required, Full Control recommended. See the Permissions section for information.
Note:
By default, database files will be restored to the srcinal paths, for example, for SQL Server 2008 R2 it will be: %Pr ogr am Fi l es%\ Mi cr osof t SQL Ser ver \ MSSQL10_50. .
Default path on target Windows server may be different. 5.
Click Restore. Veeam Explorer for Microsoft SQL Server will display a confirmation dialog. To start the restore process, click Proceed. Wait for the process to complete. Veeam Explorer will notify you of the restore operation results.
Exporting Databases With Export Wizard, you can export selected database to a folder in the specified location. Exported database can be then attached to the SQL Server you need.
84
| Veeam Explorers Series | User Guide | REV 3
Veeam Explorer needs a staging Microsoft SQL Server for several export scenarios: export to selected point in time and export to the state before selected transaction. The staging SQL Server should meet several requirements listed in this document. Refer to the “How It Works” and the “Staging SQL Server” sections for details. You can configure a path to the temporary location on the staging SQL Server where the log files will be stored during these export scenarios. For that, do the following: 1.
Go to the %pr ogr amdat a%\ Veeam\ Backup and Repl i cat i on\ SQLExpl or er folder on the machine where Veeam Explorer runs, and create a new configuration file named Config.xml in that folder.
2.
Add the TempFolderPath configuration parameter to the file content and specify the location you need (default is C: \ t mp):
SQLExpl or er > Veeam> 3.
Save and close the configuration file.
The wizard can be launched by the Export command from the selected database shortcut menu or from the ribbon menu.
Step 1. Specify Restore Point Select the state to which the database should be exported: •
•
85
The Restore to the current restore point scenario allows you to obtain database files as for the moment when the VM’s current restore point was created by backup or replication job. With this option selected, you will then be taken to step 5 of the wizard (see below).
The Restore to a point in time scenario allows you to obtain selected database files as for the selected moment (point) in the time interval around the current restore point, generally, from the previous to the next restore point (for details on the timescale, refer to the Restoring to Specific Point in Time section above). Use the slider control to choose the point you need.
| Veeam Explorers Series | User Guide | REV 3
Remember that restore to specific point in time is available under the certain conditions listed in the Restoring to Specific Point in Time. With this option selected, you will then be taken to step 3 of the wizard.
•
You can select Perform restore to specific transaction checkbox to review major database transactions around the selected time. Then you can pick the necessary operation and obtain database files as for the moment right before the unwanted change. With this option selected, you will then be taken to step 2 .
Note:
For the last two options, Veeam Explorer for Microsoft SQL Server will need a staging SQL Server to replay the logs and to present the list of transactions, so make sure your staging server is configured properly. By default, local server will be used as a staging system. See Prerequisites for details.
Step 2. Fine-tune the Restore Point At this step, the list of database operations is displayed. Here you can select the undesired operation, and the database files will be obtained as for the state prior to transaction involving the specified operation.
Note:
Veeam Explorer for Microsoft SQL Server database operations as listed in the Appendix.
86
| Veeam Explorers Series | User Guide | REV 3
Step 3. Specify Database Files Location Next, specify path to the destination folder. Note that the current account (used to run Veeam Explorer for Microsoft SQL Server) should have sufficient permissions for the selected folder (Read and Write as minimal recommended).
Finally, click Export and wait for the operation to complete.
1-Click Database Export This capability of Veeam Explorer allows you to quickly export a database to the srcinal location (that is, the srcinal SQL Server instance hosting the database). You can export selected database state as of the current restore point, or the certain point in time, or to the state prior to specified transaction.
87
| Veeam Explorers Series | User Guide | REV 3
Export as of Current State To quickly export selected database state as of the current restore point to default location (C: \ User s\ %user name%\ Deskt op), use the Export Database > Export state of to Desktop\ command from the ribbon menu or database shortcut menu.
To export multiple databases, select the server or instance node in the navigation tree, then use the Export Databases > Export state of to Desktop\ (for all databases of selected server) or the Export Databases > Export state of to Desktop\ (for all databases of selected server).
Export as of Point-in-time State To quickly export selected database state as of the certain point in time to default location: 1.
To export single database, select it in the navigation tree, then use the Export point-in-time state to Desktop\ command from the ribbon or database's shortcut menu. To export multiple databases, select the server or instance node in the navigation tree, then use the Export Databases > Export point-in-time state to Desktop\ (for all databases of selected server) or the Export Databases > Export point-in-time state to Desktop\ (for all databases of selected server).
2.
88
On the Specify restore point step of the Export Wizard, select Restore to a point in time option and use the slider to specify the necessary point.
| Veeam Explorers Series | User Guide | REV 3
3.
Click Export and wait for the process to complete.
Export as of State Before Selected Transacti on This feature is available only when exporting a single database. To quickly export selected database state as of prior to the specified transaction to default location: 1.
Use the Export point-in-time state to Desktop\ command from the ribbon or database's shortcut menu.
2.
On the Specify restore point step of the Export Wizard, select Restore to a point in time option and use the slider to specify the necessary point. Select the Perform restore to the specific transaction check box.
If exporting multiple databases, consider that depending on the database recovery model, the following cases are possible:
4.
o
Some database(s) will be exported as not of the specified moment but to the different time (the closest prior to selection)
o
Some database(s) cannot be exported as of point in time since there are no transaction logs for the specified period
o
Some database(s) will be exported as of the specified moment
o
System databases will not be processed and will not appear in the list
Click Export and wait for the process to complete.
Exporting Databases to Custom Location Exporting a Single Database To export a single database to a location you need, do the following: 1.
89
Select the required database in the navigation tree on the left.
| Veeam Explorers Series | User Guide | REV 3
2.
From its shortcut menu, select Export to another folder..., or use the ribbon menu command on the Database tab.
3.
The Export Wizard will be launched. Here you can use one of the three scenarios similar to those described in the Restoring Databases section above:
4.
o
Export database to the state as of the current restore point
o
Export database to the state as of selected point in time
o
Export database to the state prior to selected transaction
Having selected the option you need, follow the steps of the wizard.
Exporting Multiple Databases To export all database of the selected SQL Server or instance to a location you need, do the following:
90
1.
Select the required node (server or instance) in the navigation tree on the left.
2.
From its shortcut menu, select Export to another folder..., or use the Export Databases > Export to another folder... ribbon menu command.
3.
The Export Wizard will be launched. Here you can select the following options (similar to restore):
o
The Restore to the current restore point scenario allows you to obtain database files as for the moment when the VM’s current restore point was created by backup or replication job. With this option selected, you will then be taken to step 5 of the wizard (see below).
o
The Restore to a point in time scenario allows you to obtain database files as for the selected moment (point) in the time interval around the current restore point, generally, from the previous to the next restore point (for details on the timescale,
| Veeam Explorers Series | User Guide | REV 3
refer to the Restoring to Specific Point in Time section above). Use the slider control to choose the point you need.
Depending on the database recovery model, the following cases are possible:
Note:
o
Some database(s) will be exported as not of the specified moment but to the different time (the closest prior to selection)
o
Some database(s) cannot be exported as of point in time since there are no transaction logs for the specified period
o
Some database(s) will be exported as of the specified moment
o
System databases will not be processed and will not appear in the list
For the Restore to a point in time option, Veeam Explorer for Microsoft SQL Server will need a staging SQL Server to replay the logs, so make sure your staging server is configured properly. By default, local server will be used as a staging system. See Prerequisites for details. 4.
91
Next, specify path to the destination folder where database files will be stored.
| Veeam Explorers Series | User Guide | REV 3
Default location is the Desktop folder of the current user. If you need to export to another folder, note that current account (used to run Veeam Explorer for Microsoft SQL Server) should have sufficient permissions for the selected folder ( Read and Write as minimal recommended).
5.
o
If you are exporting multiple databases of an instance, then consider that by default database files will be stored to a folder named as that instance under Desktop.
o
If you are exporting multiple databases of a server, then consider that by default database files will be stored to the folders with the same names under Desktop\ folder.
Click Export and wait for the operation to complete.
Databases will be available after export in the target folder; if you selected to export point-in-time state, log files will be also exported there to be used for replay. Exported database can be then attached to the SQL Server you need.
1-Click Export of Schema State Veeam Explorer for Microsoft SQL Server allows you to quickly export database schema state as of the current restore point to default folder ( C: \ User s\ %user name%\ Deskt op\ ). For that, use the Export Schema > Export database schema s tate of to Desktop\ command from the ribbon or database’s shortcut menu.
92
| Veeam Explorers Series | User Guide | REV 3
Veeam Explorer will create a folder named and save database schema objects in the .SQL script file in that folder. Then you can run this script for the database where you want to import schema objects.
Exporting Database Schema and Data to Custom Location To export database schema and data to a location you need, select the required database in the navigation tree on the left, and from its shortcut menu select Export Schema > Export database schema and data ..., or use the ribbon menu command. 1.
93
The Export Wizard will be launched. First, you should specify what restore point you want to use for export. You can select one of the following scenarios:
o
The Restore to the current restore point scenario allows you to obtain data as for the moment when the VM’s current restore point was created. With this option selected, you will then be taken to step 3 of the wizard.
o
The Restore to a point in time scenario allows you to obtain selected database schema and objects as for the selected moment (point) in the time interval around the current restore point, generally, from the previous to the next restore point. Use the slider control to choose the point you need. Remember that using this scenario is possible under the certain conditions listed in the Restoring to Specific Point in
| Veeam Explorers Series | User Guide | REV 3
Time. With this option selected, you will then be taken to step 3 of the wizard.
o
You can select Perform restore to specific transaction checkbox to review major database transactions around the selected time. Then you can pick the necessary operation and obtain database files as for the moment right before the unwanted change. With this option selected, you will then be taken to step 2 .
94
2.
At the Fine-tune the Restore Point step, you get a list of database operations logged during the time period you have specified. Select the undesired operation (for example, you can select the row deletion or insertion). The database will be restored to the most recent state preceding the selected operation.
3.
At the Select database objects step, review the list of database objects. Use the check boxes next to column names to select whether a database object and\or data should be restored. To display only specific objects, click Filter and select the object type you want to be shown in the list.
4.
Next, specify name to be assigned to the object after export. By default, the srcinal names are used for exported objects, so if you want a new object to have the same name as the srcinal, select the object and click Default. Alternatively, you can assign a new name by clicking Auto to automatically add _new suffix to the srcinal name, or even manually edit the selected name as you need.
| Veeam Explorers Series | User Guide | REV 3
5.
Then specify destination folder where to export selected schema objects. Default location is C: \ User s\ %user name%\ Deskt op. Veeam Explorer will save database schema objects in the .SQL file in that folder.