|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcConfigBackup
NAME
Get-NcConfigBackup
SYNOPSIS
Return a list of configuration backups in the cluster.
SYNTAX
Get-NcConfigBackup [[-Node] <String[]>] [[-Name] <String[]>] [-Attributes <C
onfigBackupInfoType>] [-Controller <NcController[]>] [<CommonParameters>]
Get-NcConfigBackup -Template [-Controller <NcController[]>] [<CommonParamete
rs>]
Get-NcConfigBackup -Query <ConfigBackupInfoType> [-Attributes <ConfigBackupI
nfoType>] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Return a list of configuration backups in the cluster.
PARAMETERS
-Node <String[]>
One or more nodes that own configuration backups. Data ONTAP wildcards
are permitted.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Name <String[]>
The name of one or more configuration backup. Data ONTAP wildcards are
permitted.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attributes <ConfigBackupInfoType>
For improved scalability in large clusters, provide a ConfigBackupInfoTy
pe object with various fields set to indicate which fields to return on
all objects. Undesired fields should remain set to null. Use "Get-NcCo
nfigBackup -Template" to get the initially empty ConfigBackupInfoType ob
ject. If not specified, all data is returned for each object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Template
Specify to get an empty ConfigBackupInfoType object for use with advance
d queries involving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <ConfigBackupInfoType>
For advanced queries, provide a ConfigBackupInfoType object with various
fields set to indicate which records to retrieve. Other fields should
remain set to null. Use "Get-NcConfigBackup -Template" to get the initi
ally empty ConfigBackupInfoType object.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
DataONTAP.C.Types.ConfigBackup.ConfigBackupInfoType
NOTES
Category: config-backup
API: config-backup-info-get-iter
Family: cluster
-------------- Example 1 --------------
C:\PS>Get-NcConfigBackup -Node fas3070cluster01-01
Get the config backups owned by the node fas3070cluster01-01.
Created Node BackupName
BackupSize BackupType
------- ---- ----------
---------- ----------
5/27/2012 fas3070cluster01-01 fas3070cluster01.weekly.2012-05-27.00_
15_00.7z 12.3 MB cluster
6/3/2012 fas3070cluster01-01 fas3070cluster01.weekly.2012-06-03.00_
15_00.7z 13.4 MB cluster
6/6/2012 fas3070cluster01-01 fas3070cluster01.daily.2012-06-06.00_1
0_00.7z 10.6 MB cluster
6/7/2012 fas3070cluster01-01 fas3070cluster01.daily.2012-06-07.00_1
0_02.7z 10.9 MB cluster
6/7/2012 fas3070cluster01-01 fas3070cluster01.8hour.2012-06-07.02_1
5_06.7z 11.0 MB cluster
6/7/2012 fas3070cluster01-01 fas3070cluster01.8hour.2012-06-07.10_1
5_00.7z 11.1 MB cluster
-------------- Example 2 --------------
C:\PS>$q = Get-NcConfigBackup -Template
$epoch = New-Object DateTime @(1970,1,1)
$low = ((New-Object DateTime @(2012,6,6)) - $epoch).TotalSeconds
$high = ((New-Object DateTime @(2012,6,8)) - $epoch).TotalSeconds
$q.Node = "fas3070cluster01-01"
$q.BackupCreationTime = "$low..$high"
Get-NcConfigBackup -Query $q
Get all of the config backups on node fas3070cluster01-01 created between Ju
ne 6th, 2012 and June 8th, 2012.
Created Node BackupName
BackupSize BackupType
------- ---- ----------
---------- ----------
6/6/2012 fas3070cluster01-01 fas3070cluster01.daily.2012-06-06.00_1
0_00.7z 10.6 MB cluster
6/7/2012 fas3070cluster01-01 fas3070cluster01.daily.2012-06-07.00_1
0_02.7z 10.9 MB cluster
6/7/2012 fas3070cluster01-01 fas3070cluster01.8hour.2012-06-07.02_1
5_06.7z 11.0 MB cluster
6/7/2012 fas3070cluster01-01 fas3070cluster01.8hour.2012-06-07.10_1
5_00.7z 11.1 MB cluster
RELATED LINKS
Copy-NcConfigBackup
Remove-NcConfigBackup
Rename-NcConfigBackup
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|