Is there a way how to backup my messages?

If not, which folders do I have to copy in order to make a backup? Cuz there are pretty many mail folders