done! but no email

52 views
Skip to first unread message

Eric Ferland

unread,
Mar 20, 2024, 3:49:33 PM3/20/24
to Got Your Back: Gmail Backup
I run this 
gyb.exe --email us...@example.com --action restore-mbox --local-folder "C:\temp\pst\mbox\test" --label-restored "TestLabel" --use-admin ad...@example.com --service-account

Restoring from 0 B file C:\temp\pst\mbox\test\Top of Outlook data file.mbx...

Restoring from 0 B file C:\temp\pst\mbox\test\Top of Outlook data file\Deleted Items\Deleted Items.mbx...

Restoring from 0 B file C:\temp\pst\mbox\test\Top of Outlook data file\Inbox\Inbox.mbx...

Restoring from 103.63kb file C:\temp\pst\mbox\test\Top of Outlook data file\Inbox\Onboard\Onboard.mbx...
restoring 3 messages (4)
done!



But I have none of the restored email or a labeled named "TestLabel" Am I missing something? 

Dustin Douglas

unread,
Mar 21, 2024, 9:04:06 AM3/21/24
to got-yo...@googlegroups.com
I believe the --use-admin switch is only for restoring to a group. 

--
--
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/3f728342-2d48-4421-bf17-35d88bfc06c8n%40googlegroups.com.


--
Dustin Douglas

Eric Ferland

unread,
Mar 21, 2024, 9:14:19 AM3/21/24
to got-yo...@googlegroups.com
ad...@example.com the project attached to it. I get errors with it like this 

gyb.exe --email us...@example.com --action restore-mbox --local-folder "C:\temp\pst\mbox\test" --label-restored "TestLabel"  ad...@example.com --service-account

and like this 

gyb.exe --email us...@example.com --action restore-mbox --local-folder "C:\temp\pst\mbox\test" --label-restored "TestLabel"  --service-account   ad...@example.com 

You received this message because you are subscribed to a topic in the Google Groups "Got Your Back: Gmail Backup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/got-your-back/Kdx9pPzyUQY/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAN7%2B_F4G6qME%2BqkxEzPZfp%2B%3DUAr8SVyQ6xH0rVafcNx1cwuqZw%40mail.gmail.com.

Dustin Douglas

unread,
Mar 21, 2024, 9:27:37 AM3/21/24
to got-yo...@googlegroups.com
I've never needed to specify an admin account to do a user restore when using a service account. From my understanding GYB is using the service account credentials to impersonate the user specified in --email-address - it wouldn't need the admin account in any way. 


Eric Ferland

unread,
Mar 21, 2024, 9:47:56 AM3/21/24
to Got Your Back: Gmail Backup
Without the service account I get 


To make GYB run you will need to populate the client_secrets.json file. Try
running:

gyb.exe --action create-project --email  us...@example.com


[Errno 2] No such file or directory: 'c:\\GYB\\client_secrets.json'

Eric Ferland

unread,
Mar 21, 2024, 10:09:17 AM3/21/24
to Got Your Back: Gmail Backup
When I run 



gyb.exe --action create-project --email  us...@example.com


[Errno 2] No such file or directory: 'c:\\GYB\\client_secrets.json'
c:\GYB>gyb.exe --action create-project --email  us...@example.com
File c:\GYB\oauth2service.json already exists. Please delete or rename it before attempting to create another project.

c:\GYB>

Eric Ferland

unread,
Mar 21, 2024, 10:48:28 AM3/21/24
to Got Your Back: Gmail Backup
Also Im using gyb as a Google Workspace Admin 
https://github.com/GAM-team/got-your-back/wiki#google-workspace-admins

Dustin Douglas

unread,
Mar 21, 2024, 3:01:31 PM3/21/24
to got-yo...@googlegroups.com
Here's the command I'd suggest you try
gyb.exe --email us...@example.com --action restore-mbox --local-folder "C:\temp\pst\mbox\test" --label-restored "TestLabel" --service-account

There should only be one email address in the command - the one you're restoring to. 

Eric Ferland

unread,
Mar 21, 2024, 3:53:23 PM3/21/24
to got-yo...@googlegroups.com

Eric Ferland

unread,
Mar 21, 2024, 3:59:42 PM3/21/24
to got-yo...@googlegroups.com
I'm guessing if you are using a service account for authorization, you don't need to specify the admin user's email in the command; the service account should have the necessary permissions to perform actions on user accounts.

Dustin Douglas

unread,
Mar 21, 2024, 4:08:10 PM3/21/24
to got-yo...@googlegroups.com
Right. GYB uses the service account to impersonate the users for whom you're backing up email. There isn't any need for an admin account to be in the mix. 

The ONLY time I've ever used --admin-account is when restoring to group, and I believe in that instance you can leave off the --service-account switch. 



Reply all
Reply to author
Forward
0 new messages