Backup Retention and Deletion Options for Protected Databases

Recovery Service enables you to recover your database in case of accidental or malicious damages, database termination, or if you disable automatic backups.

  • Recovery from Accidental or Malicious Damages

    In case of accidental or malicious damages to a database, Recovery Service supports recovery from backups for a period of 72 hours (3-days).

  • Recovery Upon Database Termination
    In the OCI Console, you can select one of these options to retain the database backups prior to terminating your database.
    • Retain backups according to the protection policy retention period - After you terminate a database, Recovery Service will continue to retain the protected database backups as per the Backup retention period defined in the associated protection policy. Long-term retention (LTR) backups are retained as per the specified LTR backup retention period.
    • Retain backups for 72 hours, then delete - Recovery Service will retain all backups, including LTR backups, for a period of 72 hours (3 days) after you terminate a database.

    After you terminate a database, the associated protected database resource enters the Delete Scheduled state, and remains in this state for a period of 72 hours (default delay) or until the retention period expires, depending on the option that you have selected to retain backups. Recovery Service automatically deletes the protected database resource and the database backups after the scheduled delay ends.

  • Recovery After You Disable Automatic Backups

    If you disable automatic backups for a database, then Recovery Service continues to retain the database backups as per the backup retention period defined in the protection policy.

    The protected database resource enters the Delete Scheduled state and remains in this state for the period defined in the protection policy. Recovery Service automatically deletes the protected database and the associated backups after the backup retention period ends.

Note

If the retention lock is enabled for the protection policy, then when you terminate a database or disable its automatic backups, Recovery Service will delete the protected database resource and its backups only after the retention period ends. See, Using Retention Lock to Protect Backups to learn about using policy retention lock.