Merge remote-tracking branch 'LCTT/master'

This commit is contained in:
Xingyu.Wang 2019-03-26 21:40:21 +08:00
commit 4c22aaaf09
2 changed files with 46 additions and 49 deletions

View File

@ -1,40 +1,42 @@
[#]: collector: (lujun9972)
[#]: translator: (qhwdw)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: reviewer: (wxy)
[#]: publisher: (wxy)
[#]: url: (https://linux.cn/article-10655-1.html)
[#]: subject: (13 open source backup solutions)
[#]: via: (https://opensource.com/article/19/3/backup-solutions)
[#]: author: (Don Watkins https://opensource.com/users/don-watkins)
13 个开源备份解决方案
======
为读者推荐超过一打的他们喜欢的数据保护解决方案。
> 读者们推荐了超过一打的他们喜欢的数据保护解决方案。
![](https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/server_data_system_admin.png?itok=q6HCfNQ8)
最近,我发起了一个 [投票][1],让读者投票选出他们最喜欢的开源备份解决方案。在我们的 [moderator community][2] 上,我们提供了六个推荐的解决方案 — Cronopete、Deja Dup、Rclone、Rdiff-backup、Restic、和 Rsync — 而参与的读者也在评论区分享了一些其它的选择。并且你们提供的这 13 个其它的解决方案,(到目前为止)我们要么是没有想到,要么是没有听说过。
最近,我发起了一个 [投票][1],让读者投票选出他们最喜欢的开源备份解决方案。在我们的 [版主社区][2] 上,我们提供了六个推荐的解决方案 — Cronopete、Deja Dup、Rclone、Rdiff-backup、Restic、和 Rsync,而参与的读者也在评论区分享了一些其它的选择。并且读者提供的这 13 个其它的解决方案,(到目前为止)我们要么是没有想到,要么是没有听说过。
到目前为止,最受欢迎的推荐是 [BorgBackup][3]。它是一个带有压缩和加密特性以用具有重复数据删除功能的备份解决方案。它基于 BSD 许可,支持 Linux、MacOS、和 BSD。
到目前为止,最受欢迎的推荐是 [BorgBackup][3]。它是一个带有压缩和加密特性以用具有数据去重功能的备份解决方案。它基于 BSD 许可证,支持 Linux、MacOS 和 BSD。
第二个是 [UrBackup][4],它可以做完全和增量的图像和文件备份;你可以保存整个分区或单个目录。它有 Windows、Linux、和 MacOS 客户端,并且有一个 GNU Affero GPL
第二个是 [UrBackup][4],它可以做镜像和文件的完整和增量备份;你可以保存整个分区或单个目录。它有 Windows、Linux、和 MacOS 客户端,并且采用 GNU Affero 公共许可证
第三个是 [LuckyBackup][5];根据其网站介绍,“它是一个易于使用、快速(只备份变化部分,而不是全部数据)、安全(在做任何数据操作之前,先检查所有需要备份的目录,以确保数据安全)、可靠和完全可定制的备份解决方案。它在 GPL 下发行。
第三个是 [LuckyBackup][5];根据其网站介绍,“它是一个易于使用、快速(只传输变化部分,而不是全部数据)、安全(在做任何数据操作之前,先检查所有需要备份的目录,以确保数据安全)、可靠和完全可定制的备份解决方案。它在 GPL 许可证下发行。
[Casync][6] 是一个内容可寻址同步解决方案 — 它设计用于备份、同步、存储和检索大文件系统的多个相关版本。它使用 GNU Lesser 公共许可证。
[Casync][6] 是一个可寻址内容的同步解决方案 — 它设计用于备份、同步、存储和检索大文件系统的多个相关版本。它使用 GNU Lesser 公共许可证。
[Syncthing][7] 是用于在两台计算机之间同步文件。它基于 Mozilla 公共许可证使用,根据其网站介绍,它是安全和私密的。它可以工作于 MacOS、Windows、Linux、FreeBSD、Solaris和 OpenBSD。
[Syncthing][7] 是用于在两台计算机之间同步文件。它基于 Mozilla 公共许可证使用,根据其网站介绍,它是安全和私密的。它可以工作于 MacOS、Windows、Linux、FreeBSD、Solaris 和 OpenBSD。
[Duplicati][8] 是一个可工作于 Windows、MacOS、和 Linux 上的、并且支持多种标准协议的(比如 FTP、SSH、WebDAV、和云服务)、免费的备份解决方案。它的特性是强大的加密功能,并且它使用 GPL 许可证。
[Duplicati][8] 是一个可工作于 Windows、MacOS 和 Linux 上的、并且支持多种标准协议(比如 FTP、SSH、WebDAV 和云服务)、免费的备份解决方案。它的特性是强大的加密功能,并且它使用 GPL 许可证。
[Dirvish][9] 是一个基于磁盘的虚拟镜像备份系统,它使用 OSL-3.0 许可证。它要求必须安装有 Rsync、Perl5、 SSH。
[Dirvish][9] 是一个基于磁盘的虚拟镜像备份系统,它使用 OSL-3.0 许可证。它要求必须安装有 Rsync、Perl5、SSH。
[Bacula][10] 的网站上介绍说:”它是允许系统管理员去管理备份、恢复、和跨网络的不同计算机上的多种数据的一套计算机程序“,它支持在 Linux、FreeBSD、Windows、MacOS、OpenBSD和 Solaris 上运行,并且它的大部分源代码都是基于 AGPLv3 许可证的。
[Bacula][10] 的网站上介绍说:”它是允许系统管理员去管理备份、恢复、和跨网络的不同种类计算机上的多种数据的一套计算机程序“,它支持在 Linux、FreeBSD、Windows、MacOS、OpenBSD 和 Solaris 上运行,并且它的大部分源代码都是基于 AGPLv3 许可证的。
[BackupPC][11] 的网站上介绍说:”它是一个高性能的、企业级的、可以备份 Linux、Windows、和 MacOS 系统上的 PC 和笔记本电脑上的数据到服务器磁盘上的备份解决方案“。它是基于 GPLv3 许可证的。
[BackupPC][11] 的网站上介绍说:”它是一个高性能的、企业级的、可以备份 Linux、Windows 和 MacOS 系统的 PC 和笔记本电脑上的数据到服务器磁盘上的备份解决方案“。它是基于 GPLv3 许可证的。
[Amanda][12] 是一个使用 C 和 Perl 写的备份系统,它允许系统管理员去备份整网络中的客户端到一台服务器上的磁带、磁盘或基于云的系统。它是由马里兰大学于 1991 年开发并拥有版权,并且它有一个 BSD 式的许可证。
[Amanda][12] 是一个使用 C 和 Perl 写的备份系统,它允许系统管理员去备份整网络中的客户端到一台服务器上的磁带、磁盘或基于云的系统。它是由马里兰大学于 1991 年开发并拥有版权,并且它有一个 BSD 式的许可证。
[Back in Time][13] 是一个为 Linux 设计的简单的备份实用程序。它提供了命令行和图形用户界面,它们都是用 Python 写的。去执行一个备份,只需要指定存储快照的位置需要备份的文件夹,和备份频率即可。它使用的是 GPLv2 许可证。
[Back in Time][13] 是一个为 Linux 设计的简单的备份实用程序。它提供了命令行和图形用户界面,它们都是用 Python 写的。去执行一个备份,只需要指定存储快照的位置需要备份的文件夹,和备份频率即可。它使用的是 GPLv2 许可证。
[Timeshift][14] 是一个 Linux 上的备份实用程序,它类似于 Windows 上的系统恢复和 MacOS 上的时间胶囊。它的 GitHub 仓库上介绍说“Timeshift 通过定期递增的文件系统快照来保护你的系统。这些快照可以在日后用于数据恢复,以撤销某些对文件系统的修改。”
@ -49,7 +51,7 @@ via: https://opensource.com/article/19/3/backup-solutions
作者:[Don Watkins][a]
选题:[lujun9972][b]
译者:[qhwdw](https://github.com/qhwdw)
校对:[校对者ID](https://github.com/校对者ID)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出

View File

@ -1,5 +1,5 @@
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: translator: (luckyele)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
@ -7,43 +7,40 @@
[#]: via: (https://kerneltalks.com/hardware-config/how-to-add-new-disk-in-linux/)
[#]: author: (kerneltalks https://kerneltalks.com)
How to add new disk in Linux
如何在Linux中添加新磁盘
======
* * *
_Step by step procedure to add disk in Linux machine_
_在Linux机器中逐步添加磁盘的过程_
![New disk addition in Linux][1]
In this article we will walk you through steps to add new disk in Linux machine. Adding raw disk to linux machine may very depending upon the type of server you have but once disk is presented to machine, procedure of getting it to mount points is almost same.
本文将向您介绍在Linux机器中添加新磁盘的步骤。将原始磁盘添加到 Linux 机器可能非常依赖于您所拥有的服务器类型,但是一旦将磁盘提供给机器,将其添加到挂载点的过程几乎相同。
**Objective** : Add new 10GB disk to server and create 5GB mount point out of it using LVM and newly created volume group.
**目标** : 向服务器添加新的 10GB 磁盘,并使用 lvm 和新创建的卷组创建 5GB 装载点。
* * *
### Adding raw disk to Linux machine
### 向 Linux 机器添加原始磁盘
If you are using AWS EC2 Linux server, you may [follow these steps][2] to add raw disk. If you are on VMware Linux VM you will have different set of steps to follow to add disk. If you are running physical rack mount/blade server then adding disk will be a physical task.
如果您使用的是 AWS EC2 Linux 服务器,可以 [按照以下步骤][2] 添加原始磁盘。 如果使用的是 VMware Linux VM那么需要按照不同的步骤来添加磁盘。如果您正在运行物理机架安装/刀片服务器,那么添加磁盘将是一项物理任务。
Now once the disk is attached to Linux machine physically/virtually, it will be identified by kernel and then our rally starts.
一旦磁盘物理/虚拟地连接到 Linux 机器上,它将被内核识别。
* * *
### Identifying newly added disk in Linux
### 识别 Linux 最新添加的磁盘
After attachment of raw disk, you need to ask kernel to [scan new disk][3]. Mostly its done now automatically by kernel in new versions.
原始磁盘连接后,需要让内核去 [扫描新磁盘][3]。在新版中,它主要是由内核自动完成。
First thing is to identify newly added disk and its name in kernel. There are numerous ways to achieve this. I will list few
第一件事是在内核中识别新添加的磁盘及其名称。实现这一点的方法有很多,以下作少量列举
* You can observer `lsblk` output before and after adding/scanning disk to get new disk name.
* Check newly created disk files in `/dev` filesystem. Match timestamp of file and disk addition time.
* Observer `fdisk -l` output before and after adding/scanning disk to get new disk name.
For our example I am using AWS EC2 server and I added 5GB disk to my server. here is my lsblk output
* 可以在添加/扫描磁盘前后观察 `lsblk` 输出,以获取新的磁盘名。
* 检查 `/dev` 文件系统中新创建的磁盘文件。匹配文件和磁盘添加时间的时间戳。
* 观察 `fdisk-l` 添加/扫描磁盘前后的输出,以获取新的磁盘名。
在本示例中,我使用的是 AWS EC2 服务器,向服务器添加了 5GB 磁盘。我的 lsblk 输出如下:
```
[root@kerneltalks ~]# lsblk
@ -54,25 +51,23 @@ xvda 202:0 0 10G 0 disk
xvdf 202:80 0 10G 0 disk
```
You can see xvdf is our newly added disk. Full path for disk is `/dev/xvdf`.
可以看到 xvdf 是新添加的磁盘。完整路径是 `/dev/xvdf`
* * *
### Add new disk in LVM
### 在 LVM 中添加新磁盘
We are using LVM here since its widely used and flexible volume manager on Linux plateform. Make sure you have `lvm` or `lvm2` [package installed on your system][4]. If not, [install lvm/lvm2 package][5].
我们这里使用 LVM因为它是 Linux 平台上广泛使用的非常灵活的卷管理器。确认已安装 `lvm``lvm2` [安装在系统上的程序包][4]. 如未安装,请 [安装 lvm/lvm2 程序包][5].
Now, we are going to add this RAW disk in Logical Volume Manager and create 10GB of mount point out of it. List of commands you need to follow are
现在,我们将在逻辑卷管理器中添加这个原始磁盘,并从中创建 10GB 的挂接点。所用到的命令如下
* [pvcreate][6]
* [vgcreate][7]
* [lvcreate][8]
如果要将磁盘添加到现有挂接点,并使用其空间来[扩展挂接点][9] ,则 `vgcreate` 应替换为 `vgextend`
If you are willing to add disk to existing mount point and use its space to [extend mount point][9] then `vgcreate` should be replaced by `vgextend`.
Sample outputs from my session
会话示例输出如下:
```
[root@kerneltalks ~]# pvcreate /dev/xvdf
@ -83,7 +78,7 @@ Sample outputs from my session
Logical volume "lvdata" created.
```
Now, you have logical volume created. You need to format it with filesystem on your choice and mount it. We are choosing ext4 filesystem here and formatting using `mkfs.ext4` .
现在, 已完成逻辑卷创建。您需要使用所选的文件系统格式化它并将其载入。在这里选择ext4文件系统并使用 `mkfs.ext4` 进行格式化。
```
[root@kerneltalks ~]# mkfs.ext4 /dev/vgdata/lvdata
@ -111,9 +106,9 @@ Writing superblocks and filesystem accounting information: done
* * *
### Mounting volume from new disk on mount point
### 在挂载点上从新磁盘挂载卷
Lets mount the logical volume of 5GB which we created and formatted on /data mount point using `mount` command.
使用 `mount` 命令,在 /data 安装点上安装已创建并格式化的5GB逻辑卷。
```
[root@kerneltalks ~]# mount /dev/vgdata/lvdata /data
@ -122,9 +117,9 @@ Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vgdata-lvdata 4.8G 20M 4.6G 1% /data
```
Verify your mount point with df command as above and you are all done! You can always add an entry in [/etc/fstab][10] to make this mount persistent over reboots.
使用df命令验证挂载点。如上所述您都完成了您可以在 [/etc/fstab][10] 中添加一个条目,以便在重新启动时保持此装载。
You have attached 10GB disk to Linux machine and created 5GB mount point out of it!
您已将10GB磁盘连接到 Linux 计算机,并创建了 5GB 挂载点!
--------------------------------------------------------------------------------
@ -132,7 +127,7 @@ via: https://kerneltalks.com/hardware-config/how-to-add-new-disk-in-linux/
作者:[kerneltalks][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
译者:[luckyele](https://github.com/luckyele/)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出