Setup instructions on wiki don't match what I'm seeing (non- GSuite user)

513 views
Skip to first unread message

ilium007

unread,
Feb 24, 2021, 7:15:26 AM2/24/21
to Got Your Back: Gmail Backup

I am trying to run the setup process for a non-GSuite account (my GSuite account works fine)

gyb % ./gyb --email xxx...@gmail.com --action create-project                                                                                                                              13:39:25

Go to the following link in your browser:

    https://gyb-shortn.jaylee.us/xxxxxx

Enter verification code: xxxxxxx
Creating project "Got Your Back Project"...
Checking project status...
 enabling API drive.googleapis.com...
 enabling API gmail.googleapis.com...
 enabling API groupsmigration.googleapis.com...
 enabling API iap.googleapis.com...
 enabling API vault.googleapis.com...
Creating Service Account
Setting project consent screen...
Please go to:

https://console.cloud.google.com/apis/credentials/oauthclient?project=xxxxxxx

1. Enter "GYB" for "Application name".
2. Leave other fields blank. Click "Save" button.
3. Choose "Desktop app". Enter a desired value for "Name". Click the blue "Create" button.
4. Copy your "client ID" value.

Enter your Client ID: xxxxxxx.apps.googleusercontent.com

Now go back to your browser and copy your client secret.
Enter your Client Secret: xxxxxxx
That's it! Your GYB Project is created and ready to use.
gyb % ./gyb --email xxx...@gmail.com --action check-service-account                                                                                                                       14:13:30
 Scope: https://mail.google.com/                                     FAIL
 Scope: https://www.googleapis.com/auth/apps.groups.migration        FAIL
 Scope: https://www.googleapis.com/auth/drive.appdata                FAIL
 Scope: https://www.googleapis.com/auth/userinfo.email               FAIL

Some scopes failed! To authorize them, please go to:

  https://gyb-shortn.jaylee.us/xxxxxxx

You will be redirected to the G Suite admin console. The Client Name and API
Scopes fields will be pre-populated. Please click Authorize to allow these
scopes access. After authorizing it may take some time for this test to pass so
go grab a cup of coffee and then try this command again.

When I run the initial setup I get a consent screen setup asking for scope access etc etc. Its nothing like the GSuite setup. I fumble my way through it and then when I think its all done and I go to the last URL in the process I get an error about regular GMail accounts not being able to sign in to admin.google.com

Screen Shot 2021-02-24 at 2.23.26 pm.png

Jay Lee

unread,
Feb 24, 2021, 7:18:19 AM2/24/21
to Got Your Back: Gmail Backup
Individual users don't need to do check-serviceaccount. Not sure where you are seeing that but just skip that step and try a backup.

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/b7e17962-3f42-44dc-8048-200cfc99e6b6n%40googlegroups.com.

ilium007

unread,
Feb 24, 2021, 7:46:08 AM2/24/21
to Got Your Back: Gmail Backup
So I have tried again...

gyb % ./gyb --action create-project --email xx...@gmail.com                                                                                                                             23:38:03


Go to the following link in your browser:

    https://gyb-shortn.jaylee.us/xxxxx

Enter verification code: xxxxxxx
Creating project "Got Your Back Project"...
Checking project status...
 enabling API drive.googleapis.com...
 enabling API gmail.googleapis.com...
 enabling API groupsmigration.googleapis.com...
 enabling API iap.googleapis.com...
 enabling API vault.googleapis.com...
Creating Service Account
Setting project consent screen...
Please go to:

https://console.cloud.google.com/apis/credentials/oauthclient?project=xxxxxxx

1. Enter "GYB" for "Application name".
2. Leave other fields blank. Click "Save" button.
3. Choose "Desktop app". Enter a desired value for "Name". Click the blue "Create" button.
4. Copy your "client ID" value.

Enter your Client ID:


Screen Shot 2021-02-24 at 11.43.16 pm.png


If I step through this screen it asks for scopes??? Not sure what I should be giving access to here, but it certainly doesn't match what the CLI says to do.

Screen Shot 2021-02-24 at 11.44.41 pm.png

Jay Lee

unread,
Feb 24, 2021, 7:57:13 AM2/24/21
to Got Your Back: Gmail Backup
Yes, Google has made some changes here for end user security that do confuse the process somewhat. You don't need to "publish" your app here or anything and you shouldn't need to put scopes in. Just proceed by filing out the minimal amount of info to continue until you can get back to the credentials tab and generate a client id.

I'll try to improve the gyb flow at some point but until then you're just going to need to keep at it and ask for help if you get stuck.

Jay

Y Chai

unread,
Aug 24, 2022, 6:14:32 AM8/24/22
to Got Your Back: Gmail Backup
Is there a way to get around the 7-day limit without needing to publish the app?

Thanks Jay for the good work! 

Jay Lee

unread,
Aug 24, 2022, 6:18:18 AM8/24/22
to Got Your Back: Gmail Backup
Not that I'm aware.

Jay


Reply all
Reply to author
Forward
0 new messages