Skip to content

Scalingo Database

How to back up and restore Scalingo Managed databases via SimpleBackups

Creating Scalingo Database backup (Automatic)

In this step, we will generate a unique API Token on Scalingo that will allow us to automate Scalingo database backups from SimpleBackups dashboard.

1. Obtain Scalingo API Credentials

  1. Go to https://dashboard.scalingo.com/account/tokens.
  2. Click “Add”.
  3. Copy the generated Key to somewhere safe.

Scalingo Database screenshot 1

2. Get the Application Name

  1. From the dashboard navigate to “Apps”.
  2. Choose the app where the database exists.
  3. Copy the “Application Name”.

Scalingo Database screenshot 2

Scalingo Database screenshot 3

3. Create Scalingo Provider on SimpleBackups

  1. Afterwards, create a new provider on SimpleBackups with your Scalingo API Key by going to the database backup page and click add on the “Connect your DBaaS Provider” section as shown.
  2. Select Scalingo from the Provider dropdown list, enter a name for your Scalingo account, then paste the Token and the Application Name we obtained in the previous step and click save provider.

Scalingo Database screenshot 4

Scalingo Database screenshot 5

  • Select your provider, the database you want to backup and click on “load”

4. Validate and Activate Backup:

  • Click on "validate connection" to ensure all settings are correct and the connection can be established.
  • Once validated, finalize any additional backup settings (like scheduling) and activate the backup.

This process ensures that your Scalingo database is securely backed up using SimpleBackups, providing an additional layer of data protection.

Creating Scalingo Database backup (Manual)

To create backups for Scalingo database using SimpleBackups, follow these steps. The process is designed to be straightforward, ensuring that your Scalingo database is securely backed up.

You can create a Backup for any Scalingo Database type:

  • Scalingo MySQL database.
  • Scalingo PostgreSQL database.

Prerequisites

  • A SimpleBackups account.
  • Access to your Scalingo database
  • Network access from SimpleBackups to your Scalingo database.

1. Log in to Your Scalingo Account:

  • Open the Application contains the database you want to backup.
  • Navigate to the Addons section in the application.

Scalingo Database screenshot 6

Scalingo Database screenshot 7

2. Configure IP Filtering:

  • Select the database you want to backup and click on Dashboard.
  • Navigate to “TLS/Internet access” section and enable both “Force connections using TLS” and “Internet Accessibility”.
  • Navigate to “Database TLS Certificates” section and download the certificates.

Scalingo Database screenshot 8

3. Copy Connection Data:

  • Navigate to “Database Access” section and copy the connection string.

Scalingo Database screenshot 9

  • Also you can get the complete “connection string” with “user” and “password” from the main application page.
  • On main application page navigate to “Environment” tab and copy the connection string for your database

Scalingo Database screenshot 10

4. Set Up Backup in SimpleBackups:

  • Log in to your SimpleBackups account or create a new one if needed.
  • Navigate to creating a new database backup.
  • Choose "Serverless".

5. Fill the connection details:

  • Choose the Database “Type”.
  • You can either fill the form with connection details or select "Paste Connection string" and paste the service URI.

Scalingo Database screenshot 11

6. Validate and Activate Backup:

  • Click on "validate connection" to ensure all settings are correct and the connection can be established.
  • Once validated, finalize any additional backup settings (like scheduling) and activate the backup.

This process ensures that your Scalingo database is securely backed up using SimpleBackups, providing an additional layer of data protection.

Restoring backups

In order to restore your backup, Go to your backup page, then navigate into logs.

Scalingo Database screenshot 12

Click on the “i” button on the backup that’s on the point of time you’d like to restore to.

Scalingo Database screenshot 13

Click on the Restore tab, then generate a new download link, and copy it.

Scalingo Database screenshot 14

Based on your database type run these commands (for example: PostgreSQL):

bash
wget -O - "PasteTheSignedDownloadLinkHereBetweenTheQuotes" | gunzip -c > decrypted-backup.pgsql

Then, run the pg_restore command to restore your database like so:

bash
pg_restore -d "your_db_uri" ./decrypted-backup.pgsql

Scalingo MySQL Database backup

SimpleBackups supports Scalingo MySQL Database backup.

Scalingo PostgreSQL Database backup

SimpleBackups supports Scalingo PostgreSQL Database backup.