{
  "manifest_version": "1.0.0",
  "template": {
    "id": "753ef5a7-47c1-408c-b2ad-41ca92068eb8",
    "slug": "postgresql-backups-to-gcs",
    "name": "PostgreSQL Backups to GCS",
    "description": "Scheduled PostgreSQL backups to Google Cloud Storage.",
    "url": "https://railway.com/deploy/postgresql-backups-to-gcs",
    "upstream": {
      "repo_url": "https://github.com/Ayko-Technologies/railway-gcp-postgres-backup"
    }
  },
  "services": [
    {
      "name": "railway-gcp-postgres-backup",
      "source": {
        "repo": "https://github.com/Ayko-Technologies/railway-gcp-postgres-backup"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "GCP_BUCKET",
      "service": "railway-gcp-postgres-backup",
      "description": "Google Cloud Storage bucket where backups are stored.",
      "secret": false,
      "strategy": "default",
      "default": "your-gcs-bucket-name"
    },
    {
      "key": "GCP_PROJECT_ID",
      "service": "railway-gcp-postgres-backup",
      "description": "Google Cloud project ID that owns the backup bucket.",
      "secret": false,
      "strategy": "default",
      "default": "your-gcp-project-id"
    },
    {
      "key": "BACKUP_DATABASE_URL",
      "service": "railway-gcp-postgres-backup",
      "description": "PostgreSQL connection string for the database to back up.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GCP_SERVICE_ACCOUNT_KEY",
      "service": "railway-gcp-postgres-backup",
      "description": "Base64-encoded service-account JSON with permission to write to the bucket.",
      "secret": true,
      "strategy": "default",
      "default": "your-base64-encoded-service-account-json"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postgresql-backups-to-gcs"
      }
    },
    "cli": "railway deploy --template postgresql-backups-to-gcs",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "753ef5a7-47c1-408c-b2ad-41ca92068eb8",
            "serializedConfig": {
              "services": {
                "be97832f-c250-47b8-93d4-671bc6716f4e": {
                  "icon": "https://devicons.railway.com/i/googlecloud.svg",
                  "name": "railway-gcp-postgres-backup",
                  "deploy": {
                    "cronSchedule": "0 0 * * *"
                  },
                  "source": {
                    "repo": "Ayko-Technologies/railway-gcp-postgres-backup",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "GCP_BUCKET": {
                      "description": "Google Cloud Storage bucket where backups are stored.",
                      "defaultValue": "your-gcs-bucket-name"
                    },
                    "GCP_PROJECT_ID": {
                      "description": "Google Cloud project ID that owns the backup bucket.",
                      "defaultValue": "your-gcp-project-id"
                    },
                    "BACKUP_DATABASE_URL": {
                      "description": "PostgreSQL connection string for the database to back up.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "GCP_SERVICE_ACCOUNT_KEY": {
                      "description": "Base64-encoded service-account JSON with permission to write to the bucket.",
                      "defaultValue": "your-base64-encoded-service-account-json"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T22:14:43.398Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T21:01:46.668Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c84eddb1d5f0430c916d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 91,
    "typical_build_seconds": 36,
    "typical_start_seconds": 5,
    "slowest_service": "railway-gcp-postgres-backup"
  }
}
