mortenscheel / mysqldump-filter
CLI tool to filter table data from mysqldump
v0.2
2022-08-07 11:56 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A CLI tool that allows filtering out data from selected tables in a .sql dump.
Installation
composer global require mortenscheel/mysqldump-filter
Usage
Example:
cat dump.sql | mysqldump-filter --skip=some_table,another_table | mysql -u username -p db_name cat dump.sql | mysqldump-filter --only=some_table,another_table | mysql -u username -p db_name
Contributions
All contributions are welcome