Synchronization of User-Defined Variables
Synchronization of User-Defined Variables
Synchronizes the user-defined variables of two DSM environments. Only the variable definitions are synchronized, not the variable values within the ODS.
Examples:
Hint: The examples require two connected PowerShell drives on the environments to be synchronized. |
In the first example, the user-defined variables of two DSM environments are synchronized, for this purpose the source drive and the target drive are needed:
$SyncSource = Get-EmdbDrive -Name Production $SyncTarget = Get-EmdbDrive -Name Sandbox Sync-EmdbVariable -Source $SyncSource -Target $SyncTarget |
If the -Mirror switch parameter is specified, the available user-defined variables of the source environment are mirrored to the target environment. This means that variables of the target environment that are not present in the environment of the source drive are deleted there
Sync-EmdbVariable -Source $SyncSource -Target $SyncTarget -Mirror |