Gitify icon indicating copy to clipboard operation
Gitify copied to clipboard

add option "--ignoretables" to BackupCommand.php

Open jenswittmann opened this issue 1 year ago • 2 comments

What does it do ?

Add the mysqldump parameter --ignore-table.

Why is it needed ?

Sometimes you don't need to backup tables like modx_context_setting or something like that. Now you can ignore this table with gitify backup --ignoretables=modx_context_setting. I use this to do a local backup and restore to the live server, but don't want the context settings for SmartRouting.

jenswittmann avatar Nov 26 '24 16:11 jenswittmann

I wonder if we should name it --ignore-table for consistency with the mysqldump syntax but other than that, this is a good improvement. Thanks @jenswittmann!

Mark-H avatar Jan 24 '25 18:01 Mark-H

@Mark-H feel free to rename it 😸

jenswittmann avatar Jan 24 '25 20:01 jenswittmann

Nice one @jenswittmann , thanks! I've renamed it.

muzzwood avatar Sep 19 '25 09:09 muzzwood