< Back

New-NsSnapshotProtectionService

Sat Jan 18, 2020 5:14 pm

NAME New-NsSnapshotProtectionService



SYNOPSIS

Creates a Snaphost based Protection Service for a filesystem





SYNTAX

New-NsSnapshotProtectionService -Path <String> -Name <String> [-Minutes <String>] [-Hours <String>] [-DaysOfMonth

<String>] [-Months <String>] [-DaysOfWeek <String>] [-Retain <Int32>] [-Recurse] [-NoWait] [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

Creates a Snaphost based Protection Service for a filesystem





PARAMETERS

-Path <String>



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Name <String>



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Minutes <String>



Required? false

Position? named

Default value 0

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Hours <String>



Required? false

Position? named

Default value 1

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-DaysOfMonth <String>



Required? false

Position? named

Default value *

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Months <String>



Required? false

Position? named

Default value *

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-DaysOfWeek <String>



Required? false

Position? named

Default value *

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Retain <Int32>



Required? false

Position? named

Default value 1

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Recurse [<SwitchParameter>]

Invoke to protect all child filesystems



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-NoWait [<SwitchParameter>]

Invoke to make the cmdlet start the job and return the GUID of the JobID



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

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, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

The cmdlet will wait (30sec) for the task to complete and return an NsSnapshotProtectionService object for the

created service

If -NoWait was invoked it will return the GUID of the creation task

If the cmdlet waits for more then 30sec it will return the GUID of the task.





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



PS C:\\temp>New-SnapshotProtectionService -Path p1/collab-02 -Name collab2 -Hours 6-18/3 -Retain 5 -Recurse



name : collab2

id : 15ae3e31-05cf-11e8-9b3d-773bc8b1c3e3

managerNodes : @{primary=}

isManager : True

runNumber : 0

recursive : True

sourceDataset : p1/collab-02

type : scheduled

state : disabled

isLocked : False

isSyncing : False

kstatId : 0000000000000006

schedules : {@{cron=* 6-18/3 * * *; scheduleName=c9a56193-8cd4-48f2-be9d-ca6d4cf5cde9; keepSource=5;

disabled=False; scheduleId=15ae3e30-05cf-11e8-9b3d-773bc8b1c3e3}}

isRunning : False

href : /hpr/services/collab2



Create a shecduled snaphot protection service running every 3 hours between 06:00 and 18:00 keeping 5 snaphosts

and including child filesystems











RELATED LINKS





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-NsFilesystem; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Remove-NsFilesystem [-Path] <string> [-NoForce] [-NoSnapshots] [-NoWait] [-WhatIf]

[-Confirm] [<CommonParameters>]



ModuleName : NexentaStor

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-NsFilesystem

Category : Function

Component :

Role :

Functionality :