While roundcube doesn't offer the function to export all email, it will usually allow you to connect a desktop mail client via IMAP with that functionality.
I recommend using an open source mail client such as Thunderbird, as it's free and well supported.