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-cliat the database’s major version or newer: on macOSbrew install valkey, elsewhere see valkey.io/download.redis-clialso 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.
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
3
Check the keys
Open the database’s Redis studio tab and look through the Keys page, or count the keys:
rdb_restore_command_behavior = "rewrite" under an [advanced] section of shake.toml; to keep them, use "skip".