Skip to main content
You export a Sevalla Redis database to an RDB file with redis-cli --rdb, and import an RDB file with RedisShake, which replays its keys into the running database. Both work over the database’s external connection. Redis can’t load an RDB file sent over the network on its own, which is why the import needs RedisShake; Sevalla uses it for its own Redis restores too.

Before you begin

  • Create the database on Sevalla first, on the same Redis version as the source or a newer one. See Create a database.
  • Enable the external connection. If IP restrictions are on, allow your IP address.
  • To export, install redis-cli at the database’s major version or newer: on macOS brew install redis, on Debian or Ubuntu the redis-tools package from packages.redis.io, on Windows inside WSL.
  • To import, download RedisShake 4.6 or later for your system from its releases and unpack it.
  • Copy the Host, Port and Password from the database’s Overview tab, under Connection > External. See Find the connection details.
The examples use the host orders-db-k3j4h.ext.sevalla.app and port 20145; replace them, and <password>, with yours.

Export a database

redis-cli asks the server for a point-in-time snapshot over the replication protocol and writes it to orders-cache.rdb. The file holds every logical database (db0, db1 and so on). While the snapshot is taken, the server forks as it does for a background save, so its memory use rises briefly. To export from another Redis server, run the same command with its host, port and password.

Import a database

1

Write the configuration

Save this as shake.toml next to the redis-shake binary, with the path to your RDB file and the Sevalla database’s external host, port and password:
shake.toml
2

Run RedisShake

RedisShake reads the file and writes each key, in its logical database, to the Sevalla database, then exits.
3

Check the keys

Open the database’s Redis studio tab and look through the Keys page, or count the keys:
Import into an empty database. By default RedisShake stops at the first key that already exists in the database. To overwrite existing keys, add rdb_restore_command_behavior = "rewrite" under an [advanced] section of shake.toml; to keep them, use "skip".

Restore a dump backup

Databases in OCI locations write their dump backups as gzip-compressed RDB files. Download one, unpack it, and import it with RedisShake as in Import a database:
To restore a Sevalla backup into a Sevalla database, use Restore on the Backups tab instead; it empties every logical database first. See Restore a backup.

Common errors