{
  "slug": "gcloud-backup-dr-backup-plans-create-and-update-configure-log-retention-fdeeacf9cc5b",
  "title": "gcloud backup-dr backup-plans create and update configure log retention",
  "tools": [
    "gcloud"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-28T00:00:00.000Z",
  "announced_at": "2026-07-28T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating or updating a Cloud Backup DR backup plan, set PITR log retention with `--log-retention-days=<days>`; the value must meet the backup vault’s minimum enforced retention duration.",
    "examples": [
      "gcloud backup-dr backup-plans create <BACKUP_PLAN> --project=<PROJECT> --location=<LOCATION> --backup-vault=<BACKUP_VAULT> --resource-type=<RESOURCE_TYPE> --log-retention-days=<DAYS>",
      "gcloud backup-dr backup-plans update <BACKUP_PLAN> --project=<PROJECT> --location=<LOCATION> --log-retention-days=<DAYS>"
    ],
    "gotchas": [
      "Availability: Available across all release tracks.",
      "BACKUP_PLAN (required): Backup plan name; it must be unique within the project and location when creating a plan.",
      "--project: Sets the project; the project can also be set in gcloud configuration or through a fully specified resource name.",
      "--location (required): Backup plan location.",
      "--backup-vault (required): Backup Vault ID or fully qualified identifier; required when creating a plan.",
      "--resource-type (required): Type of resource to which the backup plan applies; required when creating a plan.",
      "--log-retention-days: Number of days to store logs; must be greater than or equal to the backup vault’s minimum enforced retention duration.",
      "Prerequisite: Create the plan in a location where Backup and DR is available; update it in a region supported by the Backup and DR Service.",
      "Prerequisite: Set log retention to at least the backup vault’s minimum enforced retention duration."
    ]
  },
  "why_it_matters": "When creating or updating a Cloud Backup DR backup plan, configure Point-in-Time Recovery log retention.",
  "sources": [
    "https://docs.cloud.google.com/sdk/docs/release-notes#57800_2026-07-28",
    "https://docs.cloud.google.com/sdk/gcloud/reference/backup-dr/backup-plans/create",
    "https://docs.cloud.google.com/sdk/gcloud/reference/backup-dr/backup-plans/update"
  ],
  "rank": 0.96016,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "cloud-20261008",
    "verdict_id": "cloud-20261008:cloud-20261008-646b77704826ceef-3:gate",
    "evidence_hash": "af5855921baf0ca18aaf1c790f5a5b2bea9336b8e03294f52467edc5c92748d1"
  },
  "review": {
    "draft_hash": "ff2763eba90db9b43b2796b065bfd1d6de43cf14ba54abd127169e1c1ad1bfd9",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "cloud-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
