Skip to content

Type a word or two, like firewall or rollback.

Open Coresmith
Browse the docs
Databases Checked against Coresmith 0.8.44.

Back up and restore a database

Open as Markdown

Back up now

Choose Back up now on the database's page. Coresmith saves a compressed copy on the database's own server. It works on every plan, for PostgreSQL and MySQL.

A backup on the same server is lost with that server. Use it as a safety net before a risky change, and keep another copy somewhere else.

Back up to S3 every night or every hour

On Business, Settings, Team has Database backups to S3.

  1. Under How often, choose Every night at 02:30 or Every hour.
  2. Enter the bucket, its region, and an access key that can write to it.
  3. Save.

For storage other than Amazon S3, such as Cloudflare R2 or MinIO, enter its endpoint too. On Coresmith Cloud the endpoint has to be at a public address.

Coresmith backs up every PostgreSQL and MySQL database in the team and uploads the backups to the bucket, every night at 02:30 or at half past every hour. It also keeps the three newest on each server. If an upload fails, Coresmith says which setting to check.

Coresmith never deletes backups from the bucket, so set a lifecycle rule there that expires old ones. Hourly backups fill a bucket quickly.

To switch between nightly and hourly later, choose Change. Leave the keys empty to keep the saved ones.

Restore

A database's page lists its backups, on its server and in S3. Choose Restore on one, and Coresmith replaces the database's contents with it. When the restore finishes or fails, Coresmith emails the people who get server alerts.

Redis

Backups don't include Redis databases.