Skip to content

RC: Cherry-pick import data changes #1368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions content/operate/rc/databases/import-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,25 @@ weight: 20
---
You can import an existing dataset into your Redis Cloud instance from an existing Redis server or an RDB file.

{{< warning >}}
Data imported into an existing database overwrites any existing data.
{{< /warning >}}
<br/>
{{< note >}}
Expired keys are not imported.
As a result, the number of keys in the source and destination databases can be different after the import is complete.
{{< /note >}}

## Prerequisites

In preparation, make certain the Redis version of the source database is compatible with the database where the data will be imported.
Make sure the Redis version of the source database is compatible with the database where the data will be imported.

## Import from a Redis server {#redis-server}

To import a dataset from any publicly available Redis server:
To import a dataset from any publicly available Redis Community Edition server:

1. Select **Databases** from the Redis Cloud console menu and then select the target database from the database list.
1. In the **Danger Zone**, select **Import**.
1. Select **Import**.
1. Enter the source database details:
- Source type - Select **Redis**.
- Redis Hostname/IP Address - Enter the hostname or the public IP address of the source Redis server.
Expand All @@ -42,7 +46,7 @@ If you have an RDB or a compressed RDB file from a previous backup, you can rest
To import an RDB file stored on an FTP or HTTP server:

1. Select **Databases** from the Redis Cloud console menu and then select your database from the list.
1. In the **Danger Zone**, select **Import**.
1. Select **Import**.
1. Enter the details for the RDB file:
- Source type - Select **FTP** or **HTTP**.
- Source path - Enter the URL for the RDB file: `<protocol>://[username][:password]@hostname[:port]/[path/]filename.rdb[.gz]`
Expand Down Expand Up @@ -146,7 +150,7 @@ To share and import an RDB file that is stored in an AWS Simple Storage Service


1. In the [Redis Cloud console](https://cloud.redis.io/), select the target database from the database list.
1. In the **Danger Zone**, select **Import**.
1. Select **Import**.
1. Enter the details for the RDB file:
- Source type - Select **AWS S3**.
- Source path - Enter the URL for the RDB file: `s3://bucketname/[path/]filename.rdb[.gz]`
Expand Down Expand Up @@ -179,7 +183,7 @@ To share and import an RDB file that is stored in a Google Cloud Storage bucket:
For more info, see [Set ACLs](https://cloud.google.com/storage/docs/access-control/create-manage-lists#set-an-acl).

1. In the [Redis Cloud console](https://cloud.redis.io/), select the target database from the database list.
1. In the **Danger Zone**, select **Import**.
1. Select **Import**.
1. Enter the details for the RDB file:
- Source type - Select **Google Cloud Storage**.
- Source path - Enter the URL for the RDB file: `gs://bucketname/[path/]filename.rdb[.gz]`
Expand All @@ -198,7 +202,7 @@ To share and import an RDB file that is stored in a Google Cloud Storage bucket:
To import an RDB file stored in a Microsoft Azure Blog storage container:

1. In the Redis Cloud console, select the target database from the database list.
1. In the **Danger Zone**, select **Import**.
1. Select **Import**.
1. Enter the details for the RDB file:
- Source type - Select **Azure Blob Storage**.
- Source path - Enter the URL for the RDB file:
Expand Down