rt-shredder(8)

πŸ“¦
version 4.4.7 Β· 5 versions
, in ubuntu noble

πŸ’– 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