Try SysTools Gmail Backup tool to export Gmail emails, contacts, calendars and Google drive storage files into multiple file formats. This tool also takes the backup of Google Docs / Spreadsheets / Slides / Images. For more info, visit its official website: https://www.systoolsgroup.com/gmail-backup.html
Gmvault - Backup the emails in your Gmail account.
imapsync - Console-based utility for migrating IMAP mailboxes.
MailStore - MailStore Home - A 100% free single-private-user desktop solution
audriga Email and Groupware migration - Easily migrate your email, contacts, calendar items and tasks to your new provider or server. No software installation is required.
Got Your Back - Got Your Back (GYB) is a command line tool that backs up and restores your Gmail account.
OfflineIMAP - OfflineImap synchronizes email between an IMAP server and a MailDir or between two IMAP servers.