{
  "manifest_version": "1.0.0",
  "template": {
    "id": "863a42e4-50e4-4b4a-9dbc-2e93de0f00bd",
    "slug": "sparkling-creation",
    "name": "postgres-s3-backup",
    "description": "Automated PostgreSQL backups to S3 with restore verification",
    "url": "https://railway.com/deploy/sparkling-creation",
    "upstream": {
      "repo_url": "https://github.com/Kjudeh/railway-postgres-backups"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres-s3-backup",
      "source": {
        "repo": "https://github.com/Kjudeh/railway-postgres-backups"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DEBUG",
      "service": "postgres-s3-backup",
      "description": "Enable verbose debug logging",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "S3_BUCKET",
      "service": "postgres-s3-backup",
      "description": "S3 bucket name for storing backups",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "S3_REGION",
      "service": "postgres-s3-backup",
      "description": "AWS region",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "RETRY_DELAY",
      "service": "postgres-s3-backup",
      "description": "Initial retry delay in seconds (exponential backoff)",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "postgres-s3-backup",
      "description": "S3-compatible endpoint URL (e.g. https://s3.amazonaws.com)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "WEBHOOK_URL",
      "service": "postgres-s3-backup",
      "description": "Webhook URL for notifications (Slack/Discord)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres-s3-backup",
      "description": "PostgreSQL connection string (postgresql://user:pass@host:port/db)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "BACKUP_PREFIX",
      "service": "postgres-s3-backup",
      "description": "S3 key prefix for organizing backups",
      "secret": false,
      "strategy": "default",
      "default": "postgres-backups"
    },
    {
      "key": "RETRY_ATTEMPTS",
      "service": "postgres-s3-backup",
      "description": "Number of S3 upload retry attempts",
      "secret": false,
      "strategy": "default",
      "default": "3"
    },
    {
      "key": "BACKUP_INTERVAL",
      "service": "postgres-s3-backup",
      "description": "Backup frequency in seconds",
      "secret": false,
      "strategy": "default",
      "default": "3600"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "postgres-s3-backup",
      "description": "S3 access key ID",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKUP_ENCRYPTION",
      "service": "postgres-s3-backup",
      "description": "Enable AES-256 encryption (true/false)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "COMPRESSION_LEVEL",
      "service": "postgres-s3-backup",
      "description": "Gzip compression level (1-9)",
      "secret": false,
      "strategy": "default",
      "default": "6"
    },
    {
      "key": "WEBHOOK_ON_FAILURE",
      "service": "postgres-s3-backup",
      "description": "Send notification on failed backup",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "WEBHOOK_ON_SUCCESS",
      "service": "postgres-s3-backup",
      "description": "Send notification on successful backup",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "postgres-s3-backup",
      "description": "S3 secret access key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKUP_ENCRYPTION_KEY",
      "service": "postgres-s3-backup",
      "description": "Encryption key (required if encryption enabled, 32+ chars)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKUP_RETENTION_DAYS",
      "service": "postgres-s3-backup",
      "description": "Days to retain backups",
      "secret": false,
      "strategy": "default",
      "default": "7"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sparkling-creation"
      }
    },
    "cli": "railway deploy --template sparkling-creation",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "863a42e4-50e4-4b4a-9dbc-2e93de0f00bd",
            "serializedConfig": {
              "services": {
                "a3caf715-6e96-4b90-897a-43e84ed9e38d": {
                  "name": "postgres-s3-backup",
                  "source": {
                    "repo": "Kjudeh/railway-postgres-backups",
                    "branch": null,
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "DEBUG": {
                      "description": "Enable verbose debug logging",
                      "defaultValue": "false"
                    },
                    "S3_BUCKET": {
                      "description": "S3 bucket name for storing backups",
                      "defaultValue": "{{S3_BUCKET}}"
                    },
                    "S3_REGION": {
                      "description": "AWS region",
                      "defaultValue": "us-east-1"
                    },
                    "RETRY_DELAY": {
                      "description": "Initial retry delay in seconds (exponential backoff)",
                      "defaultValue": "5"
                    },
                    "S3_ENDPOINT": {
                      "description": "S3-compatible endpoint URL (e.g. https://s3.amazonaws.com)",
                      "defaultValue": "{{S3_ENDPOINT}}"
                    },
                    "WEBHOOK_URL": {
                      "description": "Webhook URL for notifications (Slack/Discord)",
                      "defaultValue": "{{WEBHOOK_URL}}"
                    },
                    "DATABASE_URL": {
                      "description": "PostgreSQL connection string (postgresql://user:pass@host:port/db)",
                      "defaultValue": "{{DATABASE_URL}}"
                    },
                    "BACKUP_PREFIX": {
                      "description": "S3 key prefix for organizing backups",
                      "defaultValue": "postgres-backups"
                    },
                    "RETRY_ATTEMPTS": {
                      "description": "Number of S3 upload retry attempts",
                      "defaultValue": "3"
                    },
                    "BACKUP_INTERVAL": {
                      "description": "Backup frequency in seconds",
                      "defaultValue": "3600"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "description": "S3 access key ID",
                      "defaultValue": "{{S3_ACCESS_KEY_ID}}"
                    },
                    "BACKUP_ENCRYPTION": {
                      "description": "Enable AES-256 encryption (true/false)",
                      "defaultValue": "false"
                    },
                    "COMPRESSION_LEVEL": {
                      "description": "Gzip compression level (1-9)",
                      "defaultValue": "6"
                    },
                    "WEBHOOK_ON_FAILURE": {
                      "description": "Send notification on failed backup",
                      "defaultValue": "true"
                    },
                    "WEBHOOK_ON_SUCCESS": {
                      "description": "Send notification on successful backup",
                      "defaultValue": "false"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "description": "S3 secret access key",
                      "defaultValue": "{{S3_SECRET_ACCESS_KEY}}"
                    },
                    "BACKUP_ENCRYPTION_KEY": {
                      "description": "Encryption key (required if encryption enabled, 32+ chars)",
                      "defaultValue": "{{BACKUP_ENCRYPTION_KEY}}"
                    },
                    "BACKUP_RETENTION_DAYS": {
                      "description": "Days to retain backups",
                      "defaultValue": "7"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-09T00:02:40.379Z",
  "generator_version": "0.1.0"
}
