博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
备份ubuntu_如何使用Ubuntu PC备份Gmail帐户
阅读量:2520 次
发布时间:2019-05-11

本文共 6330 字,大约阅读时间需要 21 分钟。

备份ubuntu

备份ubuntu

00_lead_image_getmail

We always hear how important it is to backup your data, but do we think about backing up our web-based email? We have shown you how to backup your Gmail account using programs in Windows, but what if you are using Linux?

我们总是听到备份数据的重要性,但是我们是否考虑备份基于Web的电子邮件? 我们已经向您展示了如何使用Windows中的程序备份Gmail帐户,但是如果您使用Linux,该怎么办?

In Windows, you can use or to backup your Gmail account. You can use Thunderbird in Linux as well, but there iss also a program for Linux called Getmail that will backup your Gmail account to a single mbox file. Getmail works in any Linux distribution. Ubuntu users can easily install Getmail using the Ubuntu Software Center. For other Linux operating systems, , and then refer to the on the website.

在Windows中,您可以使用或备份您的Gmail帐户。 您也可以在Linux中使用Thunderbird,但是还有一个名为GetmailLinux程序,它将Gmail帐户备份到单个mbox文件中。 Getmail可在任何Linux发行版中使用。 Ubuntu用户可以使用Ubuntu软件中心轻松安装Getmail。 对于其他Linux操作系统,请 ,然后参考网站上的。

We will show you how to install and use Getmail in Ubuntu. Open the Ubuntu Software Center using the icon on the Unity bar.

我们将向您展示如何在Ubuntu中安装和使用Getmail。 使用Unity栏上的图标打开Ubuntu软件中心。

00a_starting_ubuntu_software_center

Type “getmail” (without the quotes) in the Search box. The results display as you enter the search term. Select the “Mail retriever” result and click Install.

在搜索框中键入“ getmail”(不带引号)。 输入搜索词时显示结果。 选择“邮件检索器”结果,然后单击“安装”。

01_clicking_install_for_getmail

On the Authenticate dialog box, enter your password and click Authenticate.

在“身份验证”对话框中,输入密码,然后单击“身份验证”。

02_authenticate

Once the installation finishes, exit the Ubuntu Software Center by selecting Close from the File menu. You can also click the X button on the title bar.

安装完成后,通过从“文件”菜单中选择“关闭”退出Ubuntu软件中心。 您也可以单击标题栏上的X按钮。

03_closing_software_center

Before using Getmail, you need to create a configuration directory, a directory to store the mbox file, and the mbox file itself. To do this, open a Terminal window by pressing Ctrl + Alt + T. At the prompt, type the following command to create the default configuration directory.

使用Getmail之前,您需要创建一个配置目录,一个用于存储mbox文件的目录以及mbox文件本身。 为此,请按Ctrl + Alt + T打开“终端”窗口。在提示符下,键入以下命令以创建默认配置目录。

mkdir –m 0700 $HOME/.getmail

mkdir –m 0700 $ HOME / .getmail

To create a directory for the mbox file that will be filled with your Gmail messages, type the following command. We called our directory “gmail-archive” but you can call the directory what you want.

要为将用Gmail邮件填充的mbox文件创建目录,请键入以下命令。 我们将目录称为“ gmail-archive”,但您可以根据需要命名目录。

mkdir –m 0700 $HOME/gmail-archive

mkdir –m 0700 $ HOME / gmail-archive

Now, you must create the mbox file to contain the downloaded messages. Getmail does not do this automatically. Type the following command at the prompt to create the mbox file in the gmail-archive directory.

现在,您必须创建mbox文件以包含下载的消息。 Getmail不会自动执行此操作。 在提示符下键入以下命令,以在gmail-archive目录中创建mbox文件。

touch ~/gmail-archive/gmail-backup.mbox

触摸〜/ gmail-archive / gmail-backup.mbox

NOTE: Both “$HOME” and “~” refer to your home directory at /home/<your name>.

注意:“ $ HOME”和“〜”都引用您的主目录,位于/ home / <您的名字>。

Leave this Terminal window open. You will use it later to run Getmail.

将此终端窗口保持打开状态。 稍后将使用它运行Getmail。

04_creating_folders_and_mbox_file

Now, you need to create the configuration file to tell Getmail about your Gmail account. Open a text editor, such as gedit, and copy the following text into a file.

现在,您需要创建配置文件以向Getmail告知您的Gmail帐户。 打开文本编辑器(例如gedit),然后将以下文本复制到文件中。

[retriever] type = SimplePOP3SSLRetriever server = pop.gmail.com username = yourname@gmail.com password = yourpassword [destination] type = Mboxrd path = ~/gmail-archive/gmail-backup.mbox [options] verbose = 2 message_log = ~/.getmail/gmail.log

