

To create the disaster recovery of the system & generate the backup file, execute the following command, ~]$ sudo rear -d -v mkbackup We are now ready to create our first backup image of the system. ‘ /etc/rear/nf‘,Īdd the below details for NFS server in the following format, ~]$ sudo vi /etc/rear/nf Next we will configure the REAR server to storing the created backup ISO images on our remote NFS server. To install all these packages, run the following command ~]$ sudo yum install rear syslinux genisoimage We now need to install the packages for REAR & required packages for creating ISO image of the backup server. REAR installation & configuration on CentOS 7 / RHEL 7 Next we will install & configure the REAR server. Once done, save the file, exit & restart the NFS service to implement the changes made, ~]$ sudo systemctl restart nfs backup *(fsid=0,rw,sync,no_root_squash,no_subtree_check,crossmnt) Now we will configure the created directory for NFS share, open the NFS configuration fileĮdit the file ‘/etc/exports’ and make the following entry, ~]$ sudo vi /etc/exports To install NFS on the machine, execute the following command, ~]$ sudo yum install nfs-utilsĪfter NFS package has been installed, we will create a directory for storing the image ~]$ sudo mkdir /backup We are using another CentOS 7 machine with IP address 192.168.0.106 for using as a NFS server. So before we proceed with REAR installation, we will create a NFS share on a remote machine for storing our recovery images. In this tutorial, we will discuss how to setup REAR & use it to create a recovery of OS, store it on a NFS share & then we will restore the OS from created recovery image.
