Table des matières

Rear backup - Relax and Recover - 2017-11-03

Rear est un logiciel qui permet sauvegarde et restauration dans le cadre d'une démarche PRA. Il permet

Installation

cf : http://relax-and-recover.org/documentation/getting-started

Paquets à installer : parted, bc, extlinux, rsync, nfs-common, …

Output ISO - Backup NETFS via NFS

### write the rescue initramfs to USB and update the bootloader
OUTPUT=ISO
 
### create a backup using the internal NETFS method, using 'tar'
BACKUP=NETFS
 
### write both rescue image and backup to the NFS share 
BACKUP_URL="nfs://192.168.1.36/data/nfs"

Résultat obtenu

 
root@rearsrv:~# ls -lh /data/nfs/host
total 510M
-rw------- 1 root root 2,6M nov.   3 18:08 backup.log
-rw------- 1 root root 440M nov.   3 18:08 backup.tar.gz
-rw------- 1 root root  202 nov.   3 18:05 README
-rw------- 1 root root  67M nov.   3 18:05 rear-host.iso
-rw------- 1 root root 676K nov.   3 18:05 rear-host.log
-rw------- 1 root root  264 nov.   3 18:05 VERSION

Output USB - Backup NETFS

### 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

Output ISO - Backup RSYNC via rsync

### write the rescue initramfs to ISO and update the ISO image
OUTPUT=ISO
 
### create a backup using 'rsync'
BACKUP=RSYNC
 
### write both rescue image and backup to the host thru sync/ssh
BACKUP_URL=rsync://root@192.168.1.33/home/sv