How to exclude the recreation on some of the mount point devices while recovering with Relax and Recover(ReaR) ?
Issue
- How to exclude the recreation on some of the mount point devices while recovering with Relax and Recover(ReaR) ?
- We want to take backup of only to OS disk and not the application data disk which is separate disk and also skip the recreating of the data disk partitions and file system during the recovery process ?
-
Even with the usage of
ONLY_INCLUDE_VGto only includerhelvolume group, still other devices which is not part of the this VG its still recreating the non-OS mount point device/data# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 4.2G 0 rom vda 252:0 0 8G 0 disk ├─vda1 252:1 0 1G 0 part /boot └─vda2 252:2 0 7G 0 part ├─rhel-root 253:0 0 6.1G 0 lvm / └─rhel-swap 253:1 0 924M 0 lvm [SWAP] vdb 252:16 0 1G 0 disk └─vdb1 252:17 0 1023M 0 part /data $ cat /etc/rear/local.conf OUTPUT=ISO OUTPUT_URL=nfs://192.168.122.161/nfs BACKUP=NETFS BACKUP_URL=nfs://192.168.122.161/nfs ONLY_INCLUDE_VG=( "rhel" ) BACKUP_PROG_EXCLUDE=( "${BACKUP_PROG_EXCLUDE[@]}" '/var/tmp' '/var/cache/' '/tmp' '/data' )
Environment
- Red Hat Enterprise Linux 7
- ReaR
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.