man了一下rear,是这么解释的:

NAMErear - bare metal disaster recovery and system migration toolSYNOPSISrear [-h|--help] [-V|--version] [-dsSv] [-D|--debugscripts SET] [-c DIR] [-C CONFIG] [-r KERNEL] [--] COMMAND [ARGS...]DESCRIPTIONRelax-and-Recover is the leading Open Source disaster recovery solution. It is a modular framework with many ready-to-go workflows for common situations.Relax-and-Recover produces a bootable image. This image can repartition the system. Once that is done it initiates a restore from backup. Restores to different hardware arepossible. Relax-and-Recover can therefore be used as a migration tool as well.Currently Relax-and-Recover supports various boot media (incl. ISO, PXE, OBDR tape, USB or eSATA storage), a variety of network protocols (incl. sftp, ftp, http, nfs, cifs) forstorage and backup as well as a multitude of backup strategies (incl. IBM Tivoli Storage Manager, HP DataProtector, Symantec NetBackup, EMC NetWorker, FDR/Upstream, NovaBACKUPDC, Bareos, Bacula, rsync, rbme, Borg). This results in a bootable image that is capable of booting via PXE, DVD/CD, bootable tape or virtual provisioning.Relax-and-Recover was designed to be easy to set up, requires no maintenance and is there to assist when disaster strikes. Its setup-and-forget nature removes any excuses for nothaving a disaster recovery solution implemented.Recovering from disaster is made very straight-forward by a 2-step recovery process so that it can be executed by operational teams when required. When used interactively (e.g.when used for migrating systems), menus help make decisions to restore to a new (hardware) environment.Extending Relax-and-Recover is made possible by its modular framework. Consistent logging and optionally extended output help understand the concepts behind Relax-and-Recover andhelp debug during development.Relax-and-Recover comes with ABSOLUTELY NO WARRANTY; for details see the GNU General Public License at: http://www.gnu.org/licenses/gpl.html

读下来,貌似rear是linux下的操作系统备份工具,还可以制作当前操作系统的备份盘等.

更详细的用法见:
http://relax-and-recover.org/documentation/getting-started

如下全文转载上面的链接:

Getting Started

This quick start guide will show you how to run Relax-and-Recover from the git checkout and create a bootable USB backup.

Start by cloning the Relax-and-Recover sources from GitHub:

git clone https://github.com/rear/rear.git
Move into the rear/ directory:

cd rear/
Prepare your USB media. Change /dev/sdb to the correct device in your situation. Relax-and-Recover will ‘own’ the device in this example.

This will destroy all data on that device.

sudo usr/sbin/rear format /dev/sdb
Relax-and-recover asks you to confirm that you want to format the device:

Yes
The device has been labeled REAR-000 by the ‘format’ workflow.

Now edit the ‘etc/rear/local.conf’ configuration file:

cat > etc/rear/local.conf <<EOF
### write the rescue initramfs to USB and update the USB bootloader
OUTPUT=USB

### create a backup using the internal NETFS method, using 'tar'
BACKUP=NETFS

### write both rescue image and backup to the device labeled REAR-000
BACKUP_URL=usb:///dev/disk/by-label/REAR-000
EOF
Now you are ready to create a rescue image. We want verbose output.

sudo usr/sbin/rear -v mkrescue
The output I get is:

Relax-and-Recover 1.13.0 / $Date$
Using log file: /home/jeroen/tmp/quickstart/rear/var/log/rear/rear-fireflash.log
Creating disk layout
Creating root filesystem layout
WARNING: To login as root via ssh you need to setup an authorized_keys file in /root/.ssh
Copying files and directories
Copying binaries and libraries
Copying kernel modules
Creating initramfs
Writing MBR to /dev/sdb
Copying resulting files to usb location
You might want to check the log file for possible errors or see what Relax-and-Recover is doing.

Now reboot your system and try to boot from the USB device.

If that worked, you can dive into the advanced Relax-and-Recover options and start creating full backups. If your USB device has enough space, initiate a backup using:

sudo usr/sbin/rear -v mkbackup
That is it. Your hard disk can now safely fail.

