Redis is an open source, key-value database built with an in-memory design that emphasizes speed. It has support for rich data types, atomic operations, and Lua scripting.
You can migrate existing Redis databases from other cloud providers (such as RedisLabs and self-hosted databases) or from inside DigitalOcean to other clusters in your DigitalOcean account. Migrating a database establishes a connection with an existing database and replicates its contents to the new database cluster. If the existing database is continuously being written to, the migration process will continue until there is no more data to replicate or you manually stop the migration.
We do not currently support Redis migrations from AWS ElasticCache.
To migrate an existing database to a DigitalOcean database cluster, you need to reference the source database’s connection credentials and to disable or update any firewalls between the databases.
Before migrating an existing database, you need the database’s following credentials:
If you’re migrating a database that resides at DigitalOcean, you can locate your database’s public connection information under its Connection Details in the control panel. If your database resides at another provider, reference their documentation for further information.
To migrate an existing database, you also need to update or temporarily disable any firewalls protecting the databases to allow the databases to connect to each other.
To do this on the target DigitalOcean database, remove any trusted sources from the database cluster. Removing all trusted sources leaves the database open to all incoming connections. To keep your databases secure after migration, add the trusted sources back to the database.
If your source database resides at DigitalOcean, repeat the process of removing all trusted sources from the source database cluster.
If your source database resides outside of DigitalOcean, you may need to update or temporarily disable any firewalls protecting the database before attempting migration. Refer to your database provider’s documentation to see how to do this.
To migrate a Redis database from the DigitalOcean Control Panel, click Databases and then select the database you want to migrate to from your list of databases.
From the database’s Overview page, click the Actions button and then select Set Up Migration.
In the Redis migration window, click Continue, then enter the source database’s credentials. Once you have entered the source database’s credentials, click Start Migration. A migration status banner opens at the top of the Overview page and your target database’s data begins to transfer.
Once the migration begins, some features on both databases become unavailable. You can stop the migration at any time by clicking the Stop Migration button in the migration status banner. If you stop migration, the database retains any migrated data.