Run Scripts
In the Run PowerShell Scripts dialog, the following options can be specified:
Run the script before starting the backup - Launches specified PowerShell scripts before the backup creation process is started.
Stop the backup if the script fails - Stops the backup process if the script cannot be run without errors.
Run the script after backup creation is complete - Launches specified PowerShell scripts after backup is created.
Mark the backup as unsuccessful if the script fails - If the script fails, the backup process will be shown as failed with error in the RMAD console.
Upload Script - Using this option you can upload an existing PowerShell script file (.ps1). After the script is uploaded, the contents of the script will be displayed in the dialog and you can edit it if necessary.
Select Account - Here you can select an account under which the scripts will be running. For the "Console scripts", by default, the account under which the console is launched will be used. For the "DC scripts", there is no default value, and the user has to select an account. Otherwise, the settings will not be saved.
NOTE |
If the script is run on a domain controller, we strongly recommend using an account with the minimum rights required only to perform the actions specified in the script. |
NOTE |
The "Console scripts" are launched only once for each run of backup creation on the console machine. The "DC scripts" are run on each DC for which the backup is created. If the "script for DC" fails, the corresponding DC will have an error or warning. If the "console script" fails, then all DCs for which the backup process was started will have an error or warning. |
Recovery Manager for Active Directory provides an option to set the maximum timeout during which a script can run (the default value is 60 seconds). To change this value, set the HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Quest\Recovery Manager for Active Directory\Options\ScriptExecTimeoutInSeconds (DWORD) registry key to <required value>.
Failed script can lead to both Warning and Error results. It depends on the specified settings:
Option Name | Scenario 1 | Scenario 2 | Scenario 3 | Scenario 4 |
---|---|---|---|---|
Run the script before starting the backup | ✔ | ✔ | ||
Stop the backup if the script fails | ✖ | ✔ | ||
Run the script after backup creation is complete | ✔ | ✔ | ||
Mark the backup as unsuccessful if the script fails | ✖ | ✔ | ||
Result | Warning | Error | Warning | Error |
Running scripts can be dangerous - especially on a domain controller. Recovery Manager includes the following security measures for scripts:
Diagnostic logging Specify the logging setting for the Recovery Manager and Backup Agents for all domain controllers in the collection.
The following options are available:
Global settings - Use the default logging settings from the Recovery Manager Console root node: Recovery Manager for Active Directory->Settings…>Logging.
Enable - If you select this option, extended logging will be enabled for all domain controllers within the collection during the backup operation.
Disable - If you select this option, the log will contain only Warnings and Error messages.
The log files will be created in the %ProgramData%\Quest\Recovery Manager for Active Directory\Logs folder:
Agent side (domain controller): ErdAgent.log
Recovery Console: ErdServer.log
NOTE |
The options on this tab are not supported for BMR backups. |
This tab allows you to override the global (or default) settings used to automatically unpack backups for all Computer Collections.
On this tab, you can use the following elements:
Use global settings. Specifies to use the global settings to automatically unpack each backup upon its creation.
Unpack each backup upon its creation. Allows you to configure settings specific to the Computer Collection to automatically unpack each backup upon its creation. In this option, you can specify the number of recent backup creation sessions from which you want to keep unpacked backups for each domain in the Computer Collection or select the domain controllers you need. Other backups created for the Computer Collection will be automatically deleted.
Do not unpack backups. Specifies not to unpack backups created for the Computer Collection.
For more information on managing unpacked backups, see Unpacking backups.
For a container such as an Active Directory domain, organizational unit, or site added to a Computer Collection, the properties are used to specify an explicit list of the domain controllers or AD LDS (ADAM) instances for which backups are not to be created.
In the Recovery Manager Console tree, select the Computer Collection that holds the container or site.
In the details pane, click the container or site, and then click Properties on the Action menu.
The next subsections provide descriptions for the following:
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center