2025 Feb 10 10:11 AM - edited 2025 Feb 10 10:18 AM
Hello together,
i try to restore a backup from a PostgreSQL on SAP BTP, hyperscaler option instance as described in the documentation with this command:
cf create-service postgresql-db standard backupdb -c '{"source_instance_id": <id>,“restore_time": <timestamp>}‘
But i get this error and do not find anything what is wrong:
Job (<job-guid>) failed: provision could not be completed: Service broker error: Service broker backing-services-broker-postgresql-db-cf-eu10-004 failed with: provisioning of instance <instance-guid> and plan <plan-guid> failed, cause: Cannot read properties of null (reading 'SnapshotCreateTime')
has anyone an idea about this SnapshotCreateTime? i can not find anything in the documentation :(.
Thanks and regards
heinrich
Request clarification before answering.
Hi,
A database instance can be restored to any point in time within the backup retention period (last restorable time being before the last 15 mins), by creating a new DB instance, using the CF command as below:
cf create-service postgresql-db "<service_plan>" "<service_instance_name>" -c '{"source_instance_id": < >, "restore_time":< >}'
You must restore to the same service_plan as that of the source DB instance, and with the same configurations as that of the source DB instance. The parameters which are not at their default values should be specified in -c during restore, (-c parameters in JSON format).
PS: The product team is on the way to launch new features regarding backups and restore options for PostgreSQL, hyperscaler option, new documentation is being prepared and a set of blog posts will be released also, stay tuned.
Hope this helps.
Regards, Antonio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Antonio,
that is exactly what i tried. But i get this error:
Job (<id>) failed: provision could not be completed: Service broker error: Service broker backing-services-broker-postgresql-db-cf-eu10-004 failed with: provisioning of instance <id> and plan <id> failed, cause: Cannot read properties of null (reading 'SnapshotCreateTime')
Regards, Heinrich
Hi Antonio, i tried different instances. Both have the service plan standard and are on eu_central_1
Here is the configuration:
{
"allow_access": "",
"audit_log_level": [
"DDL",
"ROLE"
],
"backup_retention_period": 14,
"cross_region_backup": false,
"db_parameters": [],
"engine_version": "15",
"locale": "en_US",
"maintenance_window": {
"day_of_week": "Saturday",
"duration": 1,
"start_hour_utc": 23
},
"memory": 2,
"multi_az": false,
"public_access": false,
"region": "eu-central-1",
"storage": 5
}
Thanks and regards,
Heinrich
User | Count |
---|---|
64 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.