Advertisement
Some times we have to take the Backup for List with data form one site collection to another site collection using power shell, we can do our task simply
I am having a list with name "DotNetSharePoint" we have to refer the List with /Lists/YourListName.
Taking Back Up List from One Site Collection
Export-SPWeb "Site Url" -itemurl "/Lists/YourListName" -Path "YourPath"
Example:
Export-SPWeb -Identity "http://SharePoint:6789/sites/DotNet" -Itemurl "/Lists/DotNetSharePoint" -Path "c://DotNetSharePoint.cmp"
Restoring the Backup List to Another Site Collection.
Import-SPWeb -Identity "Site Url" -Path "YourPath" -force
Example:
Import-SPWeb -Identity "http://DotNetSharePoint:1234/sites/SharePoint" -Path "c://DotNetSharePoint.cmp" -force
"-force" is used to overtire the existing list having the same name.
I am having a list with name "DotNetSharePoint" we have to refer the List with /Lists/YourListName.
Taking Back Up List from One Site Collection
Export-SPWeb "Site Url" -itemurl "/Lists/YourListName" -Path "YourPath"
Example:
Export-SPWeb -Identity "http://SharePoint:6789/sites/DotNet" -Itemurl "/Lists/DotNetSharePoint" -Path "c://DotNetSharePoint.cmp"
Restoring the Backup List to Another Site Collection.
Import-SPWeb -Identity "Site Url" -Path "YourPath" -force
Example:
Import-SPWeb -Identity "http://DotNetSharePoint:1234/sites/SharePoint" -Path "c://DotNetSharePoint.cmp" -force
"-force" is used to overtire the existing list having the same name.
Heya! I'm at work browsing your blog from my new iphone 4!
ReplyDeleteJust wanted to say I love reading your blog and
look forward to all your posts! Carry on the outstanding work!
my blog :: cialis
suplemen pemutih badan
ReplyDelete