Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GYB does not support mbox --> group restoration #202

Closed
TimetravelerDD opened this issue Apr 28, 2019 · 1 comment
Closed

GYB does not support mbox --> group restoration #202

TimetravelerDD opened this issue Apr 28, 2019 · 1 comment

Comments

@TimetravelerDD
Copy link

TimetravelerDD commented Apr 28, 2019

It seems GYB does not support mbox --> group restoration (at least according to this post from 2014)

If so, would it be possible to support it? I think it would be quite useful if the original account doesn't exist anymore but only the mbox backup from Google takeout/vault.

Alternatively a feature to convert mbox to GYB and vice versa would be awesome as well.

Looking forward to hear your feedback!

Cheers, Timetraveler

GYB does not support mbox --> group restoration, it can only restore a GYB
backup to a group. You can try backing up the maibox with GYB and then
restoring from there.

Jay Lee

On Fri, Nov 21, 2014 at 6:34 AM, bjarnek notifications@github.com wrote:

Tried making one of the service accounts using the instructions and still
get an error. Am i doing anything wrong here ?

python gyb.py --action restore-group --action restore-mbox --local-folder input/ --email test-indbakke-samarbejde@mydomain.com.test-google-a.com --service-account 110042144726-5s76aeu20g3p6ki544an2s94ekt67847@developer.gserviceaccount.com --use-admin myuser@mydomain.com
Traceback (most recent call last):
File "gyb.py", line 1323, in
main(sys.argv[1:])
File "gyb.py", line 575, in main
imapconn = gimaplib.ImapConnect(generateXOAuthString(options.email, options.service_account), options.debug)
File "gyb.py", line 269, in generateXOAuthString
service = apiclient.discovery.build('oauth2', 'v2', http=http)
File "/Users/myuser/Downloads/got-your-back-0.29/oauth2client/util.py", line 128, in positional_wrapper
return wrapped(_args, *_kwargs)
File "/Users/myuser/Downloads/got-your-back-0.29/apiclient/discovery.py", line 192, in build
resp, content = http.request(requested_url)
File "/Users/myuser/Downloads/got-your-back-0.29/oauth2client/util.py", line 128, in positional_wrapper
return wrapped(_args, *_kwargs)
File "/Users/myuser/Downloads/got-your-back-0.29/oauth2client/client.py", line 475, in new_request
self._refresh(request_orig)
File "/Users/myuser/Downloads/got-your-back-0.29/oauth2client/client.py", line 653, in _refresh
self._do_refresh_request(http_request)
File "/Users/myuser/Downloads/got-your-back-0.29/oauth2client/client.py", line 710, in _do_refresh_request
raise AccessTokenRefreshError(error_msg)
oauth2client.client.AccessTokenRefreshError: internal_failure


Reply to this email directly or view it on GitHub
#14 (comment)
.

Originally posted by @jay0lee in #14 (comment)

@jay0lee
Copy link
Member

jay0lee commented Sep 20, 2021

restoring from mbox to group has been supported since 1.40. It should "just work" with --action restore-group and --local-folder /path/to/mall/the/mboxes

@jay0lee jay0lee closed this as completed Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants