gyb: backup & restore Gmail

gmail_compGmail is the most widely used email service today. Wouldn’t it be great if you could backup your emails locally and restore them whenever you needed from the cmdline? got-your-back (gyb) is a Python3 utility that can do it for you. gyb uses a secure connection (HTTPS) to talk to Gmail APIs.

Features

  • Gmail backup and restore
  • Selective backup with search results
  • Mutiple permissive modes (only backup or only restore)
  • Gmail full access (including message purge)
  • Manipulate labels
  • Google Apps groups restore
  • Check Gmail quota
  • Works on Linux, Windows and Mac

Installation

To install gyb on Ubuntu, run:

$ sudo apt-get install python3-openssl python3-cffi
$ git clone https://github.com/jay0lee/got-your-back
$ cd got-your-back
$ chmod +x gyb.py

Usage

To check the full help, run:

$ ./gyb.py --help

To initiate a connection:

$ ./gyb.py --email yourmail@gmail.com --action estimate

Perform a backup:

$ ./gyb.py --email youremail@gmail.com --action backup --local-folder destination_dir

Restore a backup to another gmail account:

$ ./gyb.py --email newaddress@gmail.com --action restore --local-folder source_dir

Selectively backup mails matching search criteria:

$ ./gyb.py --email youremail@gmail.com --search "is:important OR is:starred"

Rating

Features: 4.5/5
Usability: 4/5

On GitHub: gyb

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s