Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf der Seite wird beschrieben, wie Sie gängige Aufgaben für die RDB-Snapshot-Funktion ausführen.
Weitere Informationen zur Funktion „RDB-Snapshots“ finden Sie unter RDB-Snapshots – Übersicht.
Instanz mit RDB-Snapshots erstellen
Console
Rufen Sie in der Google Cloud Console die Seite Memorystore for Redis auf.
Wählen Sie Redis-Datenbank-Snapshot (RDB) auswählen aus.
Wählen Sie im Drop-down-Menü Beginn eine Startzeit aus.
Wählen Sie im Drop-down-Menü Snapshot-Intervall ein Snapshot-Intervall aus.
Kehren Sie zur Anleitung Redis-Instanz in einem VPC-Netzwerk erstellen zurück, um weitere Anleitungen zu anderen Memorystore-Konfigurationen zu erhalten, und klicken Sie auf die Schaltfläche Erstellen.
gcloud
Geben Sie den folgenden Befehl ein, um RDB-Snapshots auf einer Instanz zu aktivieren. Ersetzen Sie dabei variables durch die entsprechenden Werte:
snapshot-interval ist das gewünschte Intervall. Zulässige Werte sind 1h, 6h, 12h und 24h.
Snapshots pausieren
gcloud
Wenn Sie Snapshots pausieren möchten, müssen Sie den Snapshot-Zeitplan auf eine Zeit in der Zukunft festlegen.
Wenn Sie die Pausierung von Snapshots aufheben möchten, können Sie die Zeit neu festlegen, zu der der nächste Snapshot erstellt werden soll. Wenn Sie beispielsweise Snapshots pausieren möchten, geben Sie den folgenden Befehl ein und ersetzen Sie dabei variables durch die entsprechenden Werte:
Klicken Sie auf die Instanz-ID der Instanz, die Sie bearbeiten möchten.
Klicken Sie auf Bearbeiten.
Heben Sie die Auswahl von Redis-Datenbank-Snapshot (RDB) planen auf.
Klicken Sie auf Speichern.
gcloud
Wenn Sie RDB-Snapshots für eine Redis-Instanz deaktivieren möchten, geben Sie den folgenden Befehl ein. Ersetzen Sie dabei variables durch die entsprechenden Werte:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[],[],null,["# Manage RDB snapshots\n\nThe page explains how to perform common tasks for the RDB snapshots feature.\nFor details on RDB snapshots feature, refer to [RDB snapshots overview](/memorystore/docs/redis/rdb-snapshots).\n| **Note:** During the Preview stage of the RDB Snapshots feature you cannot enable RDB Snapshots for existing Redis instances. You can only enable snapshots when creating a new Redis instance.\n\nCreating an instance that uses RDB snapshots\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?)\n2. Follow the instructions at [Creating a Redis instance on a VPC network](/memorystore/docs/redis/create-manage-instances#creating_a_redis_instance_on_a_vpc_network),\n but return to these instructions when you reach the **Snapshots** section.\n\n3. Select **Select Redis Database (RDB) snapshot**.\n\n 1. Choose a start time from the **Start Time** dropdown.\n 2. Choose a snapshot interval from the **Snapshot Interval** dropdown.\n4. Return to the [Creating a Redis instance on a VPC network](/memorystore/docs/redis/create-manage-instances#creating_a_redis_instance_on_a_vpc_network)\n instructions for\n additional guidance on other Memorystore configurations,\n and click the **Create** button.\n\n### gcloud\n\nTo enable RDB snapshots on an instance, enter the following command\nreplacing \u003cvar translate=\"no\"\u003evariables\u003c/var\u003e with appropriate values: \n\n```\ngcloud redis instances create instance-id --size=size --persistence-mode=rdb --rdb-snapshot-period=snapshot-interval --rdb-snapshot-start-time=time --region=region-id\n```\n\nWhere:\n\n- \u003cvar translate=\"no\"\u003esnapshot-interval\u003c/var\u003e is your desired interval. Accepted values are: `1h`, `6h`, `12h`, and `24h`.\n- \u003cvar translate=\"no\"\u003etime\u003c/var\u003e is your desired start time in the ISO 1801 format. For example: `2021-01-02T03:00:00Z`.\n\nEnabling snapshots on an existing instance\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?)\n2. Click the ID of the instance you want to add RDB snapshots to.\n\n3. Find the *Snapshots* section.\n\n4. Select **Schedule Redis Database (RDB) snapshot**.\n\n 1. Choose a start time.\n\n 2. Choose a snapshot interval.\n\n5. Click the **Save** button.\n\n### gcloud\n\nRun the following command, replacing \u003cvar translate=\"no\"\u003evariables\u003c/var\u003e with appropriate\nvalues: \n\n```\ngcloud redis instances update instance_id --region=region --persistence-mode=rdb --rdb-snapshot-period=snapshot-interval --rdb-snapshot-start-time=time\n```\n\nWhere:\n\n- \u003cvar translate=\"no\"\u003esnapshot-interval\u003c/var\u003e is your desired interval. Accepted values are `1h`, `6h`, `12h`, and `24h`.\n- \u003cvar translate=\"no\"\u003etime\u003c/var\u003e is your desired start time in the ISO 1801 format. For example: `2021-01-02T03:00:00Z`.\n\nAdjusting snapshot schedule\n---------------------------\n\n### gcloud\n\nTo adjust the schedule of RDB snapshots, enter the following command\nreplacing \u003cvar translate=\"no\"\u003evariables\u003c/var\u003e with appropriate values: \n\n```\ngcloud redis instances update instance-id --rdb-snapshot-start-time=time --region=region\n```\n\nWhere:\n\n- \u003cvar translate=\"no\"\u003etime\u003c/var\u003e is your desired start time in the ISO 1801 format. For example: `2021-01-02T03:00:00Z`.\n\nAdjusting snapshot interval\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?)\n2. Click the **Instance ID** of the instance you'd like to edit.\n\n3. Click the **Edit** button\n\n4. Find the **Snapshots** section.\n\n5. Use the **Snapshot Interval** dropdown to select your desired interval.\n\n6. Click the **Save** button.\n\n### gcloud\n\nTo change the snapshot interval, enter the following command\nreplacing \u003cvar translate=\"no\"\u003evariables\u003c/var\u003e with appropriate values: \n\n```\ngcloud redis instances update instance-id --rdb-snapshot-period=snapshot-interval\n--region=region\n```\n\nWhere:\n\n- \u003cvar translate=\"no\"\u003esnapshot-interval\u003c/var\u003e is your desired interval. Acceptable values are: `1h`, `6h`, `12h`, and `24h`.\n\nPausing snapshots\n-----------------\n\n### gcloud\n\nTo pause snapshots, you must to set the snapshot schedule to a future time.\nWhen you want to unpause snapshots, you can re-adjust the time to when you\nwant the next snapshot to occur. For example, to pause snapshots, enter the\nfollowing command replacing \u003cvar translate=\"no\"\u003evariables\u003c/var\u003e with appropriate values: \n\n```\ngcloud redis instances update instance-id --rdb-snapshot-start-time=2022-06-10T03:00:00Z\n--region=region\n```\n| **Note:** Pausing snapshots will result in stale backups and can result in the instance being recovered with stale data. If you need to pause snapshots for a long period of time, consider disabling RDB snapshot instead.\n\nDisabling RDB snapshots\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?)\n2. Click the **Instance ID** of the instance you'd like to edit.\n\n3. Click the **Edit** button\n\n4. Unselect **Schedule Redis Database (RDB) snapshot**.\n\n | **Note:** This action stops ongoing snapshots and deletes existing snapshots.\n5. Click the **Save** button.\n\n### gcloud\n\nTo disable RDB snapshots for a Redis instance, enter the following command\nreplacing \u003cvar translate=\"no\"\u003evariables\u003c/var\u003e with appropriate values: \n\n```\ngcloud redis instances update instance-id --persistence-mode=disabled --region=region\n```\n| **Note:** Running this command stops ongoing snapshots and deletes existing snapshots.\n\nMonitoring RDB snapshots\n------------------------\n\n### Console\n\nThe **Instance details** page for Redis instance provides the following RDB\nsnapshots metrics:\n\n- Frequency\n- Next snapshot\n- Last snapshot status\n- Time since last snapshot\n- Time of last restore\n\nTo view these details:\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?)\n2. Click the **Instance ID** of your instance.\n\n3. View the snapshot information under the **RDB Snapshots** section.\n\n### Cloud Monitoring\n\nYou can use [Cloud Monitoring](/memorystore/docs/redis/monitoring-instances)\nto view metrics for RDB snapshots.\n\nFor a list of available metrics for RDB snapshots, see [RDB snapshots metrics](/memorystore/docs/redis/monitoring-metrics#rdb_snapshots_metrics).\n\nWhat's next\n-----------\n\n- See the overview of [RDB Snapshots](/memorystore/docs/redis/rdb-snapshots) for Memorystore.\n- Learn more about [importing and exporting](/memorystore/docs/redis/import-export-overview) data."]]