关于Linux的rear命令相关推荐

  1. linux下find命令的使用和总结

    背景:find命令十分的好用,特别是在查找文件的时候,这个时候需要和文件通配符一起使用. 1 前言 我们为什么要学会使用find命令? 每一种操作系统都有成千上万的文件组成,对于linux这样&quo ...

  2. linux 判断某个命令是否安装

    linux 判断某个命令是否安装 if ! [ -x "$(command -v git)" ]; thenecho 'Error: git is not installed.' ...

  3. linux下比较文件并输出,Linux使用diff命令比较文件找出文件之间相同的部分

    如果你需要比较系统文件的内容,那么你就会是使用到diff命令,可找出文件之间相同的部分,下面小编就给大家详细介绍下Linux diff命令的用法. diff 命令是 linux上非常重要的工具,用于比 ...

  4. Linux的watch命令--实时监测命令的运行结果

    watch 是一个非常实用的命令,基本所有的 Linux 发行版都带有这个小工具,如同名字一样,watch 可以帮你监测一个命令的运行结果,省得你一遍遍的手动运行.直接在 watch 后面接你想运行的 ...

  5. linux的strace命令

    linux的strace命令 strace 命令是一种强大的工具,它能够显示所有由用户空间程序发出的系统调用. strace 显示这些调用的参数并返回符号形式的值.strace 从内核接收信息,而且不 ...

  6. Linux下addr2line命令用法

    Linux下addr2line命令用于将程序指令地址转换为所对应的函数名.以及函数所在的源文件名和行号.当含有调试信息(-g)的执行程序出现crash时(core dumped),可使用addr2li ...

  7. Linux查看WAS的jvm信息,linux 下使用命令查看jvm信息

    java程序员除了编写业务代码之外,特别是项目上线之后,更需要关注的是系统的性能表现,这个时候就需要了解一下jvm的性能表现了,可以借助于java虚拟机自带的一些分析工具,主要有三个常用的命令. 1. ...

  8. linux命令注入,Linux kernel本地命令注入漏洞

    Linux kernel本地命令注入漏洞 2005-10-19 eNet&Ciweek Linux kernel 2.2.6 Linux kernel 2.2.5 Linux kernel 2 ...

  9. linxu passwd 给linux用户设置密码 命令

    [root@localhost ~]# passwd # 修改 root 用户的密码 passwd 给linux用户设置密码 命令 passwd www 直接passwd是当前用户设置密码 非交互式修 ...

  10. Linux之链接命令

    Linux之链接命令 1. 链接命令的介绍 链接命令是创建链接文件,链接文件分为: 软链接 硬链接 命令 说明 ln -s 创建软链接 ln 创建硬链接 2. 软链接 类似于Windows下的快捷方式 ...

最新文章

  1. Velocity魔法堂系列二:VTL语法详解
  2. 马士兵java视频学习顺序
  3. 统计学习方法|逻辑斯蒂原理剖析及实现
  4. fastjson反序列化多层嵌套泛型类与java中的Type类型
  5. Ubuntu升级之后The disk drive for / is not ready yet or not present的解决方法
  6. java:static关键字
  7. vue 封装dialog_自己封装dialog组件
  8. 计算机和互联网基础知识作业,计算机作业1基础知识含答案.doc
  9. java中JShell脚本工具、常量优化、集成开发环境IDEA
  10. Qt工作笔记-使用SQL中的LIMIT进行数据分页
  11. 项目背景怎么描述_培训回顾 |第六届“互联网+”之创业大赛项目计划书撰写
  12. hive(3)HiveQL数据定义
  13. 链接时出现LNK2001错误的解决方法
  14. 小结大学计算机基础课程内容报告,WORD制作新年贺卡和个人简历大学计算机基础课程设计报告书.doc...
  15. 14.PHP核心技术与最佳实践 --- PHP 编码规范
  16. 关于机器学习一些好的博客和资料
  17. 数学建模之预测方法总结与案例
  18. 解决linux(centos7)重新安装mysql systemctl start mysqld.service时报错
  19. Python元类---道生一,一生二,二生三
  20. 程序员英语再渣也要会的单词

热门文章

  1. 小鹤双拼鹤形简易入门-by小鹤双拼输入法QQ群用户-弧
  2. 安卓实现图片缩放平移的基本步骤
  3. Ps怎么做火焰字 PS火焰字制作图文教程
  4. yigo基础学习笔记4_业务流程
  5. strongswan与sangfor的ikev2配置
  6. 在html中页面不全,网页显示不全,教您网页显示不全怎么办
  7. The Annotated Transformer(解读Transformer)
  8. 每日新闻:腾讯与Line携手在日本提供移动支付服务;阿里组织架构调整 行癫任阿里云智能总裁;每周要工作80小时才有可能改变世界...
  9. python人脸识别统计人数qt窗体
  10. 点云外包矩形框(六面体)