{
  "manifest_version": "1.0.0",
  "template": {
    "id": "777b9ec0-a0be-44a7-8345-0dc03f242983",
    "slug": "mysql-backup-to-s3-service",
    "name": "MYSQL & MONGODB Backup to S3 Service",
    "description": "Quick backup your Mysql or MongoDB to any S3 service.",
    "url": "https://railway.com/deploy/mysql-backup-to-s3-service",
    "upstream": {
      "repo_url": "https://github.com/poziomekk/mysql-mongodb-backup-to-s3"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "mysql-backup-to-s3",
      "source": {
        "repo": "https://github.com/poziomekk/mysql-mongodb-backup-to-s3"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DEBUG",
      "service": "mysql-backup-to-s3",
      "description": "Output mysql/mysqldump commands to console. 0/1",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "AWS_S3_BUCKET",
      "service": "mysql-backup-to-s3",
      "description": "The S3 bucket where the backups will be stored. (only name)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "AWS_S3_REGION",
      "service": "mysql-backup-to-s3",
      "description": "The AWS region where the S3 bucket is located. (try auto)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQL_ENABLED",
      "service": "mysql-backup-to-s3",
      "description": "Enable MySQL backup. (true/false)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "AWS_S3_ENDPOINT",
      "service": "mysql-backup-to-s3",
      "description": "S3 endpoint URL, withOUT bucket name.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MONGODB_ENABLED",
      "service": "mysql-backup-to-s3",
      "description": "Enable MongoDB backup. (true/false)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "mysql-backup-to-s3",
      "description": "The AWS access key ID for accessing S3.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BACKUP_CRON_SCHEDULE",
      "service": "mysql-backup-to-s3",
      "description": "The cron schedule for automatic backups.",
      "secret": false,
      "strategy": "default",
      "default": "0 1 * * *"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "mysql-backup-to-s3",
      "description": "The AWS secret access key associated with the access key ID.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mysql-backup-to-s3-service"
      }
    },
    "cli": "railway deploy --template mysql-backup-to-s3-service",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "777b9ec0-a0be-44a7-8345-0dc03f242983",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5e970e4d-7bef-42d3-9da4-d94efc80e21f": {
                  "icon": null,
                  "name": "mysql-backup-to-s3",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "poziomekk/mysql-mongodb-backup-to-s3",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "DEBUG": {
                      "isOptional": false,
                      "description": "Output mysql/mysqldump commands to console. 0/1",
                      "defaultValue": "0"
                    },
                    "MONGODB_URI": {
                      "isOptional": true,
                      "description": "MongoDB connection string. If the URI contains a database name it will be backed up; otherwise all non-system databases are backed up.",
                      "defaultValue": ""
                    },
                    "AWS_S3_BUCKET": {
                      "isOptional": false,
                      "description": "The S3 bucket where the backups will be stored. (only name)",
                      "defaultValue": "{{AWS_S3_BUCKET}}"
                    },
                    "AWS_S3_REGION": {
                      "isOptional": false,
                      "description": "The AWS region where the S3 bucket is located. (try auto)",
                      "defaultValue": "{{AWS_S3_REGION}}"
                    },
                    "MYSQL_ENABLED": {
                      "description": "Enable MySQL backup. (true/false)",
                      "defaultValue": "{{MYSQL_ENABLED}}"
                    },
                    "AWS_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint URL, withOUT bucket name.",
                      "defaultValue": "{{AWS_S3_ENDPOINT}}"
                    },
                    "MONGODB_ENABLED": {
                      "description": "Enable MongoDB backup. (true/false)",
                      "defaultValue": "{{MONGODB_ENABLED}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "The AWS access key ID for accessing S3.",
                      "defaultValue": "{{AWS_ACCESS_KEY_ID}}"
                    },
                    "BACKUP_CRON_SCHEDULE": {
                      "isOptional": false,
                      "description": "The cron schedule for automatic backups.",
                      "defaultValue": "0 1 * * *"
                    },
                    "BACKUP_DATABASE_HOST": {
                      "isOptional": true,
                      "description": "The hostname or IP address of the database server.",
                      "defaultValue": ""
                    },
                    "BACKUP_DATABASE_PORT": {
                      "isOptional": true,
                      "description": "The port number on which the database server is listening.",
                      "defaultValue": ""
                    },
                    "BACKUP_DATABASE_USER": {
                      "isOptional": true,
                      "description": "The username to connect to the database server.",
                      "defaultValue": ""
                    },
                    "MYSQL_BACKUP_DB_NAME": {
                      "isOptional": true,
                      "description": "Name of the database to backup. Leave empty to backup all databases.",
                      "defaultValue": ""
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "The AWS secret access key associated with the access key ID.",
                      "defaultValue": "{{AWS_SECRET_ACCESS_KEY}}"
                    },
                    "BACKUP_DATABASE_PASSWORD": {
                      "isOptional": true,
                      "description": "The password to connect to the database server.",
                      "defaultValue": ""
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0"
}
