-
Notifications
You must be signed in to change notification settings - Fork 13
Distinguish mysql.filter into white- and blacklist #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distinguish mysql.filter into white- and blacklist #103
Conversation
src/config.ini
Outdated
typo3[] = "/^tx_extensionmanager_.*/i" | ||
all[] = "/^.*$/i" | ||
|
||
typo3caching[] = "/^cachingframework_.*/i" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why another name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My intension was to give this filter group a more meaningful name, because it's not "typo3" tables the user wants to exclude from transferring, it's only the "typo3 caching" tables. For other scenarios it might come in handy to just define "typo3news" tables or whatever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then doesn't all clisync.yml files in the project has to be changed? There is a filter setting which is currently set to typo3
instead of typo3caching
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that's probably true. On the other hand there would be an error that "typo3" cannot be found and an update to the clisync.yml is necessary. Shall I change it back?
@mblaschke : I worked on this feature a little again, fixed some bugs, made it more stable and all. The old 'filter' is still working as a fallback for the new (imho more intuitively labeled) 'blacklist'. I'd appreciate if you'd take a look and test it. I think it'll be a great addition to the syncing/backuping commands. |
@kitzberger conflicts :) |
…ist-blacklist Conflicts: src/app/CliTools/Console/Command/Mysql/BackupCommand.php src/app/CliTools/Console/Command/Sync/AbstractCommand.php
Can't see any ;-) |
Added a whitelist filter to mysqldump commands and therefore renamed "filter" to "blacklist".
It's possible to use both filters at the same time: any table not matching the whitelist is put onto the ignoredTables array, plus any table matching the blacklist.
Should any set mysql.filter argument trigger an exception? To inform the user to update their clisync.yml?
Any discussion / opinion / thought regarding this is highly appreciated!