Greenmask dumps PostgreSQL and MySQL logically, masks sensitive fields, generates synthetic data, and restores backups compatible with standard SQL dump tools.
Overview
Greenmask is an open-source utility for logical database backup, anonymization, synthetic data generation, and restoration. It targets teams that need production-like data in development, testing, and CI without exposing real sensitive values.
PostgreSQL is fully supported; MySQL support is in progress. The tool is stateless and produces logical backups that work with familiar dump and restore workflows similar to pg_dump or mysqldump.
It can build smaller subset databases that keep referential integrity, including cyclic and polymorphic references. Backups can sit in local directories or S3-compatible object storage such as AWS S3, MinIO, or GCS. Masking can be deterministic via hash functions so the same input yields the same transformed output. Transformers can use values from other columns to keep rows logically consistent.
The same vendor positions Greenmask alongside Arcave for branching whole environments: Greenmask handles safe, realistic data while companion tooling captures and branches full stacks. Typical uses include local development with masked data, disposable CI environments, and staging refreshes with subsetted copies.
Key features
- Logical PostgreSQL and MySQL dumps
- Referentially intact database subsetting
- Deterministic hash-based masking
- Column-aware dynamic transformers
- S3-compatible and local storage
- Synthetic data generation
- Standard dump-compatible restore
Use cases
- Anonymized data for non-production environments
- Smaller dev databases from production
- CI pipelines with disposable realistic data
- Staging refresh with masked subsets
- Local debugging with safe production-like state
Does the same job as
Greenmask doesn't name these products itself, but its own description shows it does the same job.