- Created by Former user, last modified by Justin Aakre on May 07, 2019
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 13 Next »
Landing page for confluence articles related to Bethel Mail (Gmail).
Summary: Shows how to use Got Your Back (GYB) to migrate email from a Google account (GApps or Gmail) to another Google account.
Note: The user needs to be present for this process to be done. They will need to authenticate both the source and destination account.
This tutorial was tested with version 0.45 (https://github.com/jay0lee/got-your-back/releases/download/v0.45/gyb-0.45a-windows.zip)
For this tutorial we will use the following sample info:
Source account: source@bethel.edu
Destination account: destination@bethel.edu
Backup Label (optional): tobackup
Restore label (highly recommended): Restore-Date (example: Restored-April5-2016)
Installing GYB
- Download GYB at https://github.com/jay0lee/got-your-back/releases
- Extract the archive to a folder of you choice. The email will be downloaded to this folder for the migration process.
- Open the folder. (You will find gyb.exe here. You will run GYB directly from this folder.)
- You can get a list of options that GYB can do by:
- Opening a command prompt in the folder (Shift+Right Click an empty area in the folder and click Open command window here)
Run the command:
gyb.exe --help
Backing up a mailbox
- [Optional] Have the user label everything they want downloaded from the source account with gmail labels.
This can be done in advance. If no labeling is done you can only download the whole mailbox. - Open a command prompt in the folder with GYB (see Installing GYB)
- Get access to the destination account first by running the following commands: (we will need this later to restore the backup)
Destination account first:
gyb.exe --email destination
@bethel
.edu --action estimate
You will find that a file appears in the folder with gyb.exe that is called destination@bethel.edu.cfg
- GYB will ask what actions you want to perform on the account. Type 2 for Gmail Restore Only and hit Enter. The selection will look as follows
- Type 7 for Continue and hit Enter
- A web browser will open and ask the user for credentials to authenticate. (GYB will request access to the account and specify the permissions it needs. The user must accept to continue.)
- The browser will say authentication complete and the command prompt will say "403: Insufficient Permission - insufficientPermissions" this is normal as we did not want the destination account to be read.
- You will notice that a new file has appeared called destination@bethel.edu.cfg this will need to be deleted when the whole process is complete.
- Backup the source account
- You can do a selective backup if the user labeled their emails or backup everything. Pick one.
Command to backup a labeled mailbox: (the text after --search can be tested in gmail by searching with the exact text, no quotes)
Labeled backupgyb.exe --email source
@bethel
.edu --action backup --search
"label:tobackup"
Command to backup everything in the mailbox:
Backing up the whole mailboxgyb.exe --email source
@bethel
.edu --action backup
GYB will ask what actions you want to perform on the account. Type 1 for Gmail Backup Only and hit Enter. The selection will look as follows
- Type 7 for Continue and hit Enter
- A web browser will open and ask the user for credentials to authenticate. (GYB will request access to the account and specify the permissions it needs. The user must accept to continue.)
- The backup may take some time to run. Once complete you will notice that the folder containing gyb.exe now has an additional folder named GYB-GMail-Backup-source@bethel.edu. This folder contains the backed up emails
- There is also a file named source@bethel.edu.cfg this will need to be deleted once the process is complete.
- You can do a selective backup if the user labeled their emails or backup everything. Pick one.
Restoring a mailbox:
- You will need the backup files from the backup step above.
- Open a command prompt in the folder with GYB (see Installing GYB)
Restore the mailbox to the destination:
gyb.exe --email destination
@bethel
.edu --action restore --local-folder GYB-GMail-Backup-source
@bethel
.edu --label-restored Restored-April5-
2016
This may take a while. Also note that you must be in the folder that contains both gyb.exe and the GYB-GMail-Backup-source@bethel.edu folder or you will need to adjust the command.
- Authentication was already done before the backup so GYB should be able to restore all the data. If it fail for some reason you can run the command again and it should not duplicate any of the emails.
Clean up:
- Once the process of restoring is complete and you no longer need access the the users account delete the downloaded mail folder and the cfg files that were mentioned
- Delete folder GYB-GMail-Backup-source@bethel.edu
- Delete files: source@bethel.edu.cfg and destination@bethel.edu.cfg
- Important: Make sure to tell the user to revoke access for GYB on their google account.
- Visit security.google.com
- Near the top of the page you will find Security Checkup click Get Started.
- If you have multiple bethel accounts linked to you name select the appropriate account
- Click Looks good twice to get to Check your account permissions
- Click remove on Got Your Back: Gmail Backup (you may need to expand the list to see it)
- Click done then Continue to account settings
Troubleshooting:
- The software is well designed if any step fails you can just run it again. Multiple restore attempts should not generate duplicated emails. However every time you restore you should label the restore to have a backup plan so you can delete all the duplicates should something go really wrong.
Determine the Type of Migration
- Before the transfer occurs, communicate to the user they are only allowed to keep personal emails and must separate any work related emails out. Ideally, have the user create a specific label to contain the mail designated for migration.
- If they want to transfer it onto a different email address (that's not their Bethel University account), skip to Transfer section
- If they want to keep the email on the email address it's currently on, and it hasn't been purged, we need to contact Systems to get the temporary email address activated and transfer it into this temporary email account.
- If they want to keep the email on the email address it's currently on, and it has been purged, Specialists contact HR and get temporary approval, and then send the approval to systems.
Transfer Process
Designate labels for migration and sort personal mail into these labels from their Bethel Gmail account.
User must go to settings in their Bethel account and do the following:
- Enable IMAP
- Enable IMAP for the labels designated for migration
- Enable IMAP on the receiving email account
- Allow Less Secure Apps in My Account Security Settings
Initiate a remote session using Bomgar and Initiate the Yippie Move process.
YippieMove login credentials are stored in the User Services 1Password vault.
Click on "Start"
Username: Bethel email address (enter the full address of the mailbox you want to transfer from)
Password: Bethel password
Provider: Gmail (note that Bethel University is listed as a provider but as of 2018 did not work)
Proceed with migration
Google Takeout allows easy transfers, but at this time content cannot be selectively transferred. The user can choose to move all emails or none, as well as all owned Google Drive files or none of them. Web URL: https://takeout.google.com/transfer
- No labels