rt-shredder man page

rt-shredder — Script which wipe out tickets from RT DB

Synopsis

rt-shredder --plugin list
rt-shredder --plugin help-Tickets
rt-shredder --plugin 'Tickets=query,Queue="general" and Status="deleted"'
rt-shredder --sqldump unshred.sql --plugin ...
rt-shredder --force --plugin ...

Description

rt-shredder - is script that allow you to wipe out objects from RT DB. This script uses API that RT::Shredder module adds to RT. Script can be used as example of usage of the shredder API.

Usage

You can use several options to control which objects script should wipeout.

Options

--sqldump <filename>

Outputs INSERT queries into file. This dump can be used to restore data after wiping out.

By default creates files named <ISO_date>-XXXX.sql in the current directory.

--object (DEPRECATED)

Option has been deprecated, use plugin "Objects" instead.

--plugin '<plugin name>[=<arg>,<val>[;<arg>,<val>]...]'

You can use plugins to select RT objects with various conditions. See also --plugin list and --plugin help options.

--plugin list

Output list of the available plugins.

--plugin help-<plugin name>

Outputs help for specified plugin.

--force

Script doesn't ask any questions.

See Also

RT::Shredder

Info

2016-07-28 perl v5.24.0 User Contributed Perl Documentation