The Backstory
(Scroll to "Got Your Back" to get right to the solution).
Recently, I received the dreaded notification from Google that I'm approaching my 15GB storage limit. I am the type of person that doesn't like to do any mass deleting of emails, because I'm afraid I'll accidentally delete a single important one. I also reference old emails quite often, whether it's to reminisce or to retrieve a nice document I made years ago, that I'd like to reuse. The bottom line is, I have no interest in sifting through emails for hours, trying to delete enough to buy me another month or two before my storage starts running out again.
So, I decided, "Why don't I just create a new Gmail account, and move all of my work-related emails from my previous job to it?" I have a feeling that's a good 5-6GB worth of emails, and with it being so easy to switch between two accounts, I figured this was a great plan... until I attempted to actually move the old emails over to the new account.
Maybe there's a better solution out there than the one I found, but I most definitely could not find it. I had a difficult enough time locating ANY solution, much less a good one. It's a fairly simple process if you're looking to migrate ALL emails to the new account, but I needed to forward only certain labels and nested labels to the new account.
The most common answers I found were:
- Amit Agarwal's Bulk Forward from Gmail Script - This solution wasn't quite as easy to find, but it's definitely scattered about the web, and popular enough. It was the best solution before I found the one I'm about to tell you about. In a nutshell, you specify what label you want emails forwarded from, and what email address you want them forwarded to, and run the script. The problem is, Gmail imposes a 100/day sending limit, meaning it would've taken me something like 7.5 months to forward all the email I want to forward. This definitely doesn't cut it. I did try the script out, though, and it works perfectly for anyone that's interested! You can find it, along with a tutorial, here: http://www.labnol.org/internet/auto-forward-gmail-messages/20665/.
- Create a Filter - First and foremost, be advised that this does NOT WORK. It is a horrible suggestion that a surprising amount of people have made. They state that you can create a filter (Gmail's search bar - click the down arrow - enter your criteria - click to filter messages - check the "Forward it" option). Gmail even states at the bottom of the screen that old messages will not be forwarded. They're not lying. Clicking "Apply filter to existing X emails" does not "trick" Gmail into forwarding them. If only it were that easy...
- POP3/IMAP - This is probably easiest for anyone looking to migrate ALL mail. It's not particularly seamless if you want to preserve your labels (you can with IMAP, not POP), but all you have to do is set it up & it'll pull all of your emails into whatever 3rd party client you choose (Outlook, Thunderbird, Opera Mail, etc.). Then, you can mass forward to your heart's desire.
Then, as I was hopelessly searching for a better solution, I stumbled across Got Your Back. It was a one-line suggestion, absolutely buried within the mile-long comments of a random webpage I can't even remember at this point. So, for this reason, I'm writing about it here, to hopefully help spread the word!
Got Your Back
Got Your Back is an awesome, free, open source solution that allows for a pretty decent amount of customization. It's basically just a backup/restore tool, but it's the details that set it apart, and make it such an ideal solution for someone like myself.
You can download it
here, and the instructions are located
here. If you're not terribly computer savvy, don't be discouraged too quickly... it's not as hard as it looks! Plus, they have a helpful Google Groups community, located
here, where you can ask questions.
Here's How I Did It
NOTE -
Their instructions are more to-the-point and brief, if you want to just get right down to it, and you're confident enough that you know what you're doing. If you want to understand how/why I did things, read on!
I had a parent label - I'll name it Company - with 7 or 8 nested labels (sublabels, or child labels) - I'll call them Client1, Client2, Client3, etc. - that I wanted to migrate or mass forward to my new email account, which I'll call account2@gmail.com. My primary account, we'll call account1@gmail.com.
So, after following the initial instructions to download the GYB .zip file and extract it to the C:/ drive, I began some testing to ensure I could trust this program.
First, I went to Gmail's settings and turned off Conversation mode, so I could get the actual count of emails within each label, and compare them to what GYB was saying.
|
Click the Gear icon, go to Settings and turn off Conversation View to see
the number of actual emails within a label/search. |
Next, I went into the Client1 label, which I knew was a minimal amount of emails. I noted there were 182.
As per GYB's instructions, I opened a command prompt (Start - type CMD - hit enter - it'll bring up a black DOS-looking box). First, they instruct you to change to the proper directory by typing the following:
cd \gyb
That's cd-space-BACKslash-gyb then press enter to execute it. Not so hard, right?
Now that you're in the right directory, you can start executing commands and requests. The first thing I wanted to do was have GYB tell me how many emails it sees/would backup in the Client1 label. I did this by typing the following command:
gyb --email account1@gmail.com --action count --search "label:Client1"
That's gyb-space-dash-dash-email-space-account1@gmail.com-space-dash-dash-action-space-count-space-dash-dash-search-space-quotation marks-label:Client1-quotation marks. Then press enter to execute it.
The first time you run any command, a window will pop up, asking you to give GYB access to your Gmail account. Approve it, and go back to your command window, where it will now continue its count, and report its findings back to you. For me, it matched perfectly... 182.
So, I decided to do a test backup/restore. To perform the backup, here's what I typed:
gyb --email account1@gmail.com --action backup --search "label:Client1"
That's the exact same command as earlier, except the action is backup instead of count. Got Your Back performed the backup within seconds, and confirmed it was finished. So, now it's time to restore (aka, import) the emails to my new account (account2@gmail.com)! Here's how I did it:
gyb --email account2@gmail.com --action restore --local-folder GYB-GMail-Backup-account1@gmail.com
NOTE that the local-folder is the default folder backups are saved to. If you manually customized this, then you need to change the local-folder to whatever the correct path is. Also, just like before, since this is the first time I wrote a command for account2@gmail.com, a window will pop up asking me to give Got Your Back access to that email account. This is a one-time thing. Approve it, and go back to the command window to see the automagical restore taking place!
Once it was finished restoring, I hopped over to account2@gmail.com, and sure enough, all 182 emails were not only there, both the parent Company label and the Client1 child label were created, with all the emails sitting in Client1's label. I was thrilled... it worked!
I repeated this process for one or two more smaller client sublabels and had absolutely no problems whatsoever. It imported exactly as many emails as expected, it created all the labels for me in the new account, and everything appeared to be running perfectly.
Once I confirmed when a set of emails were successfully migrated over to account2@gmail.com, I would delete all of them from account1@gmail.com, thus creating a bit more storage space, label by label.
Since I now trust Got Your Back completely, I am in the middle of backing up one of my biggest labels, with nearly 10,000 emails in it. It's up to about 7,000, and counting! I can't wait to delete all 10,000 emails from that label in account1@gmail.com, and see how much storage space I was able to clear out with that one label.
With Gmail's great search capabilities, and GYB's ability to work with nearly every search term used in Gmail, this is by far the best solution for me, especially since I have no desire to delete a bunch of emails in order to make room.
I hope this helps even just one person that was in the same position as I have been for the past couple of weeks. Don't hesitate to comment or contact me if I can help!