Skip to content

Commit

Permalink
improve docs and hints for portable mode
Browse files Browse the repository at this point in the history
  • Loading branch information
schlomo committed Apr 10, 2024
1 parent 38bfd4e commit c0b7a8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion doc/user-guide/17-Portable-Mode.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ The purpose of the portable mode is to solve special scenarios where the ReaR re

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.

To recover a system from a portable rescue archive, you need to extract the archive on your rescue system, change into the directory and run `./usr/sbin/rear -p recover`. The recovery process will then use the extracted ReaR installation to recover the system.
To recover a system from a portable rescue archive, you need to

1. extract the archive on your rescue system into a directory

2. set the machine hostname to the target machine, e.g. via `hostnamectl hostname <hostname>` or `hostname <hostname>`

3. change into the directory and run `./usr/sbin/rear -p recover`

The recovery process will then use the extracted ReaR installation to recover the system.

== Caveats

Expand Down
2 changes: 1 addition & 1 deletion usr/share/rear/init/default/002_check_rear_recover_mode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ else
# We are in the normal/original system:
case "$WORKFLOW" in
(recover|layoutonly|restoreonly|finalizeonly|mountonly)
Error "The workflow $WORKFLOW is only supported in the ReaR rescue/recovery system"
Error "The workflow $WORKFLOW is only supported in the ReaR rescue/recovery system, use --portable to disable this check."
;;
(*)
LogPrint "Running workflow $WORKFLOW on the normal/original system"
Expand Down

0 comments on commit c0b7a8f

Please sign in to comment.