You can export a Redis database in Kinsta’s Database Hosting using a tool like TablePlus or the command line interface (CLI). For more details on using a database client with your MySQL database, see our guide on connecting and managing your Kinsta database with TablePlus.
The installation of the database server and commands vary for each database type. This article is specific to Reis. For other database types, see:
- Import and Export a MySQL Database Using the Command Line
- Import and Export a MariaDB Database Using the Command Line
- Import and Export a PostgreSQL Database Using the Command Line
If you do not yet have Redis installed on your local machine, you’ll need to install it to connect to your database. Depending on your operating system, you can install Redis in the following ways.
Redis is not currently supported on Windows, but you can use the Windows Subsystem for Linux (WSL2) and follow the Debian-based Linux instructions as a workaround.
brew install redis.
Debian-based Linus (Debian, Ubuntu, Mint, etc.)
Use the official packages.redis.io APT repository.
RedHat-based Linus (RedHat Fedora, CentOS, etc.)
Install via snap:
sudo snap install redis.
Kinsta Database Credentials
You can find your database credentials under External connections on the database Info page.
Export a Redis Database
Use the following command to export the database, replacing EXTERNAL_HOSTNAME, PORT, and PASSWORD with the information from your database’s External connections. Replace export.rdb with the path and file name of the database you want to export:
redis-cli -h EXTERNAL_HOSTNAME -p PORT -a PASSWORD --rdb export.rdb
Once the export is complete, your database file (e.g. export.rdb) will be available at the path you specified in the