{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5f3e058c-a345-4b43-b0fc-331da506c0e3",
    "slug": "mongo-migration-railway",
    "name": "Mongodb Data Migration",
    "description": "Migrate data of mongodb between services on railway",
    "url": "https://railway.com/deploy/mongo-migration-railway",
    "upstream": {
      "repo_url": "https://github.com/iqbalexperience/mongo-backup-tool-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "mongo-migration-railway",
      "source": {
        "repo": "https://github.com/iqbalexperience/mongo-backup-tool-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SOURCE_URL",
      "service": "mongo-migration-railway",
      "description": "\"${{Mongo.MONGO_PRIVATE_URL}}/mydb\" Reference variable or add database url of source",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DESTINATION_URL",
      "service": "mongo-migration-railway",
      "description": "\"${{Mongo.MONGO_PRIVATE_URL}}/mydb\" Reference variable or add database url of destination",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mongo-migration-railway"
      }
    },
    "cli": "railway deploy --template mongo-migration-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5f3e058c-a345-4b43-b0fc-331da506c0e3",
            "serializedConfig": {
              "services": {
                "3c89e598-2c74-4a94-8919-fc4d9fed92d5": {
                  "name": "mongo-migration-railway",
                  "source": {
                    "repo": "iqbalexperience/mongo-backup-tool-railway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "SOURCE_URL": {
                      "description": "\"${{Mongo.MONGO_PRIVATE_URL}}/mydb\" Reference variable or add database url of source",
                      "defaultValue": "{{SOURCE_URL}}"
                    },
                    "DESTINATION_URL": {
                      "description": "\"${{Mongo.MONGO_PRIVATE_URL}}/mydb\" Reference variable or add database url of destination",
                      "defaultValue": "{{DESTINATION_URL}}"
                    }
                  },
                  "volumeMounts": {
                    "3c89e598-2c74-4a94-8919-fc4d9fed92d5": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0"
}
