Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to cancel an AlloyDB backup operation
that is in progress.
You can cancel a running backup operation if:
The source cluster of the backup is in the "Ready" state
The backup is in the "Pending" state
To cancel the backup operation, you cancel the long-running operation that
AlloyDB initiated to perform the operation. Note that in some
cases, your attempt to cancel the long-running operation can fail due to the
current status of the operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eThis guide explains how to cancel an in-progress AlloyDB backup operation, which is possible when the source cluster is "Ready" and the backup is in "Pending" status.\u003c/p\u003e\n"],["\u003cp\u003eCanceling a backup involves stopping the long-running operation initiated by AlloyDB, but success isn't guaranteed due to the operation's status.\u003c/p\u003e\n"],["\u003cp\u003eTo proceed, you'll need to have enabled AlloyDB access for your Google Cloud project and possess either the \u003ccode\u003eroles/alloydb.admin\u003c/code\u003e, \u003ccode\u003eroles/owner\u003c/code\u003e, or \u003ccode\u003eroles/editor\u003c/code\u003e IAM role.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egcloud alloydb operations cancel\u003c/code\u003e command is utilized to cancel the backup, requiring the operation ID, region ID, and project ID.\u003c/p\u003e\n"]]],[],null,["# Cancel an in-progress backup operation\n\nThis page describes how to cancel an AlloyDB backup operation\nthat is in progress.\n\nYou can cancel a running backup operation if:\n\n- The source cluster of the backup is in the \"Ready\" state\n- The backup is in the \"Pending\" state\n\nTo cancel the backup operation, you cancel the long-running operation that\nAlloyDB initiated to perform the operation. Note that in some\ncases, your attempt to cancel the long-running operation can fail due to the\ncurrent status of the operation.\n\n\nBefore you begin\n----------------\n\n- The Google Cloud project you are using must have been [enabled to access AlloyDB](/alloydb/docs/project-enable-access).\n- You must have one of these IAM roles in the Google Cloud project you are using:\n - `roles/alloydb.admin` (the AlloyDB Admin predefined IAM role)\n - `roles/owner` (the Owner basic IAM role)\n - `roles/editor` (the Editor basic IAM role)\n\n If you don't have any of these roles, contact your Organization Administrator to request\n access.\n\n\u003cbr /\u003e\n\nProcedure\n---------\n\n### gcloud\n\nTo use the gcloud CLI, you can\n[install and initialize](/sdk/docs/install) the Google Cloud CLI, or you\ncan use [Cloud Shell](/shell/docs/using-cloud-shell).\n\nUse the `operations cancel` command to cancel the long-running\noperation performing an AlloyDB backup. \n\n```\ngcloud alloydb operations cancel OPERATION_ID \\\n --region=REGION_ID \\\n --project=PROJECT_ID\n```\n\n- \u003cvar translate=\"no\"\u003eOPERATION_ID\u003c/var\u003e: The ID of the long-running operation, as reported by AlloyDB when the backup was started.\n- \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e: The ID of the region where the backup is placed.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: The ID of the project where the backup is placed."]]