1. Introduction
Mondo Rescue is an open source and free fault recovery and backup tool. Users can easily create system (Linux or Windows) cloned or backup ISO images. These images can be stored on CDs, DVDs, tapes, USB devices, hard drives, and NFS. . Mondo Rescue can also be used to quickly restore or redeploy working images to other systems. In case of data loss, you can also restore as complete system data as possible from backup media.
Mondo Rescue (hereinafter referred to as Mondo) can be said to be Ghost under Linux. It can back up your system to tape, CD-R, CD-RW, NFS or hard disk partitions just like taking photos of your system. Mondo extensively supports LVM, RAID, ext2, ext3, JFS, XFS, ReiserFS, VFAT, etc. This software allows everyone to back up the Linux system step by step. Once there is a problem in the future, just use the created MondoCD to restore the system to the state of the last backup. Architecture: Mondo Rescue consists of two packages, Mondo and Mindi. Mondo is the main program used to backup and restore. Mindi is similar to a mini Linux, which includes the core, modules, function libraries and some important tools for system maintenance. Currently, Mondo has supported the Asianux 2/3 system platform.
Mondo rescue supports all versions of linux system. This document has only done experiments in the two linux versions, centos and redhat. These two versions are also commonly used nowadays.
2. Installation process
- 1 Download the mirror source address:
yum installation, first enter the /etc/yum.repos.d directory. Get the yum source corresponding to the Linux platform
ftp://ftp.mondorescue.org/rhel/6/x86_64/mondorescue.repo
Redhat and Centos6 versions
ftp://ftp.mondorescue.org/rhel/7x86_64/mondorescue.repo
Redhat and Centos7 Version
Execute the command:
Wget ftp://ftp.mondorescue.org/rhel/6/x86_64/mondorescue.repo
- 2 modify the source address
vim mondorescure.repo
Note: This must be modified, otherwise installation errors will occur.
- 3 installation
yum -y install mondo
Three make iso mirror
Run mondo
to run the mondoarchive command with root user authority. If there are no files to be ignored, just press the default and click ok.
Specific production reference address: Linux/Centos Mondo one-click deployment, image restoration, rapid deployment
4. Use VNC to remotely manage and operate the ubuntu system:
The fastest way is:
this longhr script is very convenient to install vncserver
sudo su - #注释: 输入密码
wget https://github.com/longhr/ubuntu1604hub/raw/master/ubuntu1604VNC.sh #注释: 下载脚本
sh ubuntu1604VNC.sh #执行脚本
This is done on the server side.
Then download a vnc viewer
https://www.realvnc.com/download/viewer/windows/ on the client computer.
The instructions for ubuntu1604vnc.sh are:
# #################################################################
# 脚本名称 : ubuntu1604VNC
# 脚本描述 : 自动安装配置和自动启动X11Vnc
# 编写日期 : 2016.6.13
# 作 者 : longhr
# 作者网站 : blog.csdn.net/longhr
# 软件版本 : 0.1
# 注意事项: 运行完5秒内会重启
# 免责声明 : 使用自由,后果自付
# #################################################################
# 步骤 1 - 安装 X11VNC
# #################################################################
sudo apt-get install x11vnc -y
# 步骤 2 - 配置访问密码
# #################################################################
sudo x11vnc -storepasswd /etc/x11vnc.pass
# 步骤 3 - 创建服务
# #################################################################
cat > /lib/systemd/system/x11vnc.service << EOF
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target
EOF
# 步骤 4 - 配配置防火墙端口,配置和启动服务
# ################################################################
echo "Configure firewall"
sudo ufw allow 5900
echo "Configure Services"
sudo systemctl enable x11vnc.service
sudo systemctl daemon-reload
# 步骤 5 - 重启
# ################################################################
sleep 5s
sudo shutdown -r now