Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your local computer. It uses the standard IMAP protocol but also takes advantage of some custom Gmail IMAP extensions.

Here’s how I used it to move all my email messages from one gmail account to another one.

Download it from here:

Put it in your home folder in a filder called gyb.

From terminal:

cd ~/gyb

python --email --action estimate

tells you what it will do

python --email --action backup

backs it all up, mine took 8GB


python --email --action restore --local-folder --label-restored "old"

restores it from backup to a different google account  and puts a label on it all called ‘old’

Leave a Reply