Export-SPWeb script to get backup all lists and libraries

Wrote this Powershell script according to my company’s needs,but you can fork and use it if you like Export-SPWeb Script to get backup of all lists/libraries in a site collection. But I’ll also share it here: [code language=”powershell”] Add-PSSnapin Microsoft.Sharepoint.Powershell $site = Get-SPSite $path = "C:\Backup2015\ListBackups" $serverurlpath ="" $listurlpath="" $listurlwithoutformat="" $dosyapath ="" $itemURLNEW="" foreach($web in $site.AllWebs){ $serverurlpath=$web.Url $serverlistsurlpath=$web.ServerRelativeUrl -replace "/","\" $serverurlport = ([System.Uri]$serverurlpath).Port $serverurlhost = ([System.Uri]$serverurlpath).Host.Split(‘.-‘) -join "_" if($serverurlport -eq "80") { if(!(Test-Path -Path ($path + "\" + $serverurlport))) { New-Item -Path ($path + "\" + $serverurlport) -Type Directory }…

Read More