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. Open the navigation menu and click Storage. Under File Storage, click File Systems.
    2. (Optional) In the List scope section, under Compartment, select a compartment.
    3. Under Additional resources, click Snapshot Policies.
    4. In the Snapshot Policies list, click the name of the snapshot policy that you want to associate with a file system.
    5. On the snapshot policy's details page, under Resources, click Associated File Systems.
    6. Click Attach File Systems.
    7. 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.
    8. 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.