rt-externa...ttachments(8)

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

πŸ’– NAME πŸ’–

rt-externalize-attachments β€” the little tool that scoops your attachments up out of the database and plops them into external storage. Bestie, it's a glow-up for your database. ✨

It's a section 8 joint from the Request Tracker Reference manual, so yeah, sysadmin territory. Put your hard hat on, it's cute though, I promise. πŸŽ€


✨ SYNOPSIS ✨

rt-externalize-attachments [options]

That's it. That's the whole vibe. No positional args, just options. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: your RT database has been hoarding attachments like it's a dragon sitting on a pile of gold, and honestly? It's giving bloated. πŸ‰

rt-externalize-attachments moves those attachments out of the database and into some external storage instead. Database stays lean, files live somewhere else, everyone eats. Periodt.


🌸 OPTIONS 🌸

  • --age=AGE β€” only moves the attachments that are older than AGE days. Like, if you only wanna relocate the ancient stuff and leave the fresh ones alone, this is your girl. By default, everything gets moved. Everything. All of it. 😭
  • --batchsize=NUM β€” caps it at NUM attachments moved per run. Baby steps energy. Great if you don't wanna yeet your whole database in one go. By default, everything gets moved (yes, again, everything).
  • -h, --help β€” shows you this documentation. The classic. The icon. 🫢
  • -v, --verbose β€” logs a message at level info for each attachment: one before its upload begins, and one after it completes. So you get the "omg it's starting" and the "omg it's done" πŸ’– Two messages, one attachment, zero mystery.
  • --dry-run β€” does a trial run and makes no changes whatsoever. The output is mostly the same as a real run, so you can see exactly what would happen before you commit. Sneaky preview. πŸ‘€ Heads up though: dry-run implies verbose output, so it's chatty by nature. That's not a bug, that's the whole point.
🌈 Quick reminder bestie: --dry-run changes nothing. It's the safest little test drive. Use it before you go feral on production.

πŸ’œ SEE ALSO πŸ’œ

  • "External-storage" in RT_Config
  • RT::ExternalStorage

Go read those if you wanna know where your attachments are actually gonna end up. Iykyk. πŸ“š


Okay that's the whole page!! Written by the perl v5.38.2 girlies, dated 2023-10-29, straight outta section 8 of the Request Tracker Reference. Slay, go externalize something. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from