[retriever]类型= SimplePOP3SSLRetriever服务器= pop.gmail.com用户名= yourname@gmail.com密码= yourpassword [目标]类型= Mboxrd路径=〜/ gmail-archive / gmail-backup.mbox [选项]详细= 2 message_log = 〜/ .getmail / gmail.log

Change the username and password to the ones for your Gmail account. If you used a different directory and filename for the mbox file, change the “path” in the “destination” section to reflect your path and filename.

将用户名和密码更改为您的Gmail帐户的用户名和密码。 如果您为mbox文件使用了不同的目录和文件名,请在“目标”部分中更改“路径”以反映您的路径和文件名。

05_creating_config_file

Select Save As to save your configuration file.

选择另存为以保存您的配置文件。

06_selecting_save_as_gedit

Enter “.getmail/getmailrc” (without the quotes) in the Name edit box to save the file as the default “getmailrc” file in the configuration directory you created and click Save.

在“名称”编辑框中输入“ .getmail / getmailrc”(不带引号),将文件另存为您创建的配置目录中的默认“ getmailrc”文件,然后单击“保存”。

07_saving_config_file

Close gedit, or whatever text editor you used.

关闭gedit或您使用的任何文本编辑器。

08_closing_gedit

To run Getmail, go back to the Terminal window and type “getmail” (without the quotes) at the prompt.

要运行Getmail,请返回“终端”窗口,并在提示符下键入“ getmail”(不带引号)。

09_running_getmail

You’ll see a long string of messages display in the Terminal window as Getmail starts downloading the contents of your Gmail account.

Getmail开始下载Gmail帐户的内容时,您会在终端窗口中看到一长串消息。

NOTE: If the script stops, don’t panic. Google has some limits on how many messages can be downloaded from an account at one time. To continue downloading your messages, just run the Getmail command again and Getmail will pick up where it left off. See for more information about this issue.

注意:如果脚本停止,请不要惊慌。 Google对一次可以从一个帐户下载多少条邮件有一定的限制。 要继续下载您的消息,只需再次运行Getmail命令,Getmail将从上次停止的地方开始提取。 有关此问题的更多信息,请参见。

When Getmail finishes and you are returned to the prompt, you can close the Terminal window by typing exit at the prompt, selecting Close Window from the File menu, or clicking the X button on the title bar.

当Getmail完成并返回到提示时,可以通过在提示处键入exit,从“文件”菜单中选择“关闭窗口”或单击标题栏上的X按钮来关闭“终端”窗口。

10_closing_terminal_window

You now have an mbox file containing your Gmail messages.

现在,您有了一个包含Gmail邮件的mbox文件。

11_mbox_file

You can import the mbox file into most email clients, except Microsoft Outlook. For example, you can use the add-on in Thunderbird to import your Gmail messages from your mbox file into a local folder.

您可以将mbox文件导入除Microsoft Outlook之外的大多数电子邮件客户端。 例如,您可以使用Thunderbird中的附加组件将Gmail邮件从mbox文件导入到本地文件夹中。

12_import_mbox_file_in_thunderbird

If you need to get your Gmail messages into Outlook in Windows, you can use the free program to convert your mbox file to separate .eml files that you can import into Outlook.

如果需要将Gmail邮件放入Windows的Outlook中,则可以使用免费的程序将mbox文件转换为单独的.eml文件,然后将其导入Outlook。

13_mbox_email_extractor

You can automate the process of backing up your Gmail account by and setting it to run on a schedule using a that runs once a day, once a week, or however often you feel is necessary.

您可以通过并将其设置为使用每天,每周一次或有时您认为有必要运行的将其设置为按计划运行来自动备份Gmail帐户。

For more information about using Getmail, see their .

有关使用Getmail的更多信息,请参阅其。

翻译自:

备份ubuntu

转载地址:http://nsawd.baihongyu.com/

你可能感兴趣的文章
轮播图组件及vue-awesome-swiper的引入
查看>>
Java 笔记07
查看>>
POJ 3041 Asteroids (二分匹配)
查看>>
响应式布局
查看>>
缺陷跟踪系统Mantis之安装篇(转载)
查看>>
UI1_UITableViewHomeWork
查看>>
简单解析依赖注入(控制反转)在Spring中的应用
查看>>
NoSQL 简介及什么是AICD
查看>>
hibernate+mysql的连接池配置
查看>>
条件运算符 (?:)
查看>>
javascript Array(数组)
查看>>
HDU1518 Square 【剪枝】
查看>>
桥接模式
查看>>
android windows 上JNI编程
查看>>
PHP中可变变量到底有什么用?
查看>>
谈一谈最近关闭的Kindle人论坛
查看>>
android java 与C 通过 JNI双向通信
查看>>
javascript:另一种图片滚动切换效果思路
查看>>
获取css的属性值
查看>>
Win32_NetworkAdapterConfiguration
查看>>