Backup and restore a Lucent Sky AVM instance or cluster

2023/6/12 |

A Lucent Sky AVM instance can be backed up and restored along with the operating system. The configuration and data of a Lucent Sky AVM instance or cluster can also be backed up and restored separately from the operating system.

This article describes how to backup a Lucent Sky AVM instance or cluster and restore them at a later time.

In this article, you will learn how to:

  • Backup a Lucent Sky AVM instance along with the operating system.
  • Restore a Lucent Sky AVM instance along with the operating system.
  • Backup the configuration and data of a Lucent Sky AVM cluster.
  • Restore the configuration and data of a Lucent Sky AVM cluster.

At the end, you will be able to back up and restore a Lucent Sky AVM instance or cluster.

Backup a Lucent Sky AVM instance along with the operating system

Windows Server Backup can be used to backup a Lucent Sky AVM instance along with the operating system.

  1. Open Windows PowerShell as administrator and enter the following command to install and start Windows Server Backup:

     Install-WindowsFeature Windows-Server-Backup
     wbadmin.msc
    
  2. Select Local Backup in the Console Tree.
  3. On the Action menu, select Backup Once.
  4. On the Backup Options page, select Different options, and then select Next.
  5. On the Select backup configuration page, select Full server (recommended), and then select Next.
  6. On the Specify Destination Type page, select the type of backup location, and then select Next.
  7. On the Select Backup Destination page, select the backup location, and then select Next.
  8. On the Confirmation page, select Backup.
  9. Once the backup has completed, select Close.
  10. For Lucent Sky AVM cluster, repeat the steps above on each node of the cluster.

If the Lucent Sky AVM instance is running on a virtual machine, you may be able to export the virtual machine with the following methods:

Using the methods above might not be supported scenarios.

Restore a Lucent Sky AVM instance along with the operating system

Windows Server Backup can be used to restore a Lucent Sky AVM instance along with the operating system.

  1. Start the installation of the Windows Server operating system that is the same version as the backup.
  2. Select the installation language, and then select Next.
  3. Select Repair your computer, and the follow the on-screen prompts to recover from the backup.
  4. For Lucent Sky AVM cluster, repeat the steps above on each node of the cluster.

Backup the configuration and data of a Lucent Sky AVM cluster

  1. On each node of the Lucent Sky AVM cluster, open Windows PowerShell as administrator and enter the following command to to stop the CLEAR Engine service and backup the instance configuration files to the backup location:

     # Replace <BackupDirectory> with path to the directory to store the backup files
     $backupDirectory = "<BackupDirectory>"
     Stop-Service "CLEAR Engine"
     Copy-Item -Path "C:\Program Files\Lucent Sky\CLEAR Engine\SkyAnalyzer.config" -Destination "$backupDirectory\SkyAnalyzer.config"
     Copy-Item -Path "C:\Program Files\Lucent Sky\CLEAR Engine\SkyAnalyzer.Engine.exe.config" -Destination "$backupDirectory\SkyAnalyzer.Engine.exe.config"
    
  2. On the server containing the storage of the cluster, open Windows PowerShell as administrator, and then enter the following command to backup the content of the cluster storage to the backup location:

     # Replace <BackupDirectory> with path to the directory to store the backup files
     $backupDirectory = "<BackupDirectory>"
     # Replace C:\ProgramData\Lucent Sky\CLEAR Engine if using a custom file system storage location
     $fileSystemStorage = "C:\ProgramData\Lucent Sky\CLEAR Engine"
     Copy-Item -Path "$fileSystemStorage" -Destination "$backupDirectory\FileSystemStorage" -Recurse
    

    To learn more about locating the file system storage location, view the following article in the Lucent Sky Knowledge Base:
    Install Lucent Sky AVM license

  3. On the server containing the database of the cluster, open Windows PowerShell as administrator, and then enter the following command to backup the Lucent Sky AVM database:

     # Replace <BackupDirectory> with path to the directory to store the backup files
     $backupDirectory = "<BackupDirectory>"
     # Replace .\SQLEXPRESS if using a custom SQL Server instance
     $sqlInstance = ".\SQLEXPRESS"
     sqlcmd -S $sqlInstance -Q "BACKUP DATABASE SkyAnalyzer TO DISK = '$backupDirectory\Database.bak'"
    

    The SQL Server service account (such as NT Service\MSSQLSERVER) must have the Write permission to the backup directory.

    To learn more about creating a backup for a SQL Server database, view the following article on the Microsoft Learn website:
    Quickstart: Backup and restore a SQL Server database on-premises

  4. Optionally, on each node of the Lucent Sky AVM cluster, open Windows PowerShell as administrator and enter the following command to start the CLEAR Engine service:

     Start-Service "CLEAR Engine"
    

Restore the configuration and data of a Lucent Sky AVM cluster

  1. On each node of the Lucent Sky AVM cluster, open Windows PowerShell as administrator and enter the following command to to stop the CLEAR Engine service and restore the instance configuration files from the backup location:

     # Replace <BackupDirectory> with path to the directory to store the backup files
     $backupDirectory = "<BackupDirectory>"
     Stop-Service "CLEAR Engine"
     Copy-Item -Path "$backupDirectory\SkyAnalyzer.config" -Destination "C:\Program Files\Lucent Sky\CLEAR Engine\SkyAnalyzer.config"
     Copy-Item -Path "D:\Backup\SA1234567890\SkyAnalyzer.Engine.exe.config" -Destination "C:\Program Files\Lucent Sky\CLEAR Engine\SkyAnalyzer.Engine.exe.config"
    
  2. On the server containing the storage of the cluster, open Windows PowerShell as administrator, and then enter the following command to restore the content of the cluster storage from the backup location:

     # Replace <BackupDirectory> with path to the directory to store the backup files
     $backupDirectory = "<BackupDirectory>"
     # Replace C:\ProgramData\Lucent Sky\CLEAR Engine if using a custom file system storage location
     $fileSystemStorage = "C:\ProgramData\Lucent Sky\CLEAR Engine"
     Copy-Item -Path "$backupDirectory\FileSystemStorage" -Destination "$fileSystemStorage" -Recurse -Force
    

    To learn more about locating the file system storage location, view the following article in the Lucent Sky Knowledge Base:
    Install Lucent Sky AVM license

  3. On the server containing the database of the cluster, open Windows PowerShell as administrator, and then enter the following command to restore the Lucent Sky AVM database:

     # Replace <BackupDirectory> with path to the directory to store the backup files
     $backupDirectory = "<BackupDirectory>"
     # Replace .\SQLEXPRESS if using a custom SQL Server instance
     $sqlInstance = ".\SQLEXPRESS"
     sqlcmd -S $sqlInstance -Q "RESTORE DATABASE SkyAnalyzer FROM DISK = '$backupDirectory\Database.bak'"
    

    The SQL Server service account (such as NT Service\MSSQLSERVER) must have the Read permission to the backup location.

    To learn more about restoring a backup for a SQL Server database, view the following article on the Microsoft Learn website:
    Quickstart: Backup and restore a SQL Server database on-premises

  4. On each node of the Lucent Sky AVM cluster, open Windows PowerShell as administrator and enter the following command to to start the CLEAR Engine service:

     Start-Service "CLEAR Engine"