Subscribe Us


Breaking

Recent In Voip

Popular

Comments

Recent

Linux Full System Backup With REAR

 



Create an export on the NFS server(in this example, it has the IP address 192.168.56.1). We use /storage directory for storing the back up files later.

# yum install nfs-utils

# mkdir /storage

# vi /etc/exports
/storage        *(fsid=0,rw,sync,no_root_squash,no_subtree_check,crossmnt)

# service nfs start


Install packages which are required for creating ISO image on the backup server.

# yum install rear genisoimage syslinux

Modify the configuration file /etc/rear/local.conf on the backup server with these settings.

# vi /etc/rear/local.conf
OUTPUT=ISO
OUTPUT_URL=nfs://192.168.56.1/storage
BACKUP=NETFS
BACKUP_URL=nfs://192.168.56.1/storage
BACKUP_PROG_EXCLUDE=("${BACKUP_PROG_EXCLUDE[@]}" '/media' '/var/tmp' '/var/crash') #here you select the directories you want to exclude
NETFS_KEEP_OLD_BACKUP_COPY=

Create the disaster recovery system and generate backup files.

# rear -d -v mkbackup

A bootable ISO image with disaster recovery system will be created under /var/lib/rear/output by default. At last the files to be backed up as well as the bootable ISO image will be transfered to the NFS server.

0 on: "Linux Full System Backup With REAR"