Migrating a shared Gmail mailbox to a Google Group# *Had to enable Groups Migration API on the GYB GCP project for this to work
# Export the mailbox in question to a local sqlite dump: (a GYB update awhile back made this work for .mbox files too, i.e. Google Vault exports can work just as well, see note below)
gyb --email gmail-...@domain.org --service-account# Make sure the destination group has the following settings configured:
# -All users set to receive 'No Email'
# -Set group message to archive. May be easiest to set the group as a collaborative inbox template
# -In some cases, allow public posting
# Import the local sqlite dump/.mbox to the Group in question:
gyb --action restore-group --service-account --use-admin admin-...@domain.org --email destinat...@domain.org --local-folder GYB-GMail-Backu...@domain.org(after an update awhile back this now works for .mbox files too, just put them in the local folder)