-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Arael Espinosa edited this page Apr 6, 2026
·
3 revisions
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.
- Getting Started — Installation, requirements, and first run
-
Configuration — Full reference for
config.yaml - CLI Commands — All commands and options
- Sanitization Strategies — How each strategy works with examples
- Validation — Pre-execution schema and config checks
- Docker Usage — Running with Docker and docker-compose
- Faker Methods Reference — All available faker methods
# 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