Attaching a Snapshot Policy to a File System
Attach a snapshot policy to a file system.
A file system can only have a single snapshot policy associated with it. Use this information to attach a snapshot policy to a file system.
Use the
oci fs file-system update
command and the--filesystem-snapshot-policy-id
parameter to associate a snapshot policy and a file system:oci fs file-system update --file-system-id <file_system_OCID> --filesystem-snapshot-policy-id <snapshot_policy_OCID> [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Use UpdateFileSystem and
filesystemSnapshotPolicyId
to add a snapshot policy to a file system.For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.