Attaching a File System to a Snapshot Policy
Attach file systems to a snapshot policy.
Create at least one snapshot policy before you attach file systems to that policy.
A snapshot policy can apply to one or more file systems, up to a maximum of 100 file systems, so you might want to create the policy and its schedules first, and then associate that policy with many file systems. You can also attach a single snapshot policy to a file system.
- Open the navigation menu and click Storage. Under File Storage, click File Systems.
- (Optional) In the List scope section, under Compartment, select a compartment.
- Under Additional resources, click Snapshot Policies.
- In the Snapshot Policies list, click the name of the snapshot policy that you want to associate with a file system.
- On the snapshot policy's details page, under Resources, click Associated File Systems.
- Click Attach File Systems.
-
In the Attach File Systems panel, perform the following actions:
- Select the compartment that contains the file system that you want to attach to this snapshot policy.
- Use the check boxes to select one or more file systems that you want to attach to the snapshot policy.
- Click Attach File Systems.
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 associate a snapshot policy and 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.