Skip to content
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

Ignore specific tables with parameter or only dump some tables #25

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Warafux
Copy link

@Warafux Warafux commented Aug 6, 2018

Hello,
thank you for the package, it is very useful! But I needed to ignore a specific table,in fact, the one that manages the backups.
So I decided to improve the package and here it is.

The use is simple, just add the parameter --ignore-tables and type inside the tables (sepparated with commas) that you want to ignore, example:
php artisan backup:mysql-dump my_backup --ignore-tables='backups,clients'

EDIT: I also added the "only these specific tables" feature. It is used with the argument --tables which will override the --ignore-tables argument.
php artisan backup:mysql-dump my_backup --tables='backups,clients'

Thank you again!

Example:
php artisan backup:mysql-dump my_backup --ignore-table='backups'
Ability to ignore multiple tables, example:
php artisan backup:mysql-dump my_backup --ignore-tables='backups,clients'
@Warafux
Copy link
Author

Warafux commented Aug 6, 2018

Fixing the style errors...

@Warafux
Copy link
Author

Warafux commented Aug 6, 2018

I don't understand the last style error. I'm done trying to style the code. 🤣

--tables='' parameter will override --ignore-tables='' argument
@Warafux Warafux changed the title Ignore specific tables with parameter Ignore specific tables with parameter or only dump some tables Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant