Synology NAS ActiveBackup for Business 备份 Linux

摘要:
ActiveBackup for Business-物理服务器-Linux-添加设备注意:上面的屏幕截图中已经写了具体的操作步骤,稍后将在教程中介绍。

本文适用于 Synology Active Backup for Business beta 版CentOS 7 之间进行备份。

注意:CentOS 8 的备份操作需要额外安装 bc 依赖包,另外需要将内核从``kerne-4.18.0-240.el8.x86_64升级至 kernel-4.18.0-240.1.1并安装kernel-devel-4.18.0-240.1.1.el8_3.x86_64` 内核开发包以支持备份还原。

目录

一、环境介绍

Synology NAS 型号为:DS716+

Synology OS 版本为:6.2.3-25426 update2

二、环境部署

1. 虚拟机

对虚拟机的创建,此处略过具体步骤。

image-20201223110444900

此处需要指出的是对 CentOS 7 镜像的获取:除官网外,推荐使用清华大学镜像站提供的下载链接,有额外的加速效果(2-5MB/s

image-20201223105451121

提示:该版本安装完成后为 CentOS Linux release 7.9.2009 (Core),兼容 7.8

image-20201224112551280

注意:如果不做磁盘调整默认安装使用的 lvm 类型的磁盘,推荐使用 SinglePatition 手动分区

详细:该磁盘在还原过程会出现问题,具体来说是引导器 grub2grub 界面可读取到 lvm 分区的磁盘内容,但系统在启动过程中识别不了 lvm 磁盘类型。而能读取到 lvm 类型的磁盘类型是 grub2 独有的,这在 grub1 中则没有。具体错误会在文末给出,需要完美还原请使用 SinglePatition 手动分区

2. 配置网络

为方便后续相关操作,请提前配置好 NAS 端静态 IP 地址。

image-20201223112347865

3. 套件安装

对测试版套件的安装,具体位置如下。

image-20201223110020326

套件中心 - Beta 套件 - 加入测试

提示:

1、测试版前让您在 Synology 套件正式发布之前先体验全新功能,但不建议将其用于商业用途。

2、如果您已安装稳定的 Active Backup for Business版本,则会更新至测试版。

4. 套件配置

在加入测试后需要下载 CentOS 相关服务端配置软件包,具体操作如下。

image-20201223112255194

Active Backup for Business - 物理服务器 - Linux - 添加设备

注意:上述截图中已经写明具体操作步骤,教程后续也会参照该步骤。除此之外,额外需要注意到安装包下载位置也在此处。为方便大家的使用,笔者将下载位置置于下方。

rpm 系列

CentOS: 6.10, 7.8, 8.1
RHEL: 6.10, 7.8, 8.1
Fedora: 30, 31, 32

deb 系列

Ubuntu: 16.04, 18.04, 20.04
Debian: 8.0 to 10
三、备份之 CentOS 端设置

1. 创建 repo

yum-config-manager --add-repo="https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/"
rpm --import https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
rpm --import https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-Testing-7
yum clean all
yum makecache

image-20201223113619369

2. 文件上传(代理程序和驱动程序)

yum -y install lrzsz unzip
rz -E
# 其他的方法接可。比如 sftp scp FileZilla

image-20201223113700655

unzip Synology_Active_Backup_for_Business_Agent-2.2.0-1761-x64-rpm.zip

image-20201223113753780

3. 安装依赖包

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

image-20201223114318461

yum -y install make libaio dkms gcc

image-20201223114020634

image-20201223114029807

4. 文件运行(代理程序和驱动程序)

sudo ./install.run

image-20201223114104910

image-20201223120440911

abb-cli -c

image-20201223120953522

四、备份之 ABB 端设置

1. 查看设备加入

image-20201223121131727

2. 添加任务

image-20201223121157678

image-20201223124823315

image-20201223121341716

3. 效果验证

image-20201223124255165

image-20201223115017144

4. 效果文件(备份文件)

image-20201223115043999

提示:这是通过 LVM 类型的磁盘进行备份的,从这些文件中就可以看到备份文件为 img 后缀名,但奇怪的地方在于已经有 sda.img ,但依然有 centos=home.img 等三个文件。

五、还原之 ABB 端设置

image-20201224113440232

物理服务器 - Linux - 还原

注:

  • 对于文件级还原,请进入 Active Backup for Business Portal

  • 对于整台设备或基于存储空间的还原,请下载 Linux 恢复媒体并参阅本文


为方便大家的使用,笔者将下载位置置于下方。

Linux 恢复媒体https://global.download.synology.com/download/Utility/ActiveBackupRecoveryMediaCreator/2.2.0-1211/Linux/Synology-Recovery-Media-1211(1761).iso

本文http://sy.to/linuxrecovery

六、还原之 VM 设置

1、镜像介质启动

image-20201224113651314

提示:这个文件就是第五节中 ABB 套件内提供的镜像下载,您也可以通过笔者提供的链接直接下载。另外,由于该文件在笔者做实验之前就已经下载完成,故日期上显示为昨天但文件内容一致。

2、完成 NAS 登录

Synology NAS ActiveBackup for Business 备份 Linux第22张

提示:这里输入用户名密码。可能会出现信任问题,保持信任即可。

注意:如果不对 VM 做出自定义调整,默认创建的 VM 是没有网卡的。

3、选择驱动器和磁盘

image-20201224113813026

提示:选择需要还原的镜像文件名称。笔者上述截图中显示多个是因为兼顾到系统版本 CentOS7CentOS8 以及系统安装类型 miniServer With GUI 做出的多次实验备份,故读者在实验时仅有一个可选项。

4、选择恢复模式

image-20201224113828164

提示:建议选择 Entire device restore ,笔者在使用 Manually restore specified volumes (Advanced) 会有磁盘空间不足的报错(实际配置上是完全一直的)。

5、 选择备份时间点

image-20201224113842987

6、恢复预览

image-20201224113853147

7、预计恢复时间

image-20201224113910332

8、效果图展示

image-20201224115916463

注意:由于备份与还原的机器共用同一个 IP 地址。如果立即启动还原机,会出现还原机占用备份机 IP地址的情况。

七、问题汇总

1. LVM 所出现的问题

image-20201224114142367

正常启动是这样,但是如果将无法启动的 swap 和 home 取消挂载。

因为根分区是可以正常挂载的,所以系统可以起得来。

image-20201224114159504

附:第 2.2.0-1761 版新增功能
What's new

Supports backing up and restoring Linux physical servers of the following distributions:
CentOS: 6.10, 7.8, 8.1
RHEL: 6.10, 7.8, 8.1
Ubuntu: 16.04, 18.04, 20.04
Fedora: 30, 31, 32
Debian: 8.0 to 10
Added support for VMware vSphere 7.0.0
Added support for compression and encryption settings for personal computers, physical servers, and virtual machines at the backup destination.
Supports migrating instantly restored virtual machines on Virtual Machine Manager to VMware vSphere or Microsoft Hyper-V.
Users can now back up a maximum of 50 devices (personal computers, physical servers, and virtual machines) concurrently. The actual number varies by RAM capacity:
Less than 8 GB: 10
Between 8 GB and 32 GB: 30
More than 32 GB: 50
Supports customizing pre/post scripts for physical server backups.
Supports removing data when the storage is deleted.
Added support for backup reports in PDF format to be attached in emails.
Supports deleting reports.
Supports automatically checking if the required services on VMware vSphere/Microsoft Hyper-V are properly configured when adding a hypervisor or creating a backup task.
Supports skipping duplicated pagefile.sys, hiberfil.sys, and swapfiles.sys files when backing up personal computers and physical servers.
Scheduled backup tasks for physical servers/personal computers will be canceled when the devices are disconnected for over an hour after tasks start.
Displays tasks that have been restored within the last 48 hours in "Restore Status."
Added support for restoring a file's metadata along with the file restoration from Active Backup for Business Portal.
Fixed Issues (General Issue)

Fixed an issue where the schedule of reports might not be editable.
Fixed an issue where manually creating a folder in the "@ActiveBackup" folder might cause the backup data within the manually created folder inaccessible.
Fixed an issue where "Backup now" might fail when the backup task was created during the forbidden backup time of the backup window.
Fixed an issue where the system might not properly display the finish time of backup tasks on the Activities page and the Task List tab
Fixed Issues (Servers and Workstations)

Fixed an issue where the system might incorrectly identify multiple devices with the same UUID when performing entire device restoration.
Fixed Issues (Virtual Machines)

Fixed an issue where Microsoft Hyper-V virtual machine backup tasks might fail if the size of the virtual machine disk was not an integer multiple of 1 KB.
Fixed an issue where Microsoft Hyper-V virtual machine backup tasks might fail when it was connected to Synology NAS via its hostname.
Fixed an issue where Microsoft Hyper-V virtual machine restoration might fail if the virtual machine used Cluster Shared Volumes.
Fixed an issue where Microsoft Hyper-V virtual machine restoration might fail when its Windows guest OS time format was 24-hours.
Fix an issue where the restoration performance might be slow when there were too many files in the destination folder.
Fixed an issue where the restoration might fail if the virtual machine contained a physical disk or a Raw Device Mapping (RDM).
Fixed an issue where instantly restored virtual machines might not display in the Restore Status page if Active Backup for Business had been restarted.
Fixed an issue where the system might not able to perform a backup task and a retention policy at the same time.
Limitations

Backup tasks that have enabled compression or encryption at backup destinations can't apply the following settings:
Instant restore to Synology Virtual Machine Manager
Instant restore to VMware (for virtual machines on VMware vSphere 7.0.1)
Instant restore to Microsoft Hyper-V
Backup verification

免责声明:文章转载自《Synology NAS ActiveBackup for Business 备份 Linux》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇anyproxy-windows平台安装和抓手机app上https请求iOS-添加测试设备Identifier下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Centos 安装boost库

1.在http://www.boost.org/下载boost安装包boost_1_65_1.tar.gz 2.在Centos上解压tar -zxvf boost_1_65_1.tar.gz后,cd进入boost_1_65_1目录 3.安装boost库到指定目录 ./b2 install --prefix=/home/dj/lib/boost/  4.如果...

CentOS 6.0升级firefox浏览器

越来越喜欢Linux系统,这里面的软件也喜欢按照自己喜好来摆置。原谅我词汇量少。 来记录下这次操作吧,以后就不用老跑人家博客按部就班了。 CentOS系统里的firefox 无法升级到最新版,这怎么能受得了! 看来只能自力更生,奋发图强~~~ 1.从官网下载最新版firefox浏览器,www.firefox.com.cn.下载这个 2.将这个压缩包解压到...

阿里云CentOS搭建EasyMock​

阿里云CentOS搭建EasyMock​ 简介 Easy Mock 是一个可视化,并且能快速生成 模拟数据 的持久化服务。 特性 支持接口代理 支持快捷键操作 支持协同编辑 支持团队项目 支持 Restful 支持 Swagger 1.2 & 2.0 基于 Swagger 快速创建项目 支持显示接口入参与返回值 支持显示实体类 支持灵活性与扩...

CentOS搭建Git服务器及权限管理

https://www.cnblogs.com/fly_dragon/p/8718614.html 声明:本教程,仅作为配置的记录,细节不展开,需要您有一点linux的命令基础,仅作为配置参考。 1. 系统环境 系统: Linux:CentOS 7.2 64位 由于CentOS已经内置了OpenSSH,如果您的系统没有,请自行安装。 查看ssh版本 $s...

CentOS 7 下网络无法访问 Failed to start LSB: Bring up/.

[root@localhost Desktop]# ping 192.168.2.1PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.067 ms64 bytes from 192.168.2.1:...

CentOS系统/tmp目录里面的文件默认保留多久

一、CentOS系统/tmp目录里面的文件默认保留多久 CentOS6默认保留30天,CentOS7默认保留10天 一、CentOS7系统/tmp目录里面的文件默认保留多久 CentOS7默认保留10天,查看系统配置如下 [root@v05-docker-net-test02 ~]# cd /usr/lib/tmpfiles.d/ [root@v0...