Create Lanteria HR Backup Package
  • 24 Feb 2023
  • 1 Minute to read
  • Dark
    Light

Create Lanteria HR Backup Package

  • Dark
    Light

Article summary

To create the Lanteria HR backup, you are to perform the following two steps:

Download Solution Files

The first step in the backup process is downloading the Lanteria HR solution files. Please follow the steps below:

  1. Access the SharePoint WFE of the farm, where Lanteria HR is installed.
  2. Download the solution files from farm solution storage. This can be done with the following PowerShell script:

    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

    $solutioname = " " #soltuion name here

    $path = " " #destination folder path

    $farm = [Microsoft.sharepoint.administration.spfarm]::Local

    $solution = $farm.Solutions[$solutioname]

    $file = $solution.SolutionFile

    $file.SaveAs($path +"/" + $solutioname)

    Required solution files:

    • Lanteria.EffectiveStaff.wsp
    • SharePointLearningKit.wsp

Back up the Content Database

After the solution files have been downloaded, proceed to creating the content database backup.

  1. Access the SharePoint WFE of the farm, where LanteriaHR is installed.
  2. Disable the custom features with the following PowerShell scripts:

    $webURL = " " #URL of the LanteriaHR site, i.e. http://hr-uat.test/es/

    $siteURL = " " #URL of the parent LanteriaHR site collection, i.e. http:// hr-uat.test

    Disable-SPFeature lanteria.es.sharepoint_lanteriasite -URL $siteURL -confirm:$false

    Disable-SPFeature lanteria.es.sharepoint_lanteriaweb -URL $webURL -confirm:$false

    Disable-SPFeature lanteria.es.sharepoint_lanteriacontent -URL $webURL -confirm:$false

  3. Check the content Database Name of the parent LanteriaHR site collection using Central Administration > Application Management > View All Site Collections.
  4. Access the SharePoint farm SQL instance with SQL Management Studio.
  5. Select and back up the content database.
  6. Select and back up SharePointLearningKit Database.
  7. Select and back up ESDB_<guid> database.
  8. Enable the features back:

    Enable-SPFeature lanteria.es.sharepoint_lanteriasite -URL $siteURL

    Enable-SPFeature lanteria.es.sharepoint_lanteriaweb -URL $webURL

    Enable-SPFeature lanteria.es.sharepoint_lanteriacontent -URL $webURL

After running the steps above, you should get the following files:

  • Lanteria.EffectiveStaff.wsp
  • SharePointLearningKit.wsp
  • Content Database backup
  • SharePointLearningKit Database backup (for the Learning module only)
  • ESDB Database backup

Was this article helpful?