{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d67eec31-9c25-43cb-8477-bb55ee1f2578",
    "slug": "postgresql-s3-backups",
    "name": "PostgreSQL S3 backups",
    "description": "A simple utility to backup Postgres databases to S3 using Bun.",
    "url": "https://railway.com/deploy/postgresql-s3-backups",
    "upstream": {
      "repo_url": "https://github.com/ncontiero/postgres-s3-backups"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "PostgreSQL S3 Backups",
      "source": {
        "repo": "https://github.com/ncontiero/postgres-s3-backups"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "S3_BUCKET",
      "service": "PostgreSQL S3 Backups",
      "description": "The name of your S3 bucket.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "S3_REGION",
      "service": "PostgreSQL S3 Backups",
      "description": "The region of your S3 bucket.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PG_VERSION",
      "service": "PostgreSQL S3 Backups",
      "description": "The version of PostgreSQL to use when installing `pg_dump`.",
      "secret": false,
      "strategy": "default",
      "default": "18"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "PostgreSQL S3 Backups",
      "description": "The endpoint for your S3-compatible service (optional).",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "PostgreSQL S3 Backups",
      "description": "The connection URL for your PostgreSQL database.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "RUN_ON_STARTUP",
      "service": "PostgreSQL S3 Backups",
      "description": "Whether to run a backup on startup.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SINGLE_SHOT_MODE",
      "service": "PostgreSQL S3 Backups",
      "description": "Whether to run a single backup and then exit.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "PostgreSQL S3 Backups",
      "description": "Your S3 access key ID.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKUP_FILE_PREFIX",
      "service": "PostgreSQL S3 Backups",
      "description": "The prefix for the backup file name.",
      "secret": false,
      "strategy": "default",
      "default": "backup"
    },
    {
      "key": "BACKUP_CRON_SCHEDULE",
      "service": "PostgreSQL S3 Backups",
      "description": "The cron schedule for backups.",
      "secret": false,
      "strategy": "default",
      "default": "0 0 * * *"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "PostgreSQL S3 Backups",
      "description": "Your S3 secret access key.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postgresql-s3-backups"
      }
    },
    "cli": "railway deploy --template postgresql-s3-backups",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d67eec31-9c25-43cb-8477-bb55ee1f2578",
            "serializedConfig": {
              "services": {
                "72e1b94e-2ea0-4054-b251-26c5fc0050eb": {
                  "icon": "https://devicons.railway.app/PostgreSQL",
                  "name": "PostgreSQL S3 Backups",
                  "source": {
                    "repo": "ncontiero/postgres-s3-backups",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "S3_BUCKET": {
                      "description": "The name of your S3 bucket.",
                      "defaultValue": "{{S3_BUCKET}}"
                    },
                    "S3_REGION": {
                      "description": "The region of your S3 bucket.",
                      "defaultValue": "{{S3_REGION}}"
                    },
                    "PG_VERSION": {
                      "isOptional": true,
                      "description": "The version of PostgreSQL to use when installing `pg_dump`.",
                      "defaultValue": "18"
                    },
                    "S3_ENDPOINT": {
                      "description": "The endpoint for your S3-compatible service (optional).",
                      "defaultValue": "{{S3_ENDPOINT}}"
                    },
                    "DATABASE_URL": {
                      "description": "The connection URL for your PostgreSQL database.",
                      "defaultValue": "{{DATABASE_URL}}"
                    },
                    "BACKUP_OPTIONS": {
                      "isOptional": true,
                      "description": "Extra options to pass to the `pg_dump` command (optional).",
                      "defaultValue": ""
                    },
                    "RUN_ON_STARTUP": {
                      "isOptional": true,
                      "description": "Whether to run a backup on startup.",
                      "defaultValue": "false"
                    },
                    "BUCKET_SUBFOLDER": {
                      "isOptional": true,
                      "description": "A subfolder within the bucket to store backups (optional).",
                      "defaultValue": ""
                    },
                    "SINGLE_SHOT_MODE": {
                      "isOptional": true,
                      "description": "Whether to run a single backup and then exit.",
                      "defaultValue": "false"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "description": "Your S3 access key ID.",
                      "defaultValue": "{{AWS_ACCESS_KEY_ID}}"
                    },
                    "BACKUP_FILE_PREFIX": {
                      "isOptional": true,
                      "description": "The prefix for the backup file name.",
                      "defaultValue": "backup"
                    },
                    "BACKUP_CRON_SCHEDULE": {
                      "isOptional": true,
                      "description": "The cron schedule for backups.",
                      "defaultValue": "0 0 * * *"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "description": "Your S3 secret access key.",
                      "defaultValue": "{{AWS_SECRET_ACCESS_KEY}}"
                    },
                    "BACKUP_RETENTION_DAYS": {
                      "isOptional": true,
                      "description": "Number of days to keep backups before automatically deleting them.",
                      "defaultValue": ""
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0"
}
