I have been using this for years and it's great software. One tip, store each different email account in it's own "database" my crontab looks like this:
I sync it all locally to my house then back it up to Dropbox as well. The reason to store them in different datebases is you cannot "filter" them out when restoring so if they all go to the same DB if you restore you are restoring ALL your email across all accounts to one new account.
Chiming in to second this comment for anyone who is skeptical of using gmvault. I too have used it for years with great success. Thanks to the author for creating it!
I'm interested to know what the pros and cons are of this utility vs using the Google takeout functionality? I like the idea of this project but I don't know what it would gain me over Google's native export? Is it the restoration that's missing from Google's service?
My coworker and I both tried this yesterday, and today we both received an email with this error message: "Sorry, we encountered a problem when creating your Google data archive."
I am actively trying to get off of dropbox. I really want a similar native application experience that syncs to-and-from S3. Not a cron job using the s3 cli, not something that only works on osx/windows/etc... So far owncloud enterprise is the only polished looking solution I've found, but thats a bit overkill...
WARNING/fun fact: it doesn't download all emails properly. Last time I tried it, it seemed that when the Gmail server randomly closed a connection (or maybe some other time, but I think it was in these instances), the program would just keep whatever partial results it had and then move on to the next email. Which meant I had a lot of partial emails on my drive (only a small fraction of all the emails, but still), and no way to detect them.
Given how easy and carelessly Google can close your account and ruin your digital life, I guess periodic backups of your cloud accounts will soon be considered a good practice.
Data is only half the problem. The other is that email address has become the "primary key" for everything. Banking websites, random forums, everything. It's sometimes impossible to change it because it's the "primary key" for identity on that website. And email addresses are not portable like phone numbers.
Email addresses are portable to any webmail, mail server or other email infrastructure provider if you have your own domain and then forward to the service of your choice. This way you can use Gmail if you like or maintain your own full email stack, or anything in between, while still addressing your mail to something you control.
Since Gmail supports imap and pop3, one could simply use any proven email client to backup the emails. I don't think a special tool that or may not work is needed for this.
Which "proven email client" do you recommend? There's an Import/Export extension for Thunderbird, one of the last standing desktop mail apps, but it's not good at handling huge, multi-thousand message exports.
gmvault is purpose-built and quite simple. I've used it before with success. It backs up your whole mailbox in one command. Why should we fiddle with a desktop mail client?
The 'restore' feature looks nice. But would it be of any value if Google decides to close your account? That is, can I take my backup emails from Gmail and 'restore' it to [email protected] in order to migrate all those emails over?
My backup of Gmail is to use Mail.app via IMAP + download all attachments.
I then have a backup of my computer ->
1. Time Machine +
2. Arq->S3/Glacier
Given that this keeps mail locally in a constantly readible format (offline, copied in mbox)... is there something missing in my basic solution that this cli utility adds?
Not as full featured (can't restore), but it's just a 77-line Python script. You could audit it yourself to make sure it doesn't upload your creds to another server.
Yep! And much more. But gmvault does also restore emails to an account, interestingly.
I am (slowly) working on a project to pull some statistics from Takeout's mbox file for Mail. Also want to play around with the Location History, Chrome data and Hangouts exports.
Since yesterday I have a few Google Takeout zip files in my backup ( https://takeout.google.com/settings/takeout ). I've used gmvault in the past, but this looks superior from the outside. Haven't delved into the data I'll admit.
I am working on digging around this data right now, actually. Some details on my website (see profile) and I will post on HN about it at some point when I get things further along (also want to look at Location History and Chrome data exports).
I find it incredibly easier to configure and run periodically in a cron job. Plus I've never had even the slightest stability issue with gmvault whereas Thunderbird (which I use anyway to read emails at work) has bad days from time to time.
Additionally, the output format (gzipped plain email + metadata) looks very convenient for indexing / analysis; something I'm dreaming of for a long time.
I have used this in the past to backup email accounts of resigned employees so we continue to stay well within the maximum number of active accounts for our free Google Apps.
It generally works fine and it allows you to restore the emails to a different account name. (I sometimes temporarily restore an account to search for old emails). It seems to have some issues with restoring accounts with a lot of large emails (large or multiple attachments) especially those that have reached the 15GB quota.
I have been using Spanning backup for several years now. It backs up our Gmail, documents , calendars, contacts, sites It is one of those set-it-and-forget-it type services. The company is acquired by EMC now. The service costs us around $35/year/email account; for us it is small price for peace of mind. I wrote a review of them few years back - http://reviewofweb.com/gmail/backupify-vs-spanning/
[+] [-] joshstrange|9 years ago|reply
[+] [-] nicholasjarnold|9 years ago|reply
[+] [-] laumars|9 years ago|reply
What's the database format it uses, sqlite3? (I tried looking on the repo but couldn't any obvious reference)
[+] [-] handruin|9 years ago|reply
https://takeout.google.com/settings/takeout
[+] [-] xur17|9 years ago|reply
[+] [-] amelius|9 years ago|reply
(Note that these aspects may also make the tool a little more dangerous to use.)
[+] [-] e40|9 years ago|reply
[+] [-] tonyplee|9 years ago|reply
I wonder how to use them once I have the backup data?
[+] [-] emilburzo|9 years ago|reply
I'm using Gmvault for Gmail (emails and chats), pretty effortless and with enough features for me, especially the export to maildir.
And rclone[2] for Google Drive, in "create a local mirror" mode (sync).
Any other tools to backup your Google life?
[1] - https://news.ycombinator.com/item?id=12972554 [2] - http://rclone.org/
[+] [-] jdc0589|9 years ago|reply
[+] [-] wfunction|9 years ago|reply
[+] [-] ljosa|9 years ago|reply
[+] [-] wyldfire|9 years ago|reply
[+] [-] wielebny|9 years ago|reply
[+] [-] tyingq|9 years ago|reply
- XOauth
- Sync to another gmail account (incrementally)
Edit: Also supports only backing up emails with a specific gmail tag.
[+] [-] pawadu|9 years ago|reply
[+] [-] scholia|9 years ago|reply
It has been good practice for a couple of decades. Of course, getting people to follow good practices is another matter....
[+] [-] adam12|9 years ago|reply
[+] [-] Demcox|9 years ago|reply
[+] [-] bit_logic|9 years ago|reply
[+] [-] eigenvector|9 years ago|reply
[+] [-] laurent123456|9 years ago|reply
[+] [-] andybak|9 years ago|reply
[+] [-] cookiecaper|9 years ago|reply
gmvault is purpose-built and quite simple. I've used it before with success. It backs up your whole mailbox in one command. Why should we fiddle with a desktop mail client?
[+] [-] AdmiralAsshat|9 years ago|reply
[+] [-] bshep|9 years ago|reply
Go to the website click on documentation then indepth then restore.
You can also export to other formats ex. mbox
[+] [-] timdafweak|9 years ago|reply
[+] [-] kingnight|9 years ago|reply
I then have a backup of my computer -> 1. Time Machine + 2. Arq->S3/Glacier
Given that this keeps mail locally in a constantly readible format (offline, copied in mbox)... is there something missing in my basic solution that this cli utility adds?
[+] [-] jxy|9 years ago|reply
I guess this utility benefits people who only use gmail's web interface.
[+] [-] ajennings|9 years ago|reply
Not as full featured (can't restore), but it's just a 77-line Python script. You could audit it yourself to make sure it doesn't upload your creds to another server.
[+] [-] lexalizer|9 years ago|reply
[+] [-] dharma1|9 years ago|reply
[+] [-] cdubzzz|9 years ago|reply
I am (slowly) working on a project to pull some statistics from Takeout's mbox file for Mail. Also want to play around with the Location History, Chrome data and Hangouts exports.
[+] [-] tedmiston|9 years ago|reply
[+] [-] lima|9 years ago|reply
[+] [-] hengheng|9 years ago|reply
[+] [-] cdubzzz|9 years ago|reply
[+] [-] amq|9 years ago|reply
[+] [-] Arkanosis|9 years ago|reply
Additionally, the output format (gzipped plain email + metadata) looks very convenient for indexing / analysis; something I'm dreaming of for a long time.
[+] [-] ozim|9 years ago|reply
[+] [-] tajen|9 years ago|reply
[+] [-] hatchoo|9 years ago|reply
It generally works fine and it allows you to restore the emails to a different account name. (I sometimes temporarily restore an account to search for old emails). It seems to have some issues with restoring accounts with a lot of large emails (large or multiple attachments) especially those that have reached the 15GB quota.
[+] [-] hobarrera|9 years ago|reply
It's sad that after all these years, google still hasn't gotten around to properly implementing IMAP.
[+] [-] fgpwd|9 years ago|reply
[+] [-] ajonit|9 years ago|reply
[+] [-] aq3cn|9 years ago|reply
Are there similar tools for MS Outlook or Protonmail or if it is possible to modify gmvault to work with either one?