Backup Gmail messages - using GYB (Got-Your-Back)

Backup Gmail messages - using GYB (Got-Your-Back)


DotBlogs Tags: With Notes

A while back a little break because Gmail situation, and I paid with a 2x GB Gmail also had no backup, so backup Gmail Survey a number of programs, of course, it must be free of it! The first is found in Gmail Backup, but because there is no designated Label backup function, and backed up the messages are mixed together, the file name is confusing, I was immediately ruled out:

104544

The second is Gmvault, full-featured, online data enough, the most important thing is to be converted directly into Thunderbird, if you have time, I will write him next.

105900

The third is GYB, very simple tools, backed up format is * .eml, will be in accordance year, month, day cut three directory storage, this fits me 'simple' backup needs.

Lead

1. Please enable IMAP in Gmail and set an unlimited number of messages in folders IMAP data:

110623

2. Determine the 'All Mail' and are allowed to back up Label Show in IMAP:

110918

110945

Please note that when GYB designated Label, only in English, not Chinese with Oh , before backup adjust Label name itself.

Started GYB-- authorization

First of all, start a command prompt, change to the directory GYB execution. Windows 7/8 simple point approach, open GYB with the File Browser folder, and then hold down the Shift key and press the right mouse button, perform [here] to open a command window:

110258

The first performance, first obtain Google's authorization. Enter the following command:

GYB --email [email protected]

GYB will turn on Google's authorization window, press the [] button to accept the consent to:

113044

113118

You can now close the browser and return to the command prompt, proper authorization, you should begin to perform a backup of action:

114410

通常这时候,要赶快按下 Ctrl + C,中断备份作业,除非您真的打算直接备份所有信件到默认的数据夹(默认位置是 GYB 执行目录下,会自动建立一个子数据夹)。

正确取得授权后,在 GYB 的执行目录下,会多出一个 [email protected] 文件,之后再执行就不需要重新取得授权了。

不过取得授权时,也有可能会看到下面的错误消息:

113313

这个消息表示,浏览器取得授权的时候,登入的账号和 GYB 要备份的账号不一致造成,只要用相同账号,就可以解决此问题。

开始执行GYB--指定备份的 Label 和备份目的地

假设我们现在要备份有 Leisure 标签的数据,并指定备份位置到 d:tempLeisure,请输入以下命令:

gyb --email [email protected] --search "label:leisure" --local-folder "d:tempLeisure"

115710

其实 GYB 最重要的一个特色,就是 –-search 选项,它就等同于 Gmail 画面上的搜寻功能,所以我们可以先在 Gmail 画面上测试搜寻,然后把搜寻条件写到 –-search 选项中。以下这个范例让大家参考:

搜寻条件说明:

  • 指定 Label 为 technology
  • 日期区间:2012/1/1~2012/12/31
  • 信件关键字包含:Kendo 或 E-book

125851

gyb --email [email protected] --search "label:technology before:2012/1/1 after:2012/12/31 Kendo|E-book" --local-folder "d:tempTechnologyFilter"

125927

Finally, we look at the directory structure of the complete backup:

130222

130455

Supplementary several practical encounter:

  • GYB backup destination, the default will help us to build a directory , so in the above example is "d: tempTechnologyFilter", when actually there is only "d: temp", then perform the backup will fail with: "WindowsError: [Error 3 ] system can not find the path specified. "error message.
  • GYB backup destination, may not add the last symbol "", the above examples "d: tempTechnologyFilter" may be, but if it is "d: tempTechnologyFilter"Error message will appear.

--------
nothing special -
but only some notes

Original: Big Box  Backup Gmail messages - using GYB (Got-Your-Back)


Guess you like

Origin www.cnblogs.com/chinatrump/p/11505521.html