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-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Name <String>

Name of the archive to retrieve.
Aliases
Text
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
Text
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

1
PS master:\> Get-Archive -Database "master"
2
3
Name Items
4
---- -----
5
archive 0
6
recyclebin 1950
Copied!

Related Topics