It's definitely possible, but haven't ever played around with exporting data from the osTicket database - maybe it's possible to use the cli?!
I read always some commits over at github regarding osTicket cli and import/export. But even without cli it's possible with a 'simple' SQL script to get the data from the database. You can take a look at the code I used in my osTicket add-on to get ldap data into osTicket, but also read data from the osTicket database prior inserting data to MySQL database to make sure the data from ldap is inserted at the right places and only if it's necessary.
Hope it helps ;)