RT-DUMP...TIALDATA(1)
β¨ NAME β¨
rt-dump-initialdata β the girl whose whole job is serializing an RT database to disk πΎβ¨ (yes bestie, it's rt-dump-initialdata(1), we're doing this)
π SYNOPSIS π
rt-validator --check && rt-dump-initialdata
Okay so listen. This script writes out the objects that initialdata supports, pulling them from your RT database and dropping them on disk, so you can later import them into a different RT instance. Slay, right? But here's the catch, and it's lowkey important: it needs the data in the database to be self-consistent to do any of it. So pls pls pls make sure the database you're exporting passes validation by rt-validator before you even think about running rt-dump-initialdata. No cap.
While it's running, it'll try to estimate how many objects are left to dump. Heads up though β those estimates are pessimistic, and they will be incorrect if --no-users or --no-groups is used. It's giving "vibes-based math" and we respect it anyway. π
And if your controlling terminal is big enough (more than 25 columns high) and the gnuplot program is installed? It'll also show you a textual graph of the queue size over time. Iconic behaviour, honestly. π
πΈ OPTIONS πΈ
--directory nameβ the name of the output directory you want the data files written into. It should not exist yet β if it does, that's a fatal error, periodt. Defaults to./$Organization:Date/, where$Organizationis whatever's set inRT_SiteConfig.pm, andDateis today's date. ποΈ--forceβ removes the output directory before starting. Deleting things upfront, main character energy π--no-usersβ by default, all privileged users get dumped. Passing--no-userslimits it to only those users which are referenced by dumped tickets and history, and are thus necessary for internal consistency. Just the essentials, bestie.--no-groupsβ by default, all groups get dumped. Passing--no-groupslimits it to only system-internal groups, which are needed for internal consistency.--no-assetsβ by default, all assets get dumped; passing--no-assetsskips assets during serialization. π--no-disabledβ by default, all queues, custom fields, etc, including disabled ones, are dumped; passing--no-disabledskips such disabled records during serialization.--no-deletedβ by default, all assets, including deleted ones, are dumped; passing--no-deletedskips deleted assets.--no-scripsβ by default, all scrips and templates are dumped; passing--no-scripsskips them.--no-aclsβ by default, all ACLs are dumped; passing--no-aclsskips them.--no-queuesβ by default, all queues are dumped; passing--no-queuesskips them.--limit-queuesβ takes a list of queue IDs or names separated by commas. When provided, only that set of queues will be dumped. Cherry-picking, but make it queue-shaped π--syncβ by default, record ids are ordinarily excluded. Pass--syncto include record ids if you intend to use this for sync rather than creating a generic initialdata.--base fileβ the file path which the to be generatedinitialdata.jsonwill compare to. If there are any changes, they will be saved tochanges.json. π
This option implies --sync. (She said what she said.)
--gc nβ adjust how often the garbage collection sweep is done; lower numbers are more frequent. It shares the same code withrt-serializer, so go seeGARBAGE COLLECTIONin rt-serializer. π§Ή--page nβ adjust how many rows are pulled from the database in a single query. Disable paging by setting this to0. Defaults to100.--quietβ do not show graphical progress UI. π€«--verboseβ do not show graphical progress UI, but rather log was each row is written out. (Yes, the spelling is exactly like that in the source and we are keeping it, fr fr.)
β οΈ Real talk bestie: rt-validator before you dump. Self-consistency is not optional here, it's the whole vibe check. π«Ά
That's the whole page, diva. This lil masterpiece came to you as perl v5.42.3, dated 2026-07-20, and it is literally part of the RT-DUMP...TIALDATA(1) user-contributed Perl documentation. Go forth and serialize responsibly π₯ππ
π¦ where this page comes from
- fedora 43: rt 5.0.10-1.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms