About Linux Rear command __linux

Source: Internet
Author: User
Tags git clone
Man for a moment rear, is so explained:

NAME rear-bare Metal disaster recovery and system Migration Tool synopsis rear [-h|--help] [-v|--version


] [-DSSV] [-d|--debugscripts SET] [-C DIR] [-C CONFIG] [---] [-] [] [--] COMMAND [ARGS ...] DESCRIPTION Relax-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 It initiates a restore from backup. Restores to different hardware are possible.


       Relax-and-recover can therefore be used as a migration tool as. Currently Relax-and-recover supports various boot media (incl. ISO, PXE, obdr tape, USB or ESATA storage), a variety of NE Twork protocols (incl. SFTP, FTP, HTTP, NFS, CIFS) for storage and backup as OK as a multitude of backup strategi Es (incl. IBM Tivoli Storage Manager, HP dataprotector, Symantec NetBackup, EMC NetWorker, FDr/upstream, NovaBACKUP DC, Bareos, Bacula, rsync, RBME, Borg).


       This results in a bootable image is capable of booting via PXE, DVD/CD, bootable tape or virtual provisioning. Relax-and-recover was designed to being easy to set up, requires no maintenance and are there to assist when disaster Stri Kes.


       The setup-and-forget nature removes of its is excuses for the not having a disaster recovery solution. Recovering from disaster are made very straight-forward by a 2-step recovery process so this it can be executed by operatio NAL 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 and help de


       Bug during development. Relax-and-recover comes with absoluteLY NO WARRANTY; For details, the GNU general public License at:http://www.gnu.org/licenses/gpl.html

Read it, looks like rear is a Linux operating system Backup tool, you can also make the current operating system backup disk.

For more detailed usage, see:
http://relax-and-recover.org/documentation/getting-started

The following text reproduced the link above:

Getting Started

This quick start Guide'll show your 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'll ' own ' the device in this example.

This would destroy all data on that device.

sudo usr/sbin/rear format/dev/sdb
Relax-and-recover asks you to confirm this 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, 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 a 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 are might want to check the log file for possible errors or I-what relax-and-recover.

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


If that is 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.