rt-shredder(8)
π rt-shredder β the RT reference page, but make it cute π
okay bestie, so this is the manual for rt-shredder, part of the Request Tracker reference set (that's the rt-shredder(8) situation, section 8, we're in the system admin zone π
).
β¨ NAME β¨
rt-shredder β the script that wipes out tickets from the RT DB. it's giving cleanup era, no cap. π§Ήπ
β¨ 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 β¨
so like, rt-shredder wipes out objects from your RT database. it does this using an API that the RT::Shredder module adds to RT. π¦
and honestly? this script can also just be your example of how to use the shredder API. study material fr fr. πβ¨
β¨ USAGE β¨
you've got several options that control which objects rt-shredder should wipe out. main character energy: you're the one choosing. π
β οΈ okay important: when you're using other options, the --plugin option must be provided last. like, it goes at the end. periodt.
β¨ OPTIONS β¨
πΎ --sqldump <filename>
outputs INSERT queries into a file for all shredded records. this dump can be used to restore data after wiping out. it's the lil save file bestie. π«Ά
by default rt-shredder creates files named <ISO_date>-XXXX.sql in the current directory.
π«πΎ --no-sqldump
don't generate the SQL dump file. nope, not doing it. π
the SQL dump file provides you with a way to "undo" the removal of records from your RT database, if needed. so like, only use this option if you are sure you have a recent, valid database backup in case you need to recover data that may have been shredded in error. do not skip the backup bestie, i'm begging π
π«₯ --object (DEPRECATED)
this option has been deprecated, use plugin "Objects" instead. it's giving retired. β¨
π --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. plug in, glow up, select your objects π
π --plugin list
outputs list of the available plugins. window shopping. ποΈ
β --plugin help-<plugin name>
outputs help for the specified plugin. ask and you shall receive, bestie. πΈ
π₯ --force
don't prompt with questions before shredding objects. no take-backs, no lil "are you sure?" moment. it just goes. β‘
π SEE ALSO π
RT::Shredderβ go read it, iykyk π
that's the whole page bestie, you ate it up π this was perl v5.38.2, dated 2023-10-29, filed under rt-shredder(8). slay, go shred responsibly π¦β¨π
π¦ where this page comes from
- ubuntu noble: request-tracker4 4.4.7+dfsg-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms