Backup and Restore Applications

Preparation

  1. Open Windows PowerShell as administrator
  2. Run InstallBackupScript.ps1 (run on active trusted application pool) (has prompts for input)
    1. This script creates a scheduled task ('Anywhere365FailoverBackup') which runs script: "BackupApplications.ps1", every day.
  3. Fill in Prompts for:
    1. $domain, the domain for the user account
    2. $user, the user account to run the task
    3. $password, password belonging to the user
    4. $driveletter(optional), drive to place the scripts on ($domain\$user should have read/write access)
    5. $saveOnRemoteServer(optional), Save on remote location a. $server, server FQDNA fully qualified domain name (FQDN), sometimes also referred as an absolute domain name, is a domain name that specifies its exact location in the tree hierarchy of the Domain Name System (DNS). to write backup file to
  4. Configure properties in properties.ps1. Find the following lines and change them accordingly:
    1. $appBackupXml = "C:\program files\anywhere365\scripts\BackupApplications\A365_Replica\applicationsBackup.xml"
    2. $configBackupXml = "C:\program files\anywhere365\scripts\BackupApplications\A365_Replica\backup_config.xml"
    3. $configFile = "C:\Program Files\UCCUCC stands for Unified Contact Center and consists of a queue that can be handled by Agents Each Contact Center has its own settings, interactive voice response questions and Agent with specific skills. Agents can be member of, or sign up to, one or more Contact Centers.\config.xml"

    4. $overwriteReplicaCheck = $False

    5. $alternateVoicePolicy = "UCC Policy" #Use this property if there is a different voice policy used then "UCC Policy"

      Note Other properties are optional.

 

Single server scenario:

Configuring

No need to install sync applications.

  1. Verify properties in properties.ps1.
  2. Find the following line and change it accordingly:
    1. $configFile = "C:\Program Files\UCC\config.xml"
    2. $overwriteReplicaCheck = $False
    3. $alternateVoicePolicy = "UCC Policy" #Use this property if there is a different voice policy used then "UCC Policy"

On Fail Over

  1. Go to script folder
  2. Double Check properties for properties.ps1 (same step as in Preparation)
  3. Open Windows PowerShell as administrator
  4. Run Run sync_apps_and_failover_endpoints.ps1

 

Multi server scenario:

Configuring

  1. Open Windows PowerShell as administrator
  2. Run InstallSyncScript.ps1 (run on failover trusted application server) (has prompts for input)
    1. This script creates a scheduled task ('Anywhere365FailoverSync') which runs script: "SyncApplications.ps1", every day.
  3. Prompts for:
    1. $domain, the domain for the user account
    2. $user, the user account to run the task
    3. $password, password belonging to the user
    4. $driveletter(optional), drive to place the scripts on ($domain\$user should have read/write access)

On Fail over

  1. Go to script folder
  2. Double Check properties for properties.ps1 (same step as in Preparation)
  3. Open Windows PowerShell as administrator
  4. Run sync_apps_and_failover_endpoints.ps1

 

FailBack

During Fail over a failback folder is created on the passive server with the original backup files. This acts as a snapshot from the server that went down.

  1. Copy failback folder in sync_apps_and_failover_endpoints.ps1 script location to original server
  2. Double Check properties for properties.ps1 (same step as in Preparation)
  3. Open Windows PowerShell as administrator
  4. Run failback_apps_and_endpoints.ps1

 

Logging

Both scheduled tasks create a log in the installation folder "drive:\program files\anywhere365\scripts\backupapplications\logs"

Log entries are stamped with a start and end time

 

(Optional) Troubleshooting

Failure to install task:

Check the following settings.

  • Open Local Security Policy, by going to Start | Settings | Control Panel | Administrative Tools | Local Security Policy.
  • Navigate to Local Policy's | Security Options | Network Access: Do not allow storage of credentials or .NET Passports for network authentication
  • Disable this option.