Database backups
Back up PostgreSQL, MySQL / MariaDB, MongoDB, Redis and SQL Server databases into your clouds, now or on a schedule, encrypted if you like, and restore them.
In this chapter
- What can be backed up
- Connecting a database
- Backing up, now or on a schedule
- Encrypted backups
- Restoring a backup
What can be backed up
| Database | Saved as | Restore from here |
|---|---|---|
| PostgreSQL (also Supabase, Neon, Amazon RDS / Aurora, DigitalOcean) | SQL dump, .sql.gz | Yes |
| MySQL / MariaDB (also Amazon RDS / Aurora, PlanetScale) | SQL dump, .sql.gz | Yes |
| MongoDB (also MongoDB Atlas) | mongodump archive, .archive.gz | Yes |
| Microsoft SQL Server (also Azure SQL) | .bacpac (schema and data) | Yes, into an empty database |
| Redis | Snapshot, .rdb.gz | No: load it on the server itself |
Every backup is a standard file its database's own tools open, so you never need ShiftMyData to use one.
Connecting a database
- Open Databases and press Connect a database (or Clouds, then Connect a cloud).
- Choose your database, or your hosting service by name: Supabase, Neon, Amazon RDS, PlanetScale, DigitalOcean, MongoDB Atlas or Azure SQL.
- Paste the Connection string your provider gives you, such as postgresql://user:password@host:5432/dbname. Or leave it empty and fill in the server address, database name, username and password one by one. Anything you type in a field wins over the connection string.
- If the database only answers on its own server (most web hosting), fill in the SSH server fields: it is then reached through that server, and Server address is usually localhost.
- Press Connect. The details are checked straight away.
- Use a user that can read every table. A read-only user is enough for backups; restores need one that can create and drop tables.
- Hosted databases often have an IP allow list. Add ShiftMyData's server address to it, or the connection is refused.
- MongoDB: a replica set is several servers separated by commas, and Atlas's mongodb+srv:// string is understood as it is. Only the first server is connected to, never the others the server names: a backup can read a secondary, but a restore needs the primary listed first.
- Redis: some hosted services (ElastiCache, Upstash, Azure Cache) do not allow a snapshot from outside. The connection check passes and the backup says the server refused.
- SQL Server: choosing tables limits the rows saved; every table's, view's and procedure's definition is always in the .bacpac.
- Supabase: use the Session pooler connection string (port 5432). The direct host is IPv6-only.
Backing up, now or on a schedule
- On Databases, press Back up now on the database's card for a single backup, or Schedule for a repeating one.
- Choose the cloud and folder to save into and how many backups to keep. For a schedule, choose how often: every 6 or 12 hours, every day, every Sunday or every month.
- Optionally list Tables to back up only those. MongoDB takes one Collection per backup. Leave it empty for everything.
- Press the button. The first backup starts at once; its progress shows in the job list.
Each backup is one dated file, such as shop-2026-10-15-020000.sql.gz. After each good run the oldest backups of that database past the number you keep are removed; nothing else in the folder is touched. The card shows the last backup, its size, and every schedule with its next run.
- A backup stops after 2 hours, or past 20 GB compressed, unless your administrator changed those limits.
- The size of each backup counts towards your transfer allowance.
- Schedules also appear on the Schedules page, where they can be paused, run now or deleted.
Encrypted backups
Give a database a Backup passphrase (at least 12 characters) when you connect it, or later by editing its connection. Every backup of it is then encrypted with AES-256 before it leaves our server, and its name ends in .enc. The cloud you save into holds nothing readable.
To open an encrypted backup on your own computer, use OpenSSL (built into macOS and Linux; on Windows it comes with Git for Windows): openssl enc -d -aes-256-cbc -pbkdf2 -iter 600000 -in shop-2026-10-15-020000.sql.gz.enc -out shop-2026-10-15-020000.sql.gz
Restoring a backup
- On Databases, press Restore on the database's card.
- Choose the cloud and folder (the one its backups go to is filled in) and pick a backup from the list, newest first. Only files this database can take are listed.
- For an encrypted backup made with an older passphrase, type that passphrase; otherwise the database's own is used.
- MongoDB: tick Drop each collection before restoring it to replace collections rather than add to them.
- Type the database's name to confirm, and press Restore.
- SQL Server: a .bacpac only goes into an empty database. Point the connection at a new database name first.
- Redis: copy the .rdb file (gunzip it first) into the server's data directory and restart Redis.
- Only the account owner can restore, and every restore is recorded in the account's activity.
Try it
Everything here is in ShiftMyData's Help too, once you are signed in. Start free
← Backups and restore · Sharing files with a link → · Every chapter