Appearance
OVH
How to back up and restore OVH managed databases via SimpleBackups.
OVH offers managed database clusters under its Public Cloud offering, supporting MySQL, PostgreSQL, Redis, and MongoDB. Connecting an OVH database to SimpleBackups requires configuring authorized IPs, copying your connection credentials, and optionally providing a CA certificate. SimpleBackups also supports automatic discovery through the OVH API. This guide covers both approaches.
Connecting your database
Step 1: Configure IP filtering
- Log in to your OVH account and navigate to the databases section under Public Cloud.

- Select the database you want to back up.
- Go to the Authorised IPs section.
- Add the SimpleBackups IP addresses to the allowlist.


Step 2: Copy your connection credentials
- Navigate to the Login Information section.
- Copy the connection details or the full service URI.
- Download the CA Certificate.
- From the Users tab, retrieve user details or reset the user password if needed.


Step 3: Set up a database backup in SimpleBackups
Navigate to creating a new database backup and choose Serverless. You can connect using either manual form fill or automatic import:
Manual connection
Select the database Type and fill in the connection details, or click Paste connection string and enter the full service URI.

Automatic import via DBaaS provider
- Click Connect your DBaaS Provider.
- Choose an OVH provider.
- Select the managed database you want to back up.
- Click Validate.

For both methods, under Certificate / TLS, select REQUIRED mode and paste the CA certificate you downloaded.

Step 4: Validate and activate
Click Validate connection to confirm that SimpleBackups can reach your database. Once validated, configure your schedule and activate the backup.
Restoring a backup
To restore a backup, navigate to your backup page and open the Logs tab. Click the detail icon on the backup you want to restore from, then open the Restore tab. Generate a download link and copy it.



Run the following command to download and decompress your backup (replace the URL with your signed download link):
bash
wget -O - "<signed-download-url>" | gunzip -c > backup.pgsqlThen restore using pg_restore, replacing <your-database-uri> with your full database connection string:
bash
pg_restore -d "<your-database-uri>" ./backup.pgsql