GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.6k stars 205 forks source link

400: Invalid label name - invalidArgument #350

Closed mansj closed 2 years ago

mansj commented 2 years ago

I am running this command, on a 24GB large backup from G Suite:

bin/gyb/gyb --email myaddress@gmail.com --action restore-mbox --local-folder ~/Desktop/

After 24 hours and 30.6% I get this message:

Creating label Muted
400: Invalid label name - invalidArgument

And the program crashes/finishes so I can't continue.

Any advice?

jay0lee commented 2 years ago

Muted is a reserved label name that you can't restore or use with Gmail API. Try adding:

--extra-reserved-labels muted

to your command to tell GYB not to try and create/use the label. I've added this for the next version also.

mansj commented 2 years ago

Wow, thank you for the quick response, and it did indeed work to add the reserved label. Thank you.