Changing Snapshot Expiration Time

If you need to keep a policy-based snapshot beyond its retention period, you can change or remove its expiration time. You can also add expiration times to user-created snapshots and change them as needed.

Note

A snapshot without an expiration time persists unless it's manually deleted by a user or a new expiration time is set.

You can delete a snapshot manually at any time before it expires. Changes to the expiration time on a policy-based snapshot only apply to that snapshot, not the corresponding schedule or policy.

    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 system list, click the name of the file system used to create the snapshot.
    4. On the file system's details page, under Resources, click Snapshots.
    5. In the Snapshots list, click the name of the snapshot that you want to edit.
    6. On the snapshot's details page, change the expiration time of a snapshot using one of the following methods:
      • To change the snapshot's expiration time, click Edit next to Expiration time, select a new time, and click Save changes.
      • To remove the snapshot's expiration time, click Remove next to Expiration time, then click Remove expiration time.
      • To add an expiration time to a snapshot, click Add next to Expiration time, select a time, and click Save changes.
  • Use the oci fs snapshot update command and the --expiration-time parameter to change a snapshot's expiration time.

    oci fs snapshot update --snapshot-id <snapshot_OCID> --expiration-time <expiration_time> [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Use UpdateSnapshot and expirationTime to change or remove a snapshot's expiration time.

    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.