Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
1 like 0 dislike
1.3k views
in SharePoint Server by 66 69 85
In my SharePoint farm, I'm trying to take a backup of the WSP file, before Updating or Deleting the WSP (SPSolution).
I was trying to get the backup from Central Adminstratre but I didn't find anything. Is there a quick, safe way to backup the WSP file?

1 Answer

2 like 0 dislike
by 159 200 385
selected by
 
Best answer

How to Backup SharePoint WSP Solution file using PowerShell

To export or take a backup for a SharePoint WSP solution package, you can use the below PowerShell script that helps you to download a specific WSP solution in SharePoint 2019/2016/2013.

$SPfarm = Get-SPFarm    # Get SPFarm object
$WSPfile = $SPfarm.Solutions.Item("WSPSolutionName.wsp").SolutionFile  
$WSPfile.SaveAs("D:\WSPBackup\WSPSolutionName.wsp") 

Backup all WSP SharePoint Solutions using PowerShell

If you want to download and back up all deployed WSP solutions in SharePoint Server, you have to use this WSP SharePoint Extractor PowerShell Script that would help you extract and back up all WSP SharePoint Solutions on your farm with versioning and logging capabilities.

Backup all WSP SharePoint Solutions using PowerShell

Seel Also WSP Deployer: Deploy WSP SharePoint 2019 Solutions using PowerShell

If you don’t ask, the answer is always NO!
...