DekodeInteraktiv / anonymize-mysqldump

Allows you to pipe data from mysqldump or an SQL file and anonymize it.
GNU General Public License v3.0
17 stars 9 forks source link

Feature request: simplify command #20

Open JorgenStenshaugen opened 1 year ago

JorgenStenshaugen commented 1 year ago

I currently use a really simple bash script for this, but would be nice to have it out of the box.

The script allows me to just type anonymize filename.sql --config="path-to-config" --zip and it runs the anonymizer script and compresses the outputted sql file

instead of doing all this: cat filename.sql | anonymize-mysqldump --config "anonymize.config.json" > "filename_anonymized.sql"; tar -czvf "filename_anonymized.tar.gz" "filename_anonymized.sql" && rm -rf "filename_anonymized.sql"