AlmaLinux

20230423--简单备份工具rdiff-backup介绍及安

2023-04-22  本文已影响0人  負笈在线

1.rdiff-backup是什么?

rdiff-backup是一种简单的备份工具。可以在Linux和windows的本地及远程使用,甚至可以跨平台使用。根据用户的报告在FreeBSD和MacOS X成功的使用。
除了易于使用之外,rdiff-backup的主要优势之一是他使用了与rsync相同的高效协议来传输和存储数据。因为rdiff-backup只存储上一次备份与下一次备份之间的差异(即增量备份),所以最新的备份始终是完整备份,使恢复最新备份变得最简单、最快捷,结合增量备份的空间优势,同时保持了完整备份的速度优势(至少对于最近的备份)。
如果安装了可选的依赖项pylibacl和pyxattr,rdiff-backup将支持访问控制列表和扩展属性,前提是文件系统也支持这些功能。


主要特性如下:
1)可以在Linux、Mac OS X和Cygwin等POSIX OS上使用。也可以在Windows上使用,但是安装和使用不方便。
2)支持网络的远程,也可以在本地使用。
3)可以代替“rsync-e ssh”使用。
可以进行增量备份。
镜像+差分。在备份目的地创建一个名为“rdiff-backup-data”的特殊目录。在其中存储差分数据。
复原所需的信息、子目录、硬链接、设备文件、权限、所有者的用户/组ID等也被备份。
可以删除超过指定期间的差异备份数据。

2.rdiff-backup安装1(RHEL 7 and its replicas客户端和服务端一样)

1)epel-release安装

# yum install epel-release

2)rdiff-backup安装

# yum install librsync
# yun install py3libacl
# yum install python36-pyxattr
# yum install rdiff-backup

3)rdiff-backup版本确认

# rdiff-backup -V

4)rdiff-backup测试

# rdiff-backup --test-server [服务端IP地址]::/ignored
# rdiff-backup --test-server 172.26.37.161::/ignored
root@172.26.37.161's password: 
Testing server started by:  b'ssh -C 172.26.37.161 rdiff-backup --server'
Server may work, but there is a version mismatch:
Local version: 2.0.5
Remote version: 2.2.4

In general, an attempt is made to guarantee compatibility only between
different minor versions of the same stable series.  For instance, you
should expect 0.12.4 and 0.12.7 to be compatible, but not 0.12.7
and 0.13.3, nor 0.13.2 and 0.13.4.

WARNING: this command line interface is deprecated and will disappear, start using the new one as described with '--new --help'.
Warning: Local version 2.0.5 does not match remote version 2.2.4.

3.rdiff-backup安装2(RHEL 8 and its replicas客户端和服务端一样)

1)epel-release安装

# yum install epel-release

2)rdiff-backup安装

# yum install librsync
# yum install python3-pylibacl
subscription-manager安装
# yum install subscription-manager
# subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
# yum config-manager --set-enabled powertools
# yum install python3-pyxattr
# yum install rdiff-backup

在RHEL下,要启用codeready-builder-for-RHEL-8-x86_64-rpms repo,以便安装python3-pyxattr

RHEL 8 有三个预启用存储库:

3)rdiff-backup版本确认

# rdiff-backup -V

4)rdiff-backup测试

# rdiff-backup --test-server [服务端IP地址]::/ignored
# rdiff-backup --test-server 172.26.37.161::/ignored
root@172.26.37.161's password: 
Testing server started by:  b'ssh -C 172.26.37.161 rdiff-backup --server'
Server may work, but there is a version mismatch:
Local version: 2.0.5
Remote version: 2.2.4

In general, an attempt is made to guarantee compatibility only between
different minor versions of the same stable series.  For instance, you
should expect 0.12.4 and 0.12.7 to be compatible, but not 0.12.7
and 0.13.3, nor 0.13.2 and 0.13.4.

WARNING: this command line interface is deprecated and will disappear, start using the new one as described with '--new --help'.
Warning: Local version 2.0.5 does not match remote version 2.2.4.

参考URL

https://github.com/rdiff-backup/rdiff-backup

上一篇 下一篇

猜你喜欢

热点阅读