Get-Archive

Returns Sitecore database archives.

Syntax

Get-Archive [[-Database] <Database>] [[-Name] <String>]

Detailed Description

The Get-Archive command returns Sitecore archives in context of the specified database.

© 2010-2017 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Name  <String>

Name of the archive to retrieve.

Aliases
Required? false
Position? 1
Default Value
Accept Pipeline Input? false
Accept Wildcard Characters? false

-Database  <Database>

Database for which the archives should be retrieved.

Aliases
Required? false
Position? 2
Default Value
Accept Pipeline Input? true (ByValue)
Accept Wildcard Characters? false

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Sitecore.Data.Database

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Sitecore.Data.Archiving.Archive

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE


PS master:\> Get-Archive -Database "master"

Name                                        Items
----                                        -----
archive                                         0
recyclebin                                   1950

results matching ""

    No results matching ""