Skip to content
Arael Espinosa edited this page Apr 6, 2026 · 3 revisions

DBMigrator Wiki

DBMigrator is a CLI tool for copying PostgreSQL databases from production to development or staging environments, automatically redacting sensitive data according to configurable sanitization rules.

Pages

Quick Example

# 1. Write your config
cp config.example.yaml config.yaml

# 2. Validate before running
dotnet run --project src/DbMigrator -- validate --config config.yaml

# 3. Preview what will execute
dotnet run --project src/DbMigrator -- run --config config.yaml --dry-run

# 4. Execute
dotnet run --project src/DbMigrator -- run --config config.yaml

Clone this wiki locally