Export-SPSiteSubscriptionSettings

建立網站訂閱資料的備份檔案。

Syntax

Export-SPSiteSubscriptionSettings
      [-Identity] <SPSiteSubscriptionPipeBind>
      -Path <String>
      [-AdminProperties]
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Force]
      [<CommonParameters>]

Description

Export-SPSiteSubscriptionSettings Cmdlet 會產生指定網站訂閱之訂閱資料儲存區中全部設定的備份檔案。

如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet

範例

--------------範例 1-----------------

Export-SPSiteSubscriptionSettings -Identity "https://siteCollection" -Path "C:\siteCollection_sitesubscriptionsettings.txt"

此範例會備份在 https://siteCollection 的訂閱設定儲存區。

--------------範例 2-----------------

$site = Get-SPSite https://siteCollection
Export-SPSiteSubscriptionSettings -Identity $site.SiteSubscription -Path "C:\siteCollection_sitesubscriptionsettings.txt"

此範例會使用網站訂用帳戶物件來備份 的 https://siteCollection 訂用帳戶設定存放區。

參數

-AdminProperties

指定只有系統管理員訂閱屬性才會匯出。 如果沒有設定這個參數,則只會匯出非系統管理員訂閱屬性。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Force

強制輸出備份檔案 (如有),以覆寫指定路徑中所有的現存檔案。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Identity

指定要備份其中資料的網站訂閱識別碼。

此類型必須是有效的 URL,格式 https://server_name 為 或網站訂用帳戶物件。

Type:SPSiteSubscriptionPipeBind
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Path

指定輸出檔案的位置。

此類型必須是有效的路徑,例如 C:/backupfile.back.。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition