This command creates a protected path.
Usage
protectedpath create --name NAME --protection-policy-id PROTECTION_POLICY_ID --source-dir SOURCE_DIR --local-tenant-id ID [--target-exported-dir PATH_ON_PEER] [--remote-tenant-name NAME] [--sync-interval SYNC_INTERVAL] [--capabilities ASYNC_REPLICATION | STARED_GLOBAL_NAMESPACE | REPLICATION_AND_GN | SYNC_REPLICATION] [--sync-disconnect-time TIME] [--lease-expiry-time TIME]
Required Parameters
| Sets a name for the protected path. |
| Specifies which protection policy to apply to 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: |
| Specifies to which local tenant the path belongs. |
Options
| 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.
|
| 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 protected path:
If SYNC_REPLICATION is specified, If not specified, ASYNC_REPLICATION is assumed. |
| 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. |
Example
vcli: admin> protectedpath create --name stream1 --protection-policy-id 1 --source-dir /