> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/backup/bmr.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# BMR Linux

Bare Metal Recovery with ReaR

This is an implementation and restore guide

| Field                   | Value                       |
| ----------------------- | --------------------------- |
| **ReaR Version**        | rear-2.9 (git)              |
| **Tested Distribution** | Rocky Linux 8.9             |
| **Status**              | Internal – under validation |
| **Date Written**        | November 4, 2025            |

## Introduction

Tina's BMR (Bare Metal Recovery) feature lets you fully restore a Linux server — partitions, file systems, and data — onto a bare machine, without manual intervention on the OS.

It relies on Tina's integration with ReaR (Relax-and-Recover), a leading open source tool for creating rescue images on Linux. The generated ISO image contains a complete recovery environment; at boot, it automatically orchestrates the system rebuild and launches a Tina restore.

{% hint style="info" %}

### Scope of this document

This document covers installation, configuration, ISO image generation, and the complete restore procedure.

ReaR version: rear-2.9 — obtained via git clone from <https://github.com/rear/rear.git>

Screenshots and paths assume Rocky Linux 8.9; the procedure is similar on RHEL 8/9 and CentOS Stream.
{% endhint %}

## Prerequisites

### Tina Agent

The Tina agent must be installed and running on the machine to be protected, with a backup strategy covering the root (/).

The strategy must back up **/** (system root).

{% hint style="warning" %}

#### ⚠ Mandatory exclusion: /var/log/lastlog

The `/var/log/lastlog` file is a sparse file (a file with holes). Its apparent size can exceed 500 GB, while its actual content does not exceed \~100 KB.

Tina backs it up in full if no exclusion is configured, which causes the backup size to explode.

→ Add `/var/log/lastlog` to the strategy's exclusions before the first backup.

Alternative: enable the `manage_holes=yes` tunable in the Tina configuration (untested — to be validated).

Internal note: eventually, this behavior should be handled natively by Tina (tunable available but inactive by default).
{% endhint %}

### System packages

Install the following packages on the Linux machine:

```bash
# mkisofs (genisoimage)
dnf install mkisofs
```

#### Isolinux

Isolinux is not available in the standard repositories of recent distributions. You must download it manually from:

<https://www.kernel.org/pub/linux/utils/boot/syslinux/>

**Recommended version:** syslinux-6.03.tar.gz (latest stable version, unchanged for several years).

1. Download the archive from <https://www.kernel.org/pub/linux/utils/boot/syslinux/>
2. Copy and extract into `/opt`:

```bash
tar -xzf syslinux-6.03.tar.gz -C /opt

# Résultat :
# /opt/syslinux-6.03/bios/core/isolinux.bin
```

3. This path will be referenced in the ReaR configuration file (see section 3.2).

## Installing ReaR

### Tina Distribution of ReaR

The ReaR distribution integrated with Tina is located at:

```bash
$TINA_HOME/Tools/ReaR
```

It contains a complete Unix tree (usr, etc, var...) and does not interfere with any existing system installation of ReaR.

{% hint style="info" %}

#### ℹ No system installation required

All `rear` commands are invoked directly from:

```bash
$TINA_HOME/Tools/ReaR/usr/sbin/rear
```

It is not necessary (nor recommended) to install ReaR via dnf/yum.
{% endhint %}

### Configuration file

The main configuration file is:

```bash
$TINA_HOME/Tools/ReaR/etc/rear/local.conf
```

The global default values are documented in:

```bash
$TINA_HOME/Tools/ReaR/usr/share/rear/conf/default.conf
```

This file must not be modified directly.

Example of a minimal, commented `local.conf` file:

```bash
# — Paramètres de sortie ------------------------------------
OUTPUT=ISO
OUTPUT_URL=file://${TINA_HOME}/Tools/ReaR/var/lib/rear/output

# — Méthode de sauvegarde : délégation à Tina ---------------
BACKUP=TINA
TINA_HOME=/opt/tina        # ← ADAPTER à votre installation

# — Isolinux -----------------------------------------------
ISO_ISOLINUX_BIN=/opt/syslinux-6.03/bios/core/isolinux.bin

# — Réseau : désactiver DHCP client
# (non supporté sur Linux récents)
# systemd-networkd remplace dhclient sur Rocky 8+ / RHEL 8+

USE_DHCLIENT=No
```

{% hint style="warning" %}

#### ⚠ TINA\_HOME to adapt

The value of `TINA_HOME` in `local.conf` must match Tina's actual installation path.

A future version of the Tina setup should set this value automatically.
{% endhint %}

{% hint style="warning" %}

#### ⚠ DHCP issue on recent Linux systems

Rocky Linux 8+, RHEL 8+, and CentOS Stream use `systemd-networkd` as their DHCP client.

ReaR 2.9 does not yet support `systemd-networkd`; the recovery image may fail to boot if `USE_DHCLIENT` is not disabled.

→ Keep:

```bash
USE_DHCLIENT=No
```

in `local.conf` until this support is integrated into ReaR.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/backup/bmr.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
