Creating a Snapshot

Create a snapshot of a File Storage file system. A snapshot is a point-in-time view of the file system.

After creation, snapshots are accessible under the root directory of the file system at ./snapshot/<snapshot_name>. If the snapshot is needed for only a limited time, you can add an expiration time. You can also create policy-based snapshots.
    1. Open the navigation menu and click Storage. Under File Storage, click File Systems.
    2. In the List scope section, under Compartment, select a compartment.
    3. Click the name of the file system that you want to take a snapshot of.
    4. On the file system's details page, under Resources, click Snapshots.
    5. Click Create Snapshot.
    6. In the Create Snapshot dialog box, provide the following information:

      • Name: Enter a name for the snapshot. It must be unique among all other snapshots for this file system. The name can't be changed. Avoid entering confidential information.
      • To tag the snapshot, click Show tagging options.

        If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.

    7. Click Create.
  • Use the fs snapshot create command and required parameters to create a snapshot:

    oci fs snapshot create --file-system-id <file_system_OCID> --name "<January1>" --expiration-time <2023-09-15T20:30Z>

    Avoid entering confidential information.

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreateSnapshot operation to create a snapshot.

    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.