backup
backup copied to clipboard
Ignore specific tables with parameter or only dump some tables
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!
Fixing the style errors...
I don't understand the last style error. I'm done trying to style the code. 🤣