Managed Databases are automatically backed up for you. You can perform a restore to a specific point in time.
Get database information
To start, you need to get a few specific details about the MySQL Managed Database you want to restore.
-
Run the List MySQL Managed Databases operation.
-
Locate the desired database in the response—for example, based on its
label—and note the following values:-
id. This is the unique identifier for the database. Store this as your database'ssource. -
oldest_restore_time. You can restore the database to any time that is more recent than this. -
updated. This is the last time an update was recorded to the database. You can restore the database to any time before this. -
updates. Review this object to determine when the last successful maintenance was performed on the database, relative to the time between theoldest_restore_timeandupdatedvalues.
-
To start, you need to get a few specific details about the PostgreSQL Managed Database you want to restore.
1. Run the List PostgreSQL Managed Databases operation.
2. Locate the desired database in the response—for example, based on its label—and note the following values:
- id. This is the unique identifier for the database. Store this as your database's source.
- oldest_restore_time. You can restore the database to any time that is more recent than this.
- updated. This is the last time an update was recorded to the database. You can restore the database to any time before this.
- updates. Review this object to determine when the last successful maintenance was performed on the database, relative to the time between the oldest_restore_time and updated values.
Run the restore
-
Run the Create or restore a MySQL Managed Database operation and build the request using the
forkobject:{ "fork": { "source": 12457 "restore_time": "2026-04-10T19:55:12", } }-
source. The target database'sidthat you stored as itssource. -
restore_time. The date and time to which you want to restore the database, in YYYY-MM-DD:HH:MM:SS format. This needs to be between theoldest_restore_timeandupdatedtimes you noted. The API will restore to the closest backed up time for the target database.
-
-
Store the
idfor the restored database.
1. Run the Create or restore a PostgreSQL Managed Database operation and build the request using the fork object:
{
"fork": {
"source": 12457
"restore_time": "2026-04-10T19:55:12",
}
}- source. The target database's id that you stored as its source.
- restore_time. The date and time to which you want to restore the database, in YYYY-MM-DD:HH:MM:SS format. This needs to be between the oldest_restore_time and updated times you noted. The API will restore to the closest backed up time for the target database.
2. Store the id for the restored database.
Delete the old database
Restoring from a backup creates a second running cluster, which incurs billing. You can delete the original database after the restore is complete, to avoid this billing.
Ensure the restore is complete before deleting the original database. Run the Get a MySQL Managed Database operation and target the new database, based on its
id. Then, verify that itsstatusisactivebefore continuing with the delete of the old one.
Run the Delete a MySQL Managed Database operation, targeting the old database, using its source identifier as the mysqlInstanceId:
curl --request DELETE \
--url https://api.linode.com/v4/databases/mysql/instances/12457 \
--header 'accept: application/json'> 🚧
>
> Ensure the restore is complete before deleting the original database. Run the Get a PostgreSQL Managed Database operation and target the new database, based on its id. Then, verify that its status is active before continuing with the delete of the old one.
Run the Delete a PostgreSQL Managed Database operation, targeting the old database, using its source identifier as the postgresqlInstanceId:
curl --request DELETE \
--url https://api.linode.com/v4/databases/postgresql/instances/12457 \
--header 'accept: application/json'
