No documentation for CLI/API for forking a database cluster
complete
J
Jasper
The GUI doc is here: https://docs.digitalocean.com/products/databases/postgresql/how-to/fork-clusters/
Dan Brian
complete
Dan Brian
Hi! Thanks for reaching out. The database forking functionality is nested under the "Create a New Database Cluster" endpoint. You just need to submit the
backup_restore
object with the timestamp you want to fork from, like this:"backup_restore": {
"database_name": "your-old-db-name",
"backup_created_at": "2019-01-31T19:25:22.000Z"
},
Docs here: https://docs.digitalocean.com/reference/api/api-reference/#operation/create_database_cluster
Unfortunately, the CLI doesn't currently support forking.
Hope this helps!
J
Jasper
Dan Brian: Excellent, thanks this helps a lot!