rt-dump-initialdata(8)
π rt-dump-initialdata π
hey bestie, welcome to the Request Tracker Reference manual page for rt-dump-initialdata. it's giving "clean out my closet and put it all in a box so another RT instance can move in" energy, and honestly? iconic. β¨
π NAME π
rt-dump-initialdata β Serialize an RT database to disk. that's it, that's the whole job, no cap. π
π SYNOPSIS π
rt-validator --check && rt-dump-initialdata
okay so this script is the one that writes out the objects initialdata supports from the RT database to disk, so you can later import them into a different RT instance. very "packing a suitcase for your data" of it.
but here's the thing, bestie β it requires that the data in the database be self-consistent in order to do that. so please, pretty please, make sure the database being exported passes validation by rt-validator before you even think about running rt-dump-initialdata. we do not want chaos. π
while it's running, it'll attempt to estimate how many objects are left to dump. these estimates are pessimistic, and they will be incorrect if --no-users or --no-groups is used. just so you know, fr fr.
and if the controlling terminal is large enough (more than 25 columns high) and the gnuplot program is installed, it will also show you a textual graph of the queue size over time. main character data viz moment. π
β¨ OPTIONS β¨
--directoryname β the name of the output directory to write the data files to. it should not exist yet; if it does, that's a fatal error. defaults to./$Organization:Date/, where$Organizationis whatever is set inRT_SiteConfig.pm, andDateis today's date. ποΈ--forceβ removes the output directory before starting. yeet first, dump after.--no-usersβ by default, all privileged users are dumped. passing--no-userslimits it to only those users which are referenced by the dumped tickets and history, and are thus necessary for internal consistency. strict little guest list.--no-groupsβ by default, all groups are dumped. passing--no-groupslimits it to only system-internal groups, which are needed for internal consistency.--no-assetsβ by default, all assets are dumped. passing--no-assetsskips assets during serialization. bye girl π--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.--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.--basefile β 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. π--gcn β adjusts how often the garbage collection sweep is done; lower numbers are more frequent. it shares the same code withrt-serializer, so see "GARBAGE COLLECTION" in rt-serializer.--pagen β adjusts how many rows are pulled from the database in a single query. disable paging by setting this to0. defaults to100.--quietβ do not show the graphical progress UI. silence, but make it chic. π€«--verboseβ do not show the graphical progress UI, but rather log as each row is written out. every single row. she's thorough. π
a lil reminder before you bounce: validate with rt-validator first, always. consistency is the vibe check this script actually cares about. π
and that's the page, bestie! this one's from perl v5.40.1, dated 2026-06-21 β so if you're reading this way in the future, hi, hope your database was self-consistent. mwah ππ¦
π¦ where this page comes from
- ubuntu stonking: request-tracker5 5.0.10+dfsg-3 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms