Enable Continuous Backup
Enable continuous backup of an Amazon S3 bucket to safeguard data from accidental deletion of objects. With continuous backup enabled, a backup job runs daily and creates a recovery point for restoration.
Prerequisites
-
The Object Store instance must be on the standard plan. For more information, see Updating Service Plan to Standard.
-
Versioning must be enabled on the instance before enabling continuous backup. If versioning is disabled, AWS will not allow configuring continuous backup.
Context
|
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
backupEnabled |
Boolean |
Yes |
Enables continuous backup. |
|
backupRetentionPeriod |
Integer |
No |
Number of days backup is retained, between 1 and 35. If not provided, the Object Store service sets a retention period of 14 days by default. |
Continuous backup is disabled by default. Continuous backup are immutable to ensure data protection and compliance. If a backed-up instance is deleted, the backup data is not removed immediately. Instead, it is retained as recovery points and remains available for the configured retention period.
Procedure
cf create-service <service_instance_name> -c '{"backupEnabled":true,"backupRetentionPeriod":<n>}'
cf update-service <service_instance_name> -c '{"backupEnabled":true,"backupRetentionPeriod":<n>}'
You can also use this command to update the retention period for an existing backup configuration. The updated retention settings will apply only to new recovery points created going forward. Existing recovery points will remain unchanged and will be retained until their originally configured retention period expires. This behavior ensures consistency, reliability, and protection against accidental or malicious data loss.
Results
-
Enables continuous backup on the source bucket.
-
Configures the expiration rule to automatically delete a backup older than n number of days.
