Not sure if there is an official way but you can find these in
~/.local/share/spacebar
They are in an sqlite database which you can access with
sqlite3 ~/.local/share/spacebar/messages.sqlite
eg.
SELECT * FROM Messages;
You should be able to use these files as a backup
~/.local/share/spacebar
They are in an sqlite database which you can access with
sqlite3 ~/.local/share/spacebar/messages.sqlite
eg.
SELECT * FROM Messages;
You should be able to use these files as a backup