It'd probably be wise to take a backup of your database if you want to try it.
Always a good thing to do when automated tools supposedly mess around with your data 😄
How do I migrate a old NodeBB forum to a new server?
If you're using mongo, you can mongodump / mongorestore. There's a similar process for redis.
Then copy over your config.json