Deploy Lanteria HR for Migration/Restoration
  • 24 Feb 2023
  • 1 Minute to read
  • Dark
    Light

Deploy Lanteria HR for Migration/Restoration

  • Dark
    Light

Article summary

To deploy Lanteria HR on the server the solution is being migrated to or restore Lanteria HR, follow the steps below:

  1. Run PowerShell.
  2. In PowerShell, run add-pssnapin Microsoft.sharepoint.powershell.
  3. Next, run add-spsolution -literalpath <path to file>\ Lanteria.EffectiveStaff.wsp.
  4. Run install-spsolution –identity Lanteria.LanteriaHR.wsp –webapplication (your web application name) –time:$default –gacdeployment.
  5. To restore the content database backup on the target database server, you can use the command or follow the steps below.

    Command: RESTORE DATABASE [WSS_Content_ES] FROM DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\WSS_Content_ES_Primary.bak' WITH FILE = 1, MOVE N'WSS_Content_ES_Primary' TO N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\WSS_Content_ES.mdf', MOVE N'WSS_Content_ES_Primary_log' TO N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\WSS_Content_ES_log.LDF', NOUNLOAD, STATS = 10 GO

    Steps to restore the content database:

    1. Connect to the relevant instance of the SQL Server Database Engine, and in the Object Explorer, click the server name to expand the server tree.
    2. Right-click Databases, and click Restore Database. The Restore Database dialog box opens.
    3. On the General page, use the Source section to specify the source and location of the backup sets to restore.
    4. In the Destination section, the Database box is automatically populated with the name of the database to be restored. To change the name of the database, enter the new name in the Database box.
    5. In the Restore to box, leave the default as To the last backup taken.
    6. To specify the new location of the database files, select the Files page, and then click Relocate all files to folder. Provide a new location for the Data file folder and Log file folder.
    7. Click OK.
  6. Restore the ESDB backup on a target server.
  7. Restore the SharePointLearningKit backup on a target server.
  8. Mount the restored content database to the target web application:
    Mount-SPContentDatabase –webapplication (your web application name) –databaseserver (your database server name) –name (name of the restored database).
  9. Run enable-spfeature –identity lanteria.es.sharepoint_lanteriasite –url (your site collection url).
  10. Run enable-spfeature –identity lanteria.es.sharepoint_lanteriaweb –url (your LanteriaHR site url).
  11. Run enable-spfeature –identity lanteria.es.sharepoint_lanteriacontent –url (your LanteriaHR site url).

Was this article helpful?