< Back
Update-SVTpolicyRule
Post
NAME Update-SVTpolicyRule
SYNOPSIS
Edits an existing HPE SimpliVity backup policy
SYNTAX
Update-SVTpolicyRule [-PolicyName] <String> [-RuleNumber] <String> [-All] [[-ClusterName] <String>] [[-StartTime]
<String>] [[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>] [[-AppConsistent]]
[[-ConsistencyType] <String>] [<CommonParameters>]
Update-SVTpolicyRule [-PolicyName] <String> [-RuleNumber] <String> [-WeekDay] <Array> [[-ClusterName] <String>]
[[-StartTime] <String>] [[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>]
[[-AppConsistent]] [[-ConsistencyType] <String>] [<CommonParameters>]
Update-SVTpolicyRule [-PolicyName] <String> [-RuleNumber] <String> [-MonthDay] <Array> [[-ClusterName] <String>]
[[-StartTime] <String>] [[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>]
[[-AppConsistent]] [[-ConsistencyType] <String>] [<CommonParameters>]
Update-SVTpolicyRule [-PolicyName] <String> [-RuleNumber] <String> [-LastDay] [[-ClusterName] <String>]
[[-StartTime] <String>] [[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>]
[[-AppConsistent]] [[-ConsistencyType] <String>] [<CommonParameters>]
DESCRIPTION
Edits an existing HPE SimpliVity backup policy. You must specify the policy name and the rule number
to be replaced. This cmdlet is very similar to Set-SVTpolicyRule, except it replaces a rule rather than adding one.
Rule numbers start from 0 and increment by 1. Use Get-SVTpolicy to identify the rule you want to replace
PARAMETERS
-PolicyName <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RuleNumber <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WeekDay <Array>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MonthDay <Array>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LastDay [<SwitchParameter>]
Required? true
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-All [<SwitchParameter>]
Required? true
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ClusterName <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-StartTime <String>
Required? false
Position? 5
Default value 00:00
Accept pipeline input? false
Accept wildcard characters? false
-EndTime <String>
Required? false
Position? 6
Default value 00:00
Accept pipeline input? false
Accept wildcard characters? false
-FrequencyMin <String>
Required? false
Position? 7
Default value 1440
Accept pipeline input? false
Accept wildcard characters? false
-RetentionDay <Int32>
Default is once per day
Required? false
Position? 8
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-AppConsistent [<SwitchParameter>]
Required? false
Position? 9
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ConsistencyType <String>
Required? false
Position? 10
Default value NONE
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
HPE.SimpliVity.Task
NOTES
There seems to be a bug, you cannot update rule 0 if there are other rules.
You can use Set-SVTpolicyRule with the -ReplaceRules parameter to remove all rules and start again.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Update-SVTPolicyRule -Policy Gold -RuleNumber 2 -Weekday Mon,tue,wed,thu,fri -ClusterName Prod -StartTime
20:00 -EndTime 23:00
Replaces rule number 2 in the specified policy with a new weekday policy. Uses default retention and frequency,
both 1 day
RELATED LINKS
SYNOPSIS
Edits an existing HPE SimpliVity backup policy
SYNTAX
Update-SVTpolicyRule [-PolicyName] <String> [-RuleNumber] <String> [-All] [[-ClusterName] <String>] [[-StartTime]
<String>] [[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>] [[-AppConsistent]]
[[-ConsistencyType] <String>] [<CommonParameters>]
Update-SVTpolicyRule [-PolicyName] <String> [-RuleNumber] <String> [-WeekDay] <Array> [[-ClusterName] <String>]
[[-StartTime] <String>] [[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>]
[[-AppConsistent]] [[-ConsistencyType] <String>] [<CommonParameters>]
Update-SVTpolicyRule [-PolicyName] <String> [-RuleNumber] <String> [-MonthDay] <Array> [[-ClusterName] <String>]
[[-StartTime] <String>] [[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>]
[[-AppConsistent]] [[-ConsistencyType] <String>] [<CommonParameters>]
Update-SVTpolicyRule [-PolicyName] <String> [-RuleNumber] <String> [-LastDay] [[-ClusterName] <String>]
[[-StartTime] <String>] [[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>]
[[-AppConsistent]] [[-ConsistencyType] <String>] [<CommonParameters>]
DESCRIPTION
Edits an existing HPE SimpliVity backup policy. You must specify the policy name and the rule number
to be replaced. This cmdlet is very similar to Set-SVTpolicyRule, except it replaces a rule rather than adding one.
Rule numbers start from 0 and increment by 1. Use Get-SVTpolicy to identify the rule you want to replace
PARAMETERS
-PolicyName <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RuleNumber <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WeekDay <Array>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MonthDay <Array>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LastDay [<SwitchParameter>]
Required? true
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-All [<SwitchParameter>]
Required? true
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ClusterName <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-StartTime <String>
Required? false
Position? 5
Default value 00:00
Accept pipeline input? false
Accept wildcard characters? false
-EndTime <String>
Required? false
Position? 6
Default value 00:00
Accept pipeline input? false
Accept wildcard characters? false
-FrequencyMin <String>
Required? false
Position? 7
Default value 1440
Accept pipeline input? false
Accept wildcard characters? false
-RetentionDay <Int32>
Default is once per day
Required? false
Position? 8
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-AppConsistent [<SwitchParameter>]
Required? false
Position? 9
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ConsistencyType <String>
Required? false
Position? 10
Default value NONE
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
HPE.SimpliVity.Task
NOTES
There seems to be a bug, you cannot update rule 0 if there are other rules.
You can use Set-SVTpolicyRule with the -ReplaceRules parameter to remove all rules and start again.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Update-SVTPolicyRule -Policy Gold -RuleNumber 2 -Weekday Mon,tue,wed,thu,fri -ClusterName Prod -StartTime
20:00 -EndTime 23:00
Replaces rule number 2 in the specified policy with a new weekday policy. Uses default retention and frequency,
both 1 day
RELATED LINKS