HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
GAM-team
got-your-back
Python2016–2025
GAM-team / got-your-back

got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.

24Distinct people
32Mentions
1Explicit recommenders
3.1KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

I have not tried Gmvault, but I have tried two other backup solutions. I recommend [GYB]: - I have successfully migrated a 10+ GB gmail account to another account. - There were…

Leftium used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year32 dated mentions

Observed mentions: 2016-11-18 13:31:18 UTC to 2025-12-31 15:09:43 UTC.

02462016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 7 mentions; 0 submissions, 7 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 6 mentions; 0 submissions, 6 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC202
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC202
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC312
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC404
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC707
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC606
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC404
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC303

What Hacker News says

32 sources
Leftium·Jan 10, 2025Recommendation phrase
I have not tried Gmvault, but I have tried two other backup solutions. I recommend [GYB]: - I have successfully migrated a 10+ GB gmail account to another account. - There were a few emails that could not be restored, but I think this is a limitation of the Gmail API: it does not allow an email to be restored if it thinks it contains malicious content. - There was also a large swath of emails that were restored with the wrong date (date of restoration instead of actual email date.) This was a little annoying and hopefully can be fixed later. - Downsides: complicated installation and no simple way to view/search through emails. [MailStore] is good for archiving emails (but not restoring them): - Lacks one crucial feature: resume restore. A 10GB+ restore never works to completion on the first try, and mailstore must start over every time. S
Read the rest
o I never got it to successfully restore. - However, it has a simple UI that allows you to search/view your emails. [GYB]: https://github.com/GAM-team/got-your-back/wiki [MailStore]: https://www.mailstore.com/en/products/mailstore-home/
In Gmvault: Backup and restore your Gmail account
It's not a solution to all of Takeout's problems, but if you just care about backing up email within a Google Workspace, check out Got Your Back: https://github.com/GAM-team/got-your-back It is, I believe, written by a Google employee. It's a really great CLI tool that allows you to dump mailboxes to disk as a bunch of text files. You can also restore them to another account. Lots of flexibility as well. I gave up on Takeout and Google's own Data Migration tool, both of which I found just too flaky and inconsistent - my experience was not dissimilar to that in the OP.
In Why Google Takeout is sooo bad
MailStore Home[1] is a free email archiving program. - It has indexed (read: fast) search + basic reader/browser. - Portable version so you can just copy to USB and share with anyone. - Successfully downloaded 10+ GB of Gmail. (190,000+ emails.) - The one caveat is the restore/upload isn't very good. It is very slow, and I never got it to succeed. (No resume; must start all over on error.) So for email backup/transfer, I switched to GYB (which can resume and successfully restored/transferred nearly all of the emails): https://github.com/GAM-team/got-your-back [1]: https://www.mailstore.com/en/products/mailstore-home/
In Ask HN: How do you handle mbox files?
I did a bunch of research on this earlier this year. I really do enjoy Gmail, even if it is technically a cloud service. So, I split the difference on this one. I use a Gmail account as "primary", but I still have my own domain for email inboxes. The best option I found is to have my own domain (e.g. at Hover) and then have the MX servers managed by Cloudflare's new product, email routing. They also handle SPF, DKIM, and DMARC. That's described here[1] and here[2]. What's nice about this setup: you have your own domain; you can setup custom forwarding rules; all email flows to a single GMail inbox. You can also still send email "from" those domains if you use the Gmail SMTP server[3]. So then your only concern is backup and email message export. For this, I setup automation with a script called got-your-back (gyb)[4]; it's a nice Python s
Read the rest
cript with incremental backup that can archive your Gmail account and restore it to another account. I set up a second Gmail account to test this restore functionality. [1]: https://blog.cloudflare.com/introducing-email-routing/ [2]: https://www.cloudflare.com/products/email-routing/ [3]: https://jhart99.com/cloudflare-outbound-email/#outbound-emai... [4]: https://github.com/GAM-team/got-your-back
In Ask HN: Do You Host Your Own Email?
Notice that Google Takeout is broken with regards to non-UTF8 email encodings (for some of you who archive old emails). I noticed it when coding a small tool https://github.com/karteum/gmvaultdb to (among other things) import the mbox from Takeout into an sqlite DB : Google performs some encoding conversions that permanently break all non-ascii characters in non-UTF8 emails (they are all replaced by 0xEFBFBD). In order to archive old emails, I had to use mbsync with IMAP (gmvault does not work anymore with Python 3, and I didn't try yet https://github.com/GAM-team/got-your-back ).
In Google terminated our Developer Account, says it is “associated”

Showing the 15 most recent of 32 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.