I tripped over this the first time too. The issue is that, by default, gyb does not want to process an mbox file. To do so, use "--action restore-mbox" instead and keep the local folder the same (assuming the mbox file is in that folder). A couple of other items
- Your first command that did nothing, may have created an .sql file in the directory - if not deleted, it may cause an error when you use the restore-mbox command
- The restore-mbox command will process any mbox file in your --local-folder and subfolders; just so you know it will chew threw multiple mbox files if they are present.
Best of luck
On Thursday, July 13, 2023 at 3:02:06 PM UTC-5 Summer Wasson wrote:
Hello, I am using the following command, but I am not getting the expected results.
Any idea what I'm doing wrong?
- I'm a Workspace super admin
- I did the API / OAuth approval.
- I'm adding the restore to another user's Inbox (so hence the --service-account in my code below)
- I have .mbox files in the directory specified in my code
- I've looked at various tutorials and I'm following it to a T, but others have a successful import and I do not.
Commands / Results:
- Command: gyb --email us...@myemail.com --action restore --local-folder C:\migrate\Exchange\backups --service-account --label-restored test
- Result: Using backup folder
C:\migrate\Exchange\backups
- Result in Gmail: The label "test" shows up, but there are no emails in it. In command line, there is no progress or other notification other than telling me it's using the backup folder (see #2 above).
Any ideas what I might be doing wrong?
Thank you!