< Back

Set-SVTpolicyRule

Tue Jan 14, 2020 2:16 am

NAME Set-SVTpolicyRule



SYNOPSIS

Create/Add/Replace rule to a HPE SimpliVity backup policy





SYNTAX

Set-SVTpolicyRule [-PolicyName] <String> [-All] [[-ClusterName] <String>] [[-StartTime] <String>] [[-EndTime]

<String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>] [[-AppConsistent]] [[-ConsistencyType] <String>]

[[-ReplaceRules]] [<CommonParameters>]



Set-SVTpolicyRule [-PolicyName] <String> [-WeekDay] <Array> [[-ClusterName] <String>] [[-StartTime] <String>]

[[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>] [[-AppConsistent]] [[-ConsistencyType]

<String>] [[-ReplaceRules]] [<CommonParameters>]



Set-SVTpolicyRule [-PolicyName] <String> [-MonthDay] <Array> [[-ClusterName] <String>] [[-StartTime] <String>]

[[-EndTime] <String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>] [[-AppConsistent]] [[-ConsistencyType]

<String>] [[-ReplaceRules]] [<CommonParameters>]



Set-SVTpolicyRule [-PolicyName] <String> [-LastDay] [[-ClusterName] <String>] [[-StartTime] <String>] [[-EndTime]

<String>] [[-FrequencyMin] <String>] [[-RetentionDay] <Int32>] [[-AppConsistent]] [[-ConsistencyType] <String>]

[[-ReplaceRules]] [<CommonParameters>]





DESCRIPTION

Create/Add/Replace rule to a HPE SimpliVity backup policy





PARAMETERS

-PolicyName <String>

The backup policy to add backup rules to



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WeekDay <Array>

Specifies the Weekday(s) to run backup, e.g. "Mon", "Mon,Tue" or "Mon,Wed,Fri"



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-MonthDay <Array>

Specifies the day(s) of the month to run backup, e.g. 1 or 1,11,21



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LastDay [<SwitchParameter>]

Specifies the last day of the month to run a backup



Required? true

Position? 2

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-All [<SwitchParameter>]

Specifies every day to run backup



Required? true

Position? 2

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-ClusterName <String>

Specifies the destination HPE SimpliVity cluster name



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-StartTime <String>

Specifies the start time (24 hour clock) to run backup, e.g. 22:00



Required? false

Position? 4

Default value 00:00

Accept pipeline input? false

Accept wildcard characters? false



-EndTime <String>

Specifies the start time (24 hour clock) to run backup, e.g. 00:00



Required? false

Position? 5

Default value 00:00

Accept pipeline input? false

Accept wildcard characters? false



-FrequencyMin <String>

Specifies the frequency, in minutes (how many times a day to run). Must be between 1 and 1440 minutes (24

hours).



Required? false

Position? 6

Default value 1440

Accept pipeline input? false

Accept wildcard characters? false



-RetentionDay <Int32>

Specifies the retention, in days.



Required? false

Position? 7

Default value 1

Accept pipeline input? false

Accept wildcard characters? false



-AppConsistent [<SwitchParameter>]



Required? false

Position? 8

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-ConsistencyType <String>



Required? false

Position? 9

Default value NONE

Accept pipeline input? false

Accept wildcard characters? false



-ReplaceRules [<SwitchParameter>]

If this switch is specified, all existing rules in the specified backup policy are removed and replaced with

this new rule.



Required? false

Position? 10

Default value False

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.SipmliVity.Task





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-SVTpolicyRule -PolicyName Silver -All -ClusterName ProductionCluster -ReplaceRules



Replaces all existing backup policy rules with a new rule, backup everyday to the specified cluster, using the

default

start time (00:00), end time (00:00), Frequency (1440, or once per day), retention of 1 day and no application

consistency.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-SVTpolicyRule -PolicyName Silver -Weekday Mon,Wed,Fri -ClusterName Cluster01 -RetentionDay 7



Adds a new rule to the specified policy to run backups on the specified weekdays and retain backup for a week.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Set-SVTpolicyRule -PolicyName Silver -Last -ClusterName Prod -RetentionDay 30 -AppConsistent

-ConsistencyType VSS



Adds a new rule to the specified policy to run an application consistent backup on the last day of each month,

retaining it for 1 month.











RELATED LINKS