Command line tool for locally backing up Gmail messages using Gmail's API over HTTPS. More information: https://github.com/GAM-team/got-your-back.
gyb --email {{email@gmail.com}} --action estimate
gyb --email {{email@gmail.com}} --action backup --local-folder {{path/to/directory}}
gyb --email {{email@gmail.com}} --search "{{is:important OR is:starred}}"
gyb --email {{email@gmail.com}} --action restore --local-folder {{path/to/directory}}