Debian Codegraph @

doc/user-guide/17-Portable-Mode.adoc

raw
1 = Documentation for the Portable Recovery Mode
2
3 == Summary
4
5 ReaR supports a portable mode where `rear mkrescue` or `rear mkbackup` will not create a bootable rescue media but instead only a "portable" rescue archive. This archive contains a full copy of ReaR as it was installed on the source system, together with the ReaR configuration and the recovery information. It doesn't contain any other software or binaries.
6
7 The purpose of the portable mode is to solve special scenarios where the ReaR rescue media either doesn't work or can't be created. It can be also used to save storage for covering a large amount of identical systems with a shared generic rescue media. The portable mode is therefore not a replacement for the ReaR rescue media, but a workaround for special cases. We developed and tested the portable mode with the https://www.system-rescue.org/[System Rescue CD] and the Ubuntu Desktop Live CD, where it worked well.
8
9 == How to use the Portable Recovery Mode
10
11 To create a portable rescue archive, run `rear mkrescue` or `rear mkbackup` with the `OUTPUT=PORTABLE` option. This will create a portable rescue archive in the `output/` directory. The archive is a tarball with the name `rear-<hostname>-portable.tar.gz`. It will be also copied to the `OUTPUT_URL` if it is set.
12
13 To recover a system from a portable rescue archive, you need to
14
15 1. extract the archive on your rescue system into a directory
16
17 2. set the machine hostname to the target machine, e.g. via `hostnamectl hostname <hostname>` or `hostname <hostname>`
18
19 3. change into the directory and run `./usr/sbin/rear -p recover`
20
21 The recovery process will then use the extracted ReaR installation to recover the system.
22
23 == Caveats
24
25 With the `-p` option you disable some sanity checks in ReaR, which can be used to run any workflow, even workflows that harm your system (e.g. recover on the source system).
26
27 In portable mode ReaR assumes that all required software is available in the rescue system. There are no further checks for missing software. If you miss some software, the recovery process will fail. ReaR is not tested for this scenario as normally the rescue media is guaranteed to contain everything needed for a successful recovery.