Topic on Extension talk:AbuseFilter

How to export/import all filters?

7
Sokote zaman (talkcontribs)

hello

How can I copy all the filters on my site?

How can I export the filters on my site?

thanks

Daimona Eaytoy (talkcontribs)

There's no way to do that, see T42191.

Sokote zaman (talkcontribs)

So what is this guide for?

php dumpBackup.php \

--plugin=AbstractFilter:extensions/ActiveAbstract/AbstractFilter.php \

--current \

--output=gzip:/dumps/abstract.xml.gz \

--filter=namespace:NS_MAIN \

--filter=noredirect \

--filter=abstract

Daimona Eaytoy (talkcontribs)

I'm unsure, but that seems to mention "AbstractFilter", which has nothing to do with AbuseFilter.

Sokote zaman (talkcontribs)

Thank you for taking the time to follow up

Ciencia Al Poder (talkcontribs)

If you're interested, there's a grabAbuseFilter.php in Manual:Grabbers to import all public filters from one wiki to other.

Daimona Eaytoy (talkcontribs)

Thanks for pointing this out, I'll mention it on phabricator. However, note that the script doesn't currently work, because it doesn't update the abuse_filter_action table (used to retrieve enabled actions for existing filters). I'm also unsure about the impact of not adding an entry in abuse_filter_history. I wouldn't recommend using it as-is on a public-facing wiki, because it would put the DB in an inconsistent state.

Reply to "How to export/import all filters?"