This command creates a protected path.
Usage
protectedpath create --name NAME
--source-dir SOURCE_DIR
--local-tenant-id ID
[--protection-policy-id PROTECTION_POLICY_ID]
[--target-exported-dir PATH_ON_PEER]
[--remote-target-id ID]
[--remote-tenant-name NAME]
[--sync-interval SYNC_INTERVAL]
[--capabilities ASYNC_REPLICATION|GLOBAL_ACCESS|ASYNC_REPLICATION_AND_GLOBAL_ACCESS|SYNC_REPLICATION]
[--source-member-capabilities ASYNC_REPLICATION|ASYNC_REPLICATION_AND_GLOBAL_ACCESS]
[--sync-disconnect-time TIME]
[--lease-expiry-time TIME]
[--enable-bucket-replication|--disable-bucket-replication]
Required Parameters
| Sets a name for the protected path. |
| Specifies the path to a directory to back up. A snapshot of this directory will be taken periodically on the schedule configured in the protection policy. For example: Source paths can be on or above subsystems, containing one or more subsystems. In this case, the target cannot be at or inside a subsystem. |
| Specifies to which local tenant the path belongs. |
Options
| Specifies which protection policy to apply, for an async replication protected path.
|
| For asynchronous replication or global access, specify the path on the destination peer where the data should be replicated. This must be a directory that does not yet exist on the destination peer. Subsystems and volumes cannot be created at or in the target path while the Async Replication stream is in active state.
|
| This option specifies a destination replication peer for global access or sync replication, for the first member stream of the protected path. For async replication, the destination replication peer is specified within the protection policy, which is specified by |
| If |
| For asynchronous replication, the maximum duration gap between restore points of members in the replication group, in seconds. Guarantees that a common restore point exists between group members within the specified duration. Default value: 86400 seconds (1 day) |
| The mode or purpose of the first member stream of the protected path:
If SYNC_REPLICATION is specified, If not specified, ASYNC_REPLICATION is assumed. |
| Specifies the capabilities of the source path in the event of replication failover, if
|
| The period of time, in seconds, after which a primary and secondary cluster, configured for synchronous replication, will revert to standalone clusters (and no longer replicate data) if communication between them is lost. Default value: 45 seconds |
| For global access, the duration for which data that was already requested at the destination path can be read locally from cache without the destination peer requesting it from the source peer. When the lease expires, the cache is invalidated and the next read request for the data is requested again from the source peer. |
| Enables bucket replication for the protected path. Bucket replication cannot be enabled or disabled after the protected path is created. Bucket replication recreates a bucket for you on each destination peer of the protected path. The bucket is configured with the properties of the source bucket on the replication source peer. For more details about bucket replication and the default setting, see S3 Access to Replicated Data. |
| Configures the protected path without bucket replication. Bucket replication cannot be enabled or disabled after the protected path is created. Bucket replication recreates a bucket for you on each destination peer of the protected path. The bucket is configured with the properties of the source bucket on the replication source peer. For more details about bucket replication and the default setting, see S3 Access to Replicated Data. |
Example
vcli: admin> protectedpath create --name stream1 --protection-policy-id 1 --source-dir /