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.

    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. In the File Systems list, click the name of the file system that you want to associate with a snapshot policy.
    4. On the file system's details page, under Resources, click Snapshot Policy.
    5. Click Attach Snapshot Policy. The Attach Snapshot Policy panel is displayed.
      Note

      If Attach Snapshot Policy is unavailable, the file system is already associated with a snapshot policy.
    6. Compartment: Choose the compartment that contains the snapshot policy that you want to associate with this file system.
    7. Select a snapshot policy.
      Note

      A snapshot policy can apply to many file systems, but a file system can only have one snapshot policy.
    8. Click Attach Snapshot Policy.
  • 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.