2021年4月

目录

[toc]

1. 前言

目前有有很多客户在用腾讯的 CVM 来承载他们的业务,这些业务的重要性使他们希望对数据进行备份。当然这个操作也可以用于VM的迁移。

2. 安装 Veeam Agent 到 TLinux

腾讯的 Tlinux 是以 CentOS 的内核为原型进行改造的,这使它非常容易进行 Veeam 软件的安装与管理。

- 阅读剩余部分 -

1. 安装软件包

curl -O https://download2.veeam.com/veeam-release-el7-1.0.7-1.x86_64.rpm

rpm -ivh ./veeam-release* && yum check-update
yum install

2. 安装软件许可

 veeamconfig license install --path veeam1.lic --server

3.创建 Repository 以 NAS Repo 为例

veeamconfig repository create --name STORE --location /mnt/store/

[root@VM-0-11-tlinux ~]# veeamconfig repository list
Name        ID                                      Location     Type   Accessible  Backup server  
STORE       {84ba2b4b-4e47-4f3c-a989-ff21aaf9944a}  /mnt/store/  local  true         

4.创建 Job 以系统备份为例

[root@VM-0-11-tlinux ~]# veeamconfig job create volumelevel --name systembackup --reponame 'STORE' --objects /dev/vda1  --weekdays Mon,Sun --at 23:00 
Job has been created successfully.
[root@VM-0-11-tlinux ~]# veeamconfig job list
Name          ID                                      Type         Repository  
systembackup  {500ddace-4036-4751-93a0-8514eebddb8a}  VolumeLevel  STORE       

5.查看 Job Session 以系统备份为例

[root@VM-0-11-tlinux ~]# veeamconfig session log --id ad574bcc-6426-4a8a-9645-894d2a363006
2021-04-13 12:01:38 UTC [info] Job systembackup started at 2021-04-13 12:01:38 UTC
2021-04-13 12:01:38 UTC [info] Preparing to backup
2021-04-13 12:01:38 UTC [info] Creating volume snapshot
2021-04-13 12:01:39 UTC [info] Starting full backup to STORE
2021-04-13 12:01:39 UTC [info] File system indexing is disabled
2021-04-13 12:01:39 UTC [info] Backing up BIOS bootloader on /dev/vda
2021-04-13 12:01:39 UTC [info] Backed up vda 6.5 GB at 48.9 MB/s
2021-04-13 12:03:55 UTC [info] Backing up summary.xml
2021-04-13 12:03:57 UTC [info] Releasing snapshot
2021-04-13 12:03:59 UTC [info] Processing finished at 2021-04-13 12:03:59 UTC

6.查看备份后的文件

[root@VM-0-11-tlinux ~]# veeamconfig session list
Job name      Type    ID                                      State    Started at        Finished at       
systembackup  Backup  {ad574bcc-6426-4a8a-9645-894d2a363006}  Success  2021-04-13 20:01  2021-04-13 20:03  
Total amount: 1
[root@VM-0-11-tlinux ~]# ls /mnt/store/
VM-0-11-tlinux systembackup