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.

    1. On the Snapshot Policies list page, select the snapshot policy that you want to work with. If you need help finding the list page or the snapshot policy, see Listing Snapshot Policies.
    2. On the details page, select Associated File Systems.
    3. Select Attach File Systems.
    4. In the Attach File Systems panel, perform the following actions:
      1. Select the compartment that contains the file system that you want to attach to this snapshot policy.
      2. Use the check boxes to select one or more file systems that you want to attach to the snapshot policy.
    5. Select 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.