You can import an existing dataset to your Redise Cloud instance. This article lists the steps required to share your dataset with Redise Cloud.

You can import a dataset from an existing Redis server or an RDB file from sources detailed below.

You can also import a sharded database that has multiple RDB files by merging the files into a single RDB. Contact support if you need help merging the RDB files.

Note: Keys that expired do not get imported. As a result, the number of keys in the source and destination databases might be different after the import completes.

Import a Dataset from a Redis Server

To import a dataset from any publicly available Redis server, simply enter the following information in the Import Dataset dialog of your Redise Cloud instance and click the Import button when done:

  1. Enter the hostname or the public IP address of the source Redis server in the Redis Hostname/IP Address box.
  2. Enter the port of the source Redis server in the Port field, if it is different from the default value of 6379.
  3. If the source Redis server is set with a password, enter it in the Password input control field.

Import a Dataset from a RDB File

You can import any standard RDB to your Redise Cloud instance. Both uncompressed and compressed (with a .gz suffix) RDB files are acceptable.

RDB File from an FTP or HTTP Server

To import a dataset from an RDB file that is accessible via a public FTP or HTTP server, enter the file’s full URL in the Import Dataset dialog’s RDB File Pathfield. Use the following standard pattern to provide the file’s URL:

<protocol>://[username][:password]@[:port]/[path/]filename.rdb[.gz]

Where:

  • protocol: the server’s protocol, can be either ftp, ftps, http or https.
  • username: your username, if needed.
  • password: your password, if needed.
  • hostname: the hostname or IP address of the server.
  • port: the port number of the server, if needed.
  • path: the path to the file, if needed.
  • filename: the filename of the RDB file, optionally compressed and with the .gz suffix.

Import a RDB File From an Amazon Simple Storage Service (AWS S3) Bucket

To import an RDB file that’s stored in an S3 bucket, first make sure the file is shared with Redise Cloud. To do so, access your AWS Management Console and follow these steps:

  1. Select the S3 service under Storage & Content Delivery to navigate to the S3 Management Console.
  2. Open the bucket where the RDB file is stored by clicking it.
  3. Navigate to the file’s permissions:
    1. Select the RDB file.
    2. Right-click the file and select Properties from the context menu.
    3. Click the Permissions tab in the Properties pane.
  4. Add access permissions to our service:
    1. Click the Add more permissions button.
    2. In the newly-added row:
      1. Enter the value service@garantiadata.com in the Grantee field.
      2. Check the Open/Download box.
    3. Click the Save button.

Once the file’s permissions are set, you can import it by entering its URL in the Import Dataset dialog’s RDB File Path field using the following syntax:

s3://bucketname/[path/]filename.rdb[.gz]

Where:

  • bucketname: the name of the S3 bucket.
  • path: the path to the file, if needed.
  • filename: the filename of the RDB file, optionally compressed and with the .gz suffix.

Import a RDB File from a Google Cloud Storage (GCS) Bucket

To import an RDB file that’s stored in a GCS bucket, first make sure the file is shared with Redise Cloud. To do so, follow these steps in your Google Cloud Platform (GCP) console:

  1. Access your GCP project by clicking it.
  2. Select Cloud Storage in the left-hand menu to open the Storage browser and view your buckets.
  3. Open the bucket where the RDB file is stored by clicking it.
  4. Open the file’s permissions dialog:
    1. Select the RDB file.
    2. Click the Object Permissions button.
  5. Add access permissions to the service by entering the following information at the bottom of the page:
    1. In the left-most drop-box, make sure the value User is selected.
    2. Next, enter service@garantiadata.com.
    3. Set permission to Reader.
    4. Click the Add and then the Save buttons to apply your changes.

Once the file’s permissions are set, you can import it by entering its URL in the Import Dataset dialog’s RDB File Path field using the following syntax:

gs://bucketname/[path/]filename.rdb[.gz]

Where:

  • bucketname: the name of the GCS bucket.
  • path: the path to the file, if needed.
  • filename: the filename of the RDB file, optionally compressed and with the .gz suffix

Import a RDB File from an Azure Blob Storage (ABS) Container

To import an RDB file that’s stored in an ABS container, enter its URL in the Import Dataset dialog’s RDB File Path field using the following syntax:

abs://storage_account_access_key@storage_account_name/container/[path/]filename.rdb[.gz]

Where:

  • storage_account_access_key: the primary access key to the storage account
  • storage_account_name: the storage account name
  • container: the name of the container.
  • path: the path to the file, if needed.
  • filename: the filename of the RDB file, optionally compressed and with the .gz suffix.