0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

RHEL8.9でRear(Relax-and-Recover)を使用してバックアップイメージをローカルに作成する

Last updated at Posted at 2024-10-18

##目標

  • RHEL8でOSのバックアップリストア
  • リストアイメージはローカルディスクに出力する

参考)
ReaR/UEFI: "grub-core/loader/i386/efi/linux.c:xxx can't allocate initrd" というエラーで ISO が起動に失敗する

##環境

  • RHEL8.9

##準備するもの

  • RHEL ISO

##必要パッケージをインストールする

# yum install rear grub2-efi-x64-modules

♯♯local.confを設定する

vi /etc/real/local.conf

OUTPUT=ISO
BACKUP=NETFS
OUTPUT_URL=null
BACKUP_URL="iso:///backup"
ISO_DIR="/var/tmp/rear/iso/"
BACKUP_PROG_COMPRESS_OPTIONS=( --gzip )
BACKUP_PROG_COMPRESS_SUFFIX=".gz"
BACKUP_PROG_EXCLUDE=( '/tmp/*' '/data/*' )
BACKUP_URL=iso:///backup/
USE_RESOLV_CONF="n"
USING_UEFI_BOOTLOADER=yes
BACKUP_PROG_EXCLUDE=("${BACKUP_PROG_EXCLUDE[@]}" '/media' '/var/tmp' '/var/crash')
BACKUP_PROG_OPTIONS+=( --anchored --xattrs-include='*.*' --xattrs )
AUTOEXCLUDE_MULTIPATH="n"
BOOT_OVER_SAN="y"
FIRMWARE_FILES="no"

##リストアイメージ用のフォルダーを作成する

# mkdir -p /var/tmp/rear/iso/

##バックアップを実行する

# time rear -d -v mkbackup
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?