Le moteur de recommandation "Activer les plans de sauvegarde" analyse les métadonnées des instances et recommande d'activer au moins l'une de ces méthodes de sauvegarde pour protéger vos données et faciliter la récupération.
Les recommandations sont générées quotidiennement.
Tarifs
L'outil de recommandation AlloyDB qui active les plans de sauvegarde est disponible sans frais pour tous les clients Google Cloud .
Pour en savoir plus, consultez la section Tarifs des outils de recommandation.
Avant de commencer
Avant de pouvoir consulter les recommandations et les insights, vous devez effectuer les opérations suivantes :
Pour obtenir les autorisations permettant d'afficher et d'utiliser les insights et les recommandations, assurez-vous de disposer des rôles IAM (Identity and Access Management) requis.
Tasks
Rôles
Afficher les recommandations
L'un des rôles suivants : recommender.alloydbViewer ou alloydb.viewer.
Appliquer les recommandations
L'un des rôles suivants : recommender.alloydbAdmin ou alloydb.admin.
Lister les recommandations de fiabilité pour l'activation des sauvegardes automatiques
Vous pouvez répertorier les recommandations d'activation des sauvegardes automatiques à l'aide de la console Google Cloud , de Google Cloud CLI ou de l'API Recommender.
Console
Pour lister les recommandations d'activation des sauvegardes automatiques à l'aide de la consoleGoogle Cloud , procédez comme suit :
Dans la console Google Cloud , accédez à la page Clusters.
Dans la fiche Protection des données, cliquez sur Aucune stratégie de sauvegarde activée.
Dans le tableau Ressources, sélectionnez les instances associées à la recommandation Aucune règle de sauvegarde activée.
CLI gcloud
Pour lister les recommandations d'activation des sauvegardes automatiques à l'aide de gcloud CLI, exécutez la commande gcloud recommender recommendations list comme suit :
LOCATION : région où se trouvent vos instances, par exemple us-central1.
API
Pour lister les recommandations d'activation des sauvegardes automatiques à l'aide de l'API Recommender, appelez la méthode recommendations.list comme suit :
GET https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/recommenders/google.alloydb.cluster.ReliabilityRecommender/recommendations?filter=recommenderSubtype=ENABLE_CLUSTER_BACKUP_POLICY
Remplacez les éléments suivants :
PROJECT_ID : ID de votre projet.
LOCATION : région où se trouvent vos instances, par exemple us-central1.
Afficher les insights et les recommandations détaillées
Vous pouvez afficher des insights et des recommandations détaillées sur les instances nécessitant l'activation des sauvegardes automatiques à l'aide de la console Google Cloud , de Google Cloud CLI ou de l'API Recommender.
Console
Pour afficher des insights et des recommandations détaillées sur les instances nécessitant l'activation des sauvegardes automatiques, cliquez sur le lien de recommandation dans la liste des instances sur la page Clusters.
CLI gcloud
Pour afficher des insights et des recommandations détaillées sur les instances nécessitant l'activation des sauvegardes automatiques, exécutez la commande gcloud recommender insights list comme suit :
LOCATION : région où se trouvent vos instances, par exemple us-central1.
API
Pour afficher des insights et des recommandations détaillées sur les instances nécessitant l'activation des sauvegardes automatiques, utilisez l'API Recommendations, appelez la méthode insights.list comme suit:
GET https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/insightTypes/google.alloydb.cluster.ReliabilityInsight/insights?filter=insightSubtype=CLUSTER_BACKUP_POLICY_NOT_ENABLED
Remplacez les éléments suivants :
PROJECT_ID : ID de votre projet.
LOCATION : région où se trouvent vos instances, par exemple us-central1.
Appliquer la recommandation
Procédez comme suit pour mettre en œuvre cette recommandation :
Cliquez sur Activer les sauvegardes automatiques dans la colonne Problèmes.
Une fenêtre Activer les sauvegardes automatiques s'affiche et fournit une recommandation.
Cliquez sur Afficher la stratégie de sauvegarde.
Dans la fenêtre Protection des données, effectuez l'une des opérations suivantes en fonction de la règle de sauvegarde recommandée :
Pour activer la sauvegarde et la récupération continues, cliquez sur Modifier dans le champ Sauvegardes continues et restauration.
Pour activer les sauvegardes automatiques, cliquez sur Modifier dans le champ Sauvegardes automatiques.
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/04 (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/04 (UTC)."],[],[],null,["# Enable backup plans\n\nThis page describes the AlloyDB enable backup plans [recommender](/recommender/docs/overview) which helps you detect instances where both [continuous backup and recovery](/alloydb/docs/backup/overview#continuous) and [automated backup plans](/alloydb/docs/backup/overview#automated) are disabled.\n\nThe enable backup plans recommender analyzes instance metadata and recommends to enable at least one of these backup methods to protect your data and facilitate recovery.\n| **Note:** Google Cloud recommends using continuous backup and recovery because it offers more granular recovery capabilities and reduces potential data loss compared to automated backups.\n\nRecommendations are generated daily.\n\nPricing\n-------\n\nThe AlloyDB enable backup plans recommender\nis available free of cost to all Google Cloud customers.\nFor more information, see [Recommender pricing](/recommender/pricing).\n\nBefore you begin\n----------------\n\nBefore you can view recommendations and insights, you must do the following:\n\n- Ensure that you [enable the Recommender API](/recommender/docs/enabling).\n- To get the permissions to view and work with insights and recommendations, ensure that you have the required [Identity and Access Management (IAM) roles](/alloydb/docs/reference/iam-roles-permissions).\n\nSee [Grant access to other users](/alloydb/docs/user-grant-access) for more information.\n\nList reliability recommendations for enabling automated backups\n---------------------------------------------------------------\n\nYou can list the enable automated backups recommendations by\nusing the Google Cloud console, `Google Cloud CLI`, or the Recommender API. \n\n### Console\n\nTo list enable automated backups recommendations using the\nGoogle Cloud console, follow these steps:\n\n1. In the Google Cloud console, go to the **Clusters** page.\n\n [Go to Clusters](https://console.cloud.google.com/alloydb/clusters)\n\n For more information, see\n [Getting started with Recommendation Hub](/recommender/docs/recommendation-hub/identify-configuration-problems).\n2. In the **Data protection** card, click **No backup policy enabled**.\n\n3. Under the **Resources** table, select instances with the **No backup policy enabled** recommendation.\n\n### gcloud CLI\n\nTo list enable automated backups recommendations using gcloud CLI, run the\n[`gcloud recommender recommendations list`](/sdk/gcloud/reference/recommender/recommendations/list)\ncommand as follows: \n\n```\ngcloud recommender recommendations list \\\n--project=PROJECT_ID \\\n--location=LOCATION \\\n--recommender=google.alloydb.cluster.ReliabilityRecommender \\\n--filter=recommenderSubtype=ENABLE_CLUSTER_BACKUP_POLICY\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the region where your instances are located, such as `us-central1`.\n\n### API\n\nTo list enable automated backups recommendations using the\n[Recommendations API](/recommender/docs/using-api), call the\n[`recommendations.list`](/recommender/docs/reference/rest/v1/projects.locations.recommenders.recommendations/list)\nmethod as follows: \n\n```\nGET https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/recommenders/google.alloydb.cluster.ReliabilityRecommender/recommendations?filter=recommenderSubtype=ENABLE_CLUSTER_BACKUP_POLICY\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the region where your instances are located, such as `us-central1`.\n\nView insights and detailed recommendations\n------------------------------------------\n\nYou can view insights and detailed recommendations about instances\nthat require enabling automated backups using the Google Cloud console,\n`Google Cloud CLI`, or the Recommender API. \n\n### Console\n\nTo view insights and detailed recommendations about instances that require enabling automated backups, click the recommendation link in the list of instances on the **Clusters** page.\n\n### gcloud CLI\n\nTo view insights and detailed recommendations about instances that require enabling automated backups, run the\n[`gcloud recommender insights list`](/sdk/gcloud/reference/recommender/insights/list)\ncommand as follows: \n\n```\ngcloud recommender insights list \\\n--project=PROJECT_ID \\\n--location=LOCATION \\\n--insight-type=google.alloydb.cluster.ReliabilityInsight \\\n--filter=insightSubtype=CLUSTER_BACKUP_POLICY_NOT_ENABLED\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the region where your instances are located, such as `us-central1`.\n\n### API\n\nTo view insights and detailed recommendations about instances that require enabling automated backups, use the\n[Recommendations API](/recommender/docs/using-api), call the\n[`insights.list`](/recommender/docs/reference/rest/v1/projects.locations.insightTypes.insights/list)\nmethod as follows: \n\n```\nGET https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/insightTypes/google.alloydb.cluster.ReliabilityInsight/insights?filter=insightSubtype=CLUSTER_BACKUP_POLICY_NOT_ENABLED\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the region where your instances are located, such as `us-central1`.\n\nApply recommendation\n--------------------\n\nTo implement this recommendation, do the following:\n\n1. Click **Enable automated backups** in the **Issues** column. An **Enable automated backups** window displays providing a recommendation.\n2. Click **View backup policy**.\n3. In the **Data protection** window, depending on the recommended backup policy, do one of the following:\n\n - To enable continuous backups and recovery, click **Edit** in the **Continuous backups \\& recovery** field.\n - To enable automated backups, click **Edit** in the **Automated backups** field.\n4. Set up a backup plan of your choice.\n\n For more information, see [Automated backup configuration attributes](/alloydb/docs/backup/configure#attributes).\n\nWhat's next\n-----------\n\n- [Google Cloud recommenders](/recommender/docs/recommenders)"]]