Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Suivez les instructions de cette page pour exporter une sauvegarde RDB de votre instance Memorystore pour Redis.
L'exportation de votre instance Redis crée un fichier de sauvegarde RDB de vos données. L'opération d'exportation stocke la sauvegarde RDB dans un bucket Cloud Storage. Les performances de votre instance peuvent être temporairement plus lentes pendant la durée de l'exportation.
Avant de commencer
Disposez d'un bucket Cloud Storage. Nous vous recommandons d'exporter vers un bucket situé dans la même région que votre instance Redis.
Pour créer un bucket Cloud Storage, consultez la page Créer des buckets.
Disponibilité et comportement de l'instance lors de l'exportation
Au cours du processus d'exportation, vous pouvez lire et écrire sur votre instance Redis, mais vous ne pouvez pas exécuter d'opérations d'administration sur votre instance telles que le scaling ou la mise à niveau.
Votre instance peut connaître une latence accrue lors de l'opération d'exportation.
L'exportation peut prendre de quelques minutes à quelques heures. Par exemple, si vous exportez une instance de 10 Go avec 8 Go de mémoire utilisée, l'exportation peut prendre 5 minutes. Si vous exportez une instance de 120 Go avec 100 Go de mémoire utilisée, l'exportation peut prendre une heure. Pour surveiller la progression de l'exportation, consultez la page des détails de l'instance, qui affiche l'état de l'opération.
Étape suivante
Pour en savoir plus sur le comportement des fonctionnalités d'importation et d'exportation, ainsi que sur les bonnes pratiques à suivre, consultez la page Présentation de l'importation et de l'exportation.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/05 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/05 (UTC)."],[],[],null,["# Export data from a Redis instance\n\nFollow the instructions on this page to export an RDB backup of your\nMemorystore for Redis instance.\n\nExporting your Redis instance creates an RDB backup file of your data. The\nexport operation stores the RDB backup in a Cloud Storage bucket. Your\ninstance's performance may be temporarily slower for the duration of the\nexport.\n\nBefore you begin\n----------------\n\n1. Have a Cloud Storage bucket. We recommend that you export to a bucket\n located in the same region as your Redis instance.\n\n To create a Cloud Storage bucket, see [Create buckets](/storage/docs/creating-buckets#storage-create-bucket-cli).\n2. Have [sufficient permissions](/memorystore/docs/redis/import-export-restricted-permissions)\n to perform the export.\n\nExport an RDB backup file to a Cloud Storage bucket\n---------------------------------------------------\n\n### Console\n\n1. Go to the **Memorystore for Redis** page in the Google Cloud console.\n\n [Memorystore for Redis](https://console.cloud.google.com/memorystore/redis/instances?)\n\n2. Click your instance ID to view the instance details page.\n\n3. Click the **Export** button in the top bar.\n\n4. Click the **Browse** button and navigate to the Cloud Storage\n bucket to which you want to export your RDB file.\n\n5. Use the default export file name, or enter your own file name that\n includes the`.rdb` file extension. For example:\n\n `myexport.rdb`\n6. Click the **Select** button.\n\n7. Click the **Export** button.\n\n8. Confirm that you want to export, and click the **Export** button.\n\n### Gcloud\n\n1. Export an RDB file to the Cloud Storage bucket referred to in step one of [Before you begin](/memorystore/docs/redis/import-data#before_you_begin) by executing the following command: \n\n ```\n gcloud redis instances export gs://[BUCKET_NAME]/[FILE_NAME].rdb [INSTANCE_ID] --region=[REGION] --project=[PROJECT_ID]\n ```\n\nStop an ongoing export operation\n--------------------------------\n\n### Console\n\n1. Go to the **Memorystore for Redis** page in the Google Cloud console.\n\n [Memorystore for Redis](https://console.cloud.google.com/memorystore/redis/instances?)\n\n2. Click the Instance ID to view its information.\n\n3. Click the **Stop export** button.\n\n### Gcloud\n\nTo stop an export operation, first you need to find the operation ID by\nrunning the following command: \n\n```\ngcloud redis operations list --region=[REGION] -project=[PROJECT]\n```\n\nOnce you have the operation ID, run the following command: \n\n```\ngcloud redis operations cancel [OPERATION_ID] --region=[REGION] --project=[PROJECT]\n```\n\nInstance availability and behavior while exporting\n--------------------------------------------------\n\n- During the export process you can read and write to your Redis instance,\n however you cannot run admin operations on your instance such as scaling or\n upgrading.\n\n- Your instance may experience increased latency during the export operation.\n\n- The export can take anywhere from a few minutes to a few hours. For example,\n if you export a 10 GB instance with 8 GB of used memory, the export can take 5\n minutes, and if you export a 120 GB instance with 100 GB of used memory, the\n export can take an hour. To monitor the progress of the export, check the\n instance details page, which displays the status of the operation.\n\nWhat's next\n-----------\n\n- Learn about import and export feature behavior and best practices with [Import and export overview](/memorystore/docs/redis/import-export-overview)."]]