rt-importer(8)
π NAME π
okay so bestie, meet rt-importer β it imports a serialized RT database right on top of the current one. yep, on top. we're stacking. π«Ά
β¨ SYNOPSIS β¨
rt-importer path/to/export/directory
so basically you point it at a directory, and it goes to work π
πΈ DESCRIPTION πΈ
This script is the bestie that unpacks the contents of a dump that rt-serializer made earlier. It creates all of the objects from that dump in the current database, and that can include users, queues, and tickets. so, like, the whole personality of your old RT shows up in the new one. π¦
good news: you can stop the import process with Ctrl+C (^C) if you need to, and then pick it back up later just by re-running the importer. it remembers. it's chill. π
Certain records (notably queues and groups π) will have their original Organization name prepended to them on import. Why? mainly to dodge duplicate names β like, if you import a General queue into an RT that already has a General queue, without this you'd get a name collision error and everything would be so embarrassing. π
so if you're confident you won't have any name collisions in queues or groups, you can suppress this whole behavior by passing the --exclude-organization flag to rt-importer. your call, bestie. β¨
π OPTIONS π
--listβ prints a summary of all the data hanging out inside the dump. little peek inside the box π¦--quietβ suppresses the progress bars during an import. this option is implied when the output isn't going directly to a terminal (so non-interactive runs just get quiet mode for free, no cap).--originalidcfname β drops the original ticket organization and ID into a global custom field with the name you give it. and if there's no global ticket custom field with that name in the current database, it will create one for you. so generous of it π₯Ή--exclude-organizationβ ordinarily certain records (groups, queues, and the--originalidcustom field) include the organization name of the original RT instance. use this option to suppress that behavior and just use the original name directly. periodt.--askβ prompts you for what to do when an error happens while inserting a record into the database. this can often happen when you're importing data from very old RTs where some attachments (usually spam π) contain invalid UTF-8.
the importer will pause and ask if you want to ignore the error and continue on, or abort (potentially so you can restart later).
β οΈ ignoring errors will result in missing records in the database, which may cause database integrity problems later. if you ignored any errors, you should run rt-validator after import. seriously, bestie, run it.
--ignore-errorsβ ignore all record creation errors and just keep going while importing. this is literally equivalent to running with--askand manually typingignoreat every single prompt π. you should always runrt-validatorafter importing with errors ignored.
π this option can be dangerous and leave you with a broken RT! like, actually broken. not the cute kind of broken.
--dumpclass[,class] β printsData::Dumperrepresentations of the objects of type class in the serialized data. mostly useful for debugging, iykyk π§
works only in conjunction with --list. π (that's the whole vibe, it doesn't do anything alone)
--no-auto-commitβ don't auto commit to the database. when this flag is used, it will commit only once for each data file. this could boost performance in some cases π₯--batch-user-principalsNUMBER β the number of user principals to create in batch beforehand. default is0. this is to improve performance for not-cloned serialized data of big instances, and usually you don't need to specify this. like, genuinely, usually don't.--batch-group-principalsNUMBER β same deal, but for group principals. the number of group principals to create in batch beforehand. default is0. again, for performance on not-cloned serialized data of big instances, and usually you don't need to specify this either. π--batch-sizeBATCH_SIZE β create objects in batch. default is0, which means batch processing is not enabled. this is for data serialized with--cloneor--all. for cloned serialized data, each batch processing will also take place in a separate child process. πΆ--max-processesMAX_PROCESSES β the number of max allowed child processes for batch processing. default is10. this is for cloned serialized data only. πββοΈπββοΈπββοΈ
π CLONED DATA π
Some dumps may have been taken as complete clones of the RT system. heads up bestie: those are only suitable for inserting into a schema that has no data in it. empty. nada. π³οΈ
You can set up the required database state for the receiving RT instance by running:
/usr/sbin/rt-setup-database --action create,schema,acl --prompt-for-dba-password
and like, the normal make initdb step will not work, because it also inserts core system data. so don't do that one. it's giving wrong move. π
and that's the whole thing, you ate it π β¨ this page came to you courtesy of perl v5.40.1, dated 2026-06-21 β rt-importer(8), signing off, 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