Restoring to Vault

43 views
Skip to first unread message

Priya Chandra

unread,
Oct 30, 2025, 1:58:31 AM10/30/25
to Got Your Back: Gmail Backup
Hi everyone - I'm sure this is a simple question and so apologies in advance.

Essentially I have a .mbox file from Google Workspace Vault A (easily downloaded via Vault export, yay!). Now I need to upload it to Google Workspace Vault B (bypassing the user's regular inbox as they don't want to see the messages, just have them in vault).

So, set up GYB as per normal and tried the following:
gyb --email user@account --action restore-mbox --local-folder "C:\Users\path\name" --service-account --vault

and got 
google.auth.exceptions.RefreshError: ('unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.', {'error': 'unauthorized_client', 'error_description': 'Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.'})

So I'm asusming I need to add a new auth to my domain wide delegation butI don't know what it should be! As I said, it's an easy question I'm sure for more experienced people than me!

Cheers,
Priya

Rodrigue Merhi

unread,
Jul 10, 2026, 12:16:24 PM (6 days ago) Jul 10
to Got Your Back: Gmail Backup
Hi,

I just started dabbling with gyb yesterday actually and I was doing a test backup and restore and had all the trouble in the world to get the restore working.

Not sure if it's your first restore but where I used this command to backup (it's not a vault backup, but I suspect the syntax will work the same with teh additional flag):
gyb.exe --email <@ TO BACKUP> --action backup --service-account

I could not use the service account to restore, I had to use this command instead:
gyb.exe --email <@ WHERE TO RESTORE> --action restore-group --use-admin <@ SUPER ADMIN> --local-folder " C:\Users\path\name"

If it helps any, great, if it doesn't just ignore me :)
Reply all
Reply to author
Forward
0 new messages