Frage

Gibt es noch andere Möglichkeiten eine Website als Lösung in Sharepoint Foundation 2010, außer durch „Site-Einstellungen -> Site-Aktionen -> Website als Vorlage speichern“ exportieren?
Scheint die einzige Möglichkeit zu sein, nur um sicher zu machen ich nichts fehlt (durch den Designer wahrscheinlich? Gibt es eine Option im Designer, aber es bringt Sie zu derselben „Website als Vorlage speichern“ Seite)

Danke!

War es hilfreich?

Lösung

In der out-of-the-Box-Benutzeroberfläche, die der einzige Ort ist, eine Website zu exportieren, aber beachten Sie, dass im Gegensatz zu sp2007 dies jetzt Ihrer Website als WSP-Paket

Export

Im Objektmodell gibt es ein paar Möglichkeiten, um die Website zu exportieren:

  • SPWeb.SaveAsTemplage
  • SPSolutionExporter.ExportWebToGallery
  • SPSolutionExporter.ExportWeb

Andere Tipps

AS part of Microsoft Course 10325A - Windows PowerShell 2.0 - backup / restore site collections.

PowerShell creates Cabinet files or .CAB files - http://en.wikipedia.org/wiki/Cabinet_(file_format). One nice thing about PowerShell is automation and you can easily perform the same task as you would via SharePoint 2010 Central Administration, in the Backup and Restore section.

Being scripted, you can provide any extension for your backup file. Extract and View the archive contents and modify, using "Extract.exe", provided with early versions of Windows and replaced in XP with "Expand.exe".

Rebuilding modified CAB files, is achieved with "MakeCab.exe", the Microsoft Cabinet SDK "CabArc.EXE" or any application supporting "application/vnd.ms-cab-compressed".

To restore a site collection using Windows Power Shell, from the Start menu, All Programs > Microsoft SharePoint 2010 Products.

Open SharePoint 2010 Management Shell (launch with Administrator rights, if required by right click and choosing "Run as Administrator").

Backup-SPConfigurationDatabase
Backup-SPFarm
Backup-SPSite
Get-SPBackupHistory
Restore-SPFarm
Restore-SPSite

The most fitting to your requirement;

Backup-SPSite
Restore-SPSite

Backup-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak
Restore-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak

Great book filled with automation scripting with PowerShell, the book by Gary Lapointe - Automating Microsoft SharePoint 2010 Administration with Windows PowerShell 2.0

.Net namespace for C# code within PowerShell or PowerShell within.Net applications;

Microsoft.SharePoint.Publishing.Administration

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top