Draft: Relax-and-Recover
Backup to USB and restore from USB
sudo yum install git syslinux syslinux-extlinux kernel-devel
git clone https://github.com/rear/rear.git
cd rear/
insert USB stick to the backed-up computer
lsblk # to find name of the USB flash card
umount /dev/sdb1 # umount if USB flash is automatically mounted
sudo usr/sbin/rear format /dev/sdb
type 'Yes' to format USB flash
rear will format that flash as REAR-000
edit rear configuration:
vi etc/rear/local.conf
### 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
Create rescue image (it's without OS backup and used to restore OS in case of failure) with verbose output:
sudo usr/sbin/rear -v mkrescue
Now reboot your system and try to boot from the USB device. If it's ok, then rescue image is ok and you can do OS data backup alonh with creating rescue media:
sudo usr/sbin/rear -v mkbackup
Now reboot your system and try to boot from the USB device. If it's ok, then rescue image is ok and you can do OS data backup alonh with creating rescue media:
sudo usr/sbin/rear -v mkbackup
No comments:
Post a Comment