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. On the File Systems list page, select the file system that contains the snapshot that you want to work with. If you need help finding the list page or the file system, see Listing File Systems.
    2. On the details page, select Snapshots.
    3. In the Snapshots list, select the snapshot that you want to edit.
    4. 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, select Edit next to Expiration time, select a new time, and select Save changes.
      • To remove the snapshot's expiration time, select Remove next to Expiration time, then select Remove expiration time.
      • To add an expiration time to a snapshot, select Add next to Expiration time, select a time, and select 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.