Skip to main content
You export a Sevalla Valkey database to an RDB file with valkey-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. Valkey speaks the Redis protocol, so the same steps move data from Redis to Valkey. Sevalla uses RedisShake for its own Valkey restores too.

Before you begin

  • Create the database on Sevalla first, on the same Valkey 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 valkey-cli at the database’s major version or newer: on macOS brew install valkey, elsewhere see valkey.io/download. redis-cli also works.
  • 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

valkey-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. valkey-cli 7.2 and 8.1 read the password only from REDISCLI_AUTH; 9.0 also reads VALKEYCLI_AUTH.

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