gmail-backup Installation on Mac

About gmail-backup : Backup and restore the content of your Gmail account!
More Information: https://code.google.com/archive/p/gmail-backup-com/
Steps:

  1. Launch Terminal by pressing command+space, type terminal and hit Enter key.
  2. Run
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install
    brew install gmail-backup

Done!

More about gmail-backup:

Gmail Backup allows to backup and restore the content of your Gmail account. It uses the IMAP protocol to fetch and store your messages. It can also be used to migrate your messages between two accounts, for example between your private inbox and the Google Apps account.

This project contains the open source code of Gmail Backup (hosted at www.gmail-backup.com) licensed under GNU GPL v3.