How can I upgrade to 6 from 3 on raspberry pi with snap

I am running a server from snap on my Raspberry Pi 4B, v3.18.2.
I would like to upgrade to v6.x, so that I can use mobile apps bc I have a lot of users on mobile. I would also like to keep my data. Could someone help me?