Using GYB for 100+ user accounts

725 views
Skip to first unread message

David Walton

unread,
Jul 7, 2022, 3:09:55 PM7/7/22
to Got Your Back: Gmail Backup
Hi all,

We need to move 100+ email accounts from student clubs to Google groups. I was going to use GYB to download the emails from the original account and restore the mailbox to new Google groups.

Is there an easy way to do this in batch? Or will I have to manually authenticate GYB with each account and move them over?

Has anyone ever done GYB in bulk before? How do you do it?

I'm completely new to GYB (and an interim Google admin in our university, so my experience is minimal).

Thank you!

Thomas Prescott

unread,
Jul 8, 2022, 9:40:49 AM7/8/22
to Got Your Back: Gmail Backup
The easiest way (for me) was to create a new .BAT file with each GYB command listed line by line. It will take a few minutes to build, but then will be "set it and forget it". No reason you couldn't do it with 100, or 1,000 accounts.

Note: the --memory-limit 100 suffix was necessary last I did this.

Jay Lee

unread,
Jul 8, 2022, 11:01:33 AM7/8/22
to Got Your Back: Gmail Backup
If these are all Workspace accounts in the same domain then run:

--action check-serviceaccount

And follow it's instructions to authorize domain-wide access until all scopes pass. Then you can simply add:

--service-account

Argument to any backup/restore commands and you don't need to login as the actual user.

Jay

--
--
You received this message because you are subscribed to the Google
Groups "Got Your Back: Gmail Backup" group.
To post to this group, send email to got-yo...@googlegroups.com
To unsubscribe from this group, send email to
got-your-bac...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/got-your-back?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Got Your Back: Gmail Backup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to got-your-bac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/got-your-back/a2d17aeb-5b52-477e-b67a-7c04f63618bcn%40googlegroups.com.

David Walton

unread,
Jul 8, 2022, 11:26:08 AM7/8/22
to Got Your Back: Gmail Backup
Thanks, Jay — That seems like the best option. To clarify, will running action check-serviceaccount authorize GYB to all accounts in the domain? Would this notify users or would they see any change on their end?

Also, is it possible to limit it to only accounts in a particular OU?

Jay Lee

unread,
Jul 8, 2022, 11:42:00 AM7/8/22
to Got Your Back: Gmail Backup
The service account check will check if access is granted and is expected to fail the first time. It will then provide you with steps to grant access. Keep running the check until everything passes. That sometimes takes a few hours while propagation occurs.

Yes, it's all users, there's no way to limit it to only some users today.

Jay

Reply all
Reply to author
Forward
0 new messages