Debian Codegraph @

doc/rear.8

raw
1 '\" t
2 .\" Title: rear
3 .\" Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.12
5 .\" Date: 2024-12-17
6 .\" Manual: \ \&
7 .\" Source: \ \&
8 .\" Language: English
9 .\"
10 .TH "REAR" "8" "2024-12-17" "\ \&" "\ \&"
11 .ie \n(.g .ds Aq \(aq
12 .el .ds Aq '
13 .ss \n[.ss] 0
14 .nh
15 .ad l
16 .de URL
17 \fI\\$2\fP <\\$1>\\$3
18 ..
19 .als MTO URL
20 .if \n[.g] \{\
21 . mso www.tmac
22 . am URL
23 . ad l
24 . .
25 . am MTO
26 . ad l
27 . .
28 . LINKSTYLE blue R < >
29 .\}
30 .SH "NAME"
31 rear \- bare metal disaster recovery and system migration tool
32 .SH "SYNOPSIS"
33 .sp
34 \fBrear\fP [\fB\-h\fP|\fB\-\-help\fP] [\fB\-V\fP|\fB\-\-version\fP] [\fB\-dsSv\fP] [\fB\-D\fP|\fB\-\-debugscripts\fP \fISET\fP] [\fB\-c\fP \fIDIR\fP] [\fB\-C\fP \fICONFIG\fP] [\fB\-r\fP \fIKERNEL\fP] [\fB\-n\fP|\fB\-\-non\-interactive\fP] [\fB\-e\fP|\fB\-\-expose\-secrets\fP] [\-\-] \fICOMMAND\fP [\fIARGS\fP...]
35 .SH "DESCRIPTION"
36 .sp
37 Relax\-and\-Recover (abbreviated ReaR) is the de facto standard disaster recovery framework on Linux.
38 .sp
39 It is in particular used on enterprise Linux distributions like Red Hat Enterprise Linux (RHEL)
40 and SUSE Linux Enterprise Server (SLES).
41 .sp
42 ReaR is a system administrator tool and framework to create a bootable disaster recovery system image
43 for bare metal disaster recovery with data backup restore on physical or virtual replacement hardware.
44 .sp
45 For bare metal disaster recovery the ReaR recovery system is booted on pristine replacement hardware.
46 On replacement hardware first the storage setup/layout is recreated (disk partitioning, filesystems, mount points),
47 then a backup restore program is called to restore the data (system files) into the recreated storage,
48 and finally a boot loader is installed.
49 .sp
50 System administrators use the ReaR framework to set up a disaster recovery procedure
51 as part of their disaster recovery policy (which complements their existing backup policy).
52 .sp
53 ReaR complements backup and restore of data with bare metal disaster recovery. ReaR can also act as local backup software,
54 but ReaR is not a a backup management software. In many enterprise environmentments, data backup and restore happens via dedicated backup software which is integrated by ReaR and used to restore the data onto a replacement system as part of the automated disaster recovery procedure implemented by ReaR.
55 .sp
56 ReaR has support for built\-in backup methods using \(aqtar\(aq and \(aqrsync\(aq that are used for backup and restore.
57 .sp
58 ReaR integrates supports the following 3rd party, also commercial, tools for restoring a backup.
59 .sp
60 The complete list of backup methods (\fBBACKUP=...\fP) is:
61 .sp
62 .RS 4
63 .ie n \{\
64 \h'-04'\(bu\h'+03'\c
65 .\}
66 .el \{\
67 . sp -1
68 . IP \(bu 2.3
69 .\}
70 \fBAVA\fP Dell EMC Avamar / EMC Avamar
71 .RE
72 .sp
73 .RS 4
74 .ie n \{\
75 \h'-04'\(bu\h'+03'\c
76 .\}
77 .el \{\
78 . sp -1
79 . IP \(bu 2.3
80 .\}
81 \fBBACULA\fP Bacula
82 .RE
83 .sp
84 .RS 4
85 .ie n \{\
86 \h'-04'\(bu\h'+03'\c
87 .\}
88 .el \{\
89 . sp -1
90 . IP \(bu 2.3
91 .\}
92 \fBBAREOS\fP Bareos
93 .RE
94 .sp
95 .RS 4
96 .ie n \{\
97 \h'-04'\(bu\h'+03'\c
98 .\}
99 .el \{\
100 . sp -1
101 . IP \(bu 2.3
102 .\}
103 \fBBLOCKCLONE\fP block device cloning via \f(CRdd\fP
104 .RE
105 .sp
106 .RS 4
107 .ie n \{\
108 \h'-04'\(bu\h'+03'\c
109 .\}
110 .el \{\
111 . sp -1
112 . IP \(bu 2.3
113 .\}
114 \fBBORG\fP Borg Backup
115 .RE
116 .sp
117 .RS 4
118 .ie n \{\
119 \h'-04'\(bu\h'+03'\c
120 .\}
121 .el \{\
122 . sp -1
123 . IP \(bu 2.3
124 .\}
125 \fBCDM\fP Rubrik Cloud Data Management
126 .RE
127 .sp
128 .RS 4
129 .ie n \{\
130 \h'-04'\(bu\h'+03'\c
131 .\}
132 .el \{\
133 . sp -1
134 . IP \(bu 2.3
135 .\}
136 \fBDP\fP OpenText Data Protector
137 .RE
138 .sp
139 .RS 4
140 .ie n \{\
141 \h'-04'\(bu\h'+03'\c
142 .\}
143 .el \{\
144 . sp -1
145 . IP \(bu 2.3
146 .\}
147 \fBDUPLICITY\fP Duplicity / Duply
148 .RE
149 .sp
150 .RS 4
151 .ie n \{\
152 \h'-04'\(bu\h'+03'\c
153 .\}
154 .el \{\
155 . sp -1
156 . IP \(bu 2.3
157 .\}
158 \fBEXTERNAL\fP External custom restore method
159 .RE
160 .sp
161 .RS 4
162 .ie n \{\
163 \h'-04'\(bu\h'+03'\c
164 .\}
165 .el \{\
166 . sp -1
167 . IP \(bu 2.3
168 .\}
169 \fBFDRUPSTREAM\fP FDR/Upstream
170 .RE
171 .sp
172 .RS 4
173 .ie n \{\
174 \h'-04'\(bu\h'+03'\c
175 .\}
176 .el \{\
177 . sp -1
178 . IP \(bu 2.3
179 .\}
180 \fBGALAXY11\fP Commvault Galaxy 11 / Commvault Simpana
181 .RE
182 .sp
183 .RS 4
184 .ie n \{\
185 \h'-04'\(bu\h'+03'\c
186 .\}
187 .el \{\
188 . sp -1
189 . IP \(bu 2.3
190 .\}
191 \fBNBKDC\fP NovaStor DataCenter
192 .RE
193 .sp
194 .RS 4
195 .ie n \{\
196 \h'-04'\(bu\h'+03'\c
197 .\}
198 .el \{\
199 . sp -1
200 . IP \(bu 2.3
201 .\}
202 \fBNBU\fP Veritas NetBackup / Symantec NetBackup
203 .RE
204 .sp
205 .RS 4
206 .ie n \{\
207 \h'-04'\(bu\h'+03'\c
208 .\}
209 .el \{\
210 . sp -1
211 . IP \(bu 2.3
212 .\}
213 \fBNETFS\fP ReaR built\-in backup and restore via \f(CRrsync\fP or \f(CRtar\fP to a network file system or to a locally attached backup disk (USB, eSATA, ...)
214 .RE
215 .sp
216 .RS 4
217 .ie n \{\
218 \h'-04'\(bu\h'+03'\c
219 .\}
220 .el \{\
221 . sp -1
222 . IP \(bu 2.3
223 .\}
224 \fBNFS4SERVER\fP NFS4 server to push data \fBto\fP the rescue system
225 .RE
226 .sp
227 .RS 4
228 .ie n \{\
229 \h'-04'\(bu\h'+03'\c
230 .\}
231 .el \{\
232 . sp -1
233 . IP \(bu 2.3
234 .\}
235 \fBNSR\fP Dell EMC NetWorker / EMC NetWorker / Legato NetWorker
236 .RE
237 .sp
238 .RS 4
239 .ie n \{\
240 \h'-04'\(bu\h'+03'\c
241 .\}
242 .el \{\
243 . sp -1
244 . IP \(bu 2.3
245 .\}
246 \fBOBDR\fP One Button Disaster Recovery via tape
247 .RE
248 .sp
249 .RS 4
250 .ie n \{\
251 \h'-04'\(bu\h'+03'\c
252 .\}
253 .el \{\
254 . sp -1
255 . IP \(bu 2.3
256 .\}
257 \fBPPDM\fP Dell PowerProtect Data Manager
258 .RE
259 .sp
260 .RS 4
261 .ie n \{\
262 \h'-04'\(bu\h'+03'\c
263 .\}
264 .el \{\
265 . sp -1
266 . IP \(bu 2.3
267 .\}
268 \fBRBME\fP Rsync Backup Made Easy
269 .RE
270 .sp
271 .RS 4
272 .ie n \{\
273 \h'-04'\(bu\h'+03'\c
274 .\}
275 .el \{\
276 . sp -1
277 . IP \(bu 2.3
278 .\}
279 \fBREQUESTRESTORE\fP Request restore from a human operator
280 .RE
281 .sp
282 .RS 4
283 .ie n \{\
284 \h'-04'\(bu\h'+03'\c
285 .\}
286 .el \{\
287 . sp -1
288 . IP \(bu 2.3
289 .\}
290 \fBRSYNC\fP ReaR built\-in backup using \f(CRrsync\fP via \f(CRrsync\fP or \f(CRssh\fP protocol
291 .RE
292 .sp
293 .RS 4
294 .ie n \{\
295 \h'-04'\(bu\h'+03'\c
296 .\}
297 .el \{\
298 . sp -1
299 . IP \(bu 2.3
300 .\}
301 \fBSESAM\fP SEP Sesam
302 .RE
303 .sp
304 .RS 4
305 .ie n \{\
306 \h'-04'\(bu\h'+03'\c
307 .\}
308 .el \{\
309 . sp -1
310 . IP \(bu 2.3
311 .\}
312 \fBTSM\fP IBM Storage Protect / Tivoli Storage Manager / IBM Spectrum Protect
313 .RE
314 .sp
315 .RS 4
316 .ie n \{\
317 \h'-04'\(bu\h'+03'\c
318 .\}
319 .el \{\
320 . sp -1
321 . IP \(bu 2.3
322 .\}
323 \fBVEEAM\fP Veeam Backup
324 .RE
325 .sp
326 ReaR integrates well with Disaster Recovery Linux Manager (DRLM, see \c
327 .URL "https://drlm.org" "" "),"
328 which can act as a central management tool for ReaR deployments.
329 .sp
330 Professional services and support are available, see \c
331 .URL "https://relax\-and\-recover.org/support/" "" ""
332 .SH "OPTIONS"
333 .SS "GLOBAL OPTIONS"
334 .sp
335 \-h \-\-help
336 .RS 4
337 usage information
338 .RE
339 .sp
340 \-c DIR
341 .RS 4
342 alternative config directory instead of /etc/rear
343 .RE
344 .sp
345 \-C CONFIG
346 .RS 4
347 additional config files (absolute path or relative to config directory)
348 .RE
349 .sp
350 \-d
351 .RS 4
352 \fBdebug mode\fP: run many commands verbosely with debug messages in the log file (also sets \-v)
353 .RE
354 .sp
355 \-D
356 .RS 4
357 \fBdebugscript mode\fP: log executed commands via \(aqset \-x\(aq (also sets \-v and \-d)
358 .RE
359 .sp
360 \-\-debugscripts SET
361 .RS 4
362 same as \-D but \fBdebugscript mode\fP with \(aqset \-SET\(aq
363 .RE
364 .sp
365 \-r KERNEL
366 .RS 4
367 kernel version to use (by default the version of the running kernel)
368 .RE
369 .sp
370 \-s
371 .RS 4
372 \fBsimulation mode\fP: show what scripts are run without executing them
373 .RE
374 .sp
375 \-S
376 .RS 4
377 \fBstep\-by\-step mode\fP: acknowledge each script individually
378 .RE
379 .sp
380 \-v
381 .RS 4
382 \fBverbose mode\fP: show messages what ReaR is doing on the terminal
383 .RE
384 .sp
385 \-n \-\-non\-interactive
386 .RS 4
387 \fBnon\-interactive mode\fP: abort in UserInput() if default input does not make ReaR proceed (experimental)
388 .RE
389 .sp
390 \-e \-\-expose\-secrets
391 .RS 4
392 do not suppress output of confidential values (passwords, encryption keys) in particular in the log file
393 .RE
394 .sp
395 \-p \-\-portable
396 .RS 4
397 allow running any ReaR workflow, especially recover, from a git checkout or rear source archive
398 .RE
399 .sp
400 \-V \-\-version
401 .RS 4
402 version information
403 .RE
404 .SS "COMMANDS"
405 .sp
406 \fBchecklayout\fP
407 .RS 4
408 check if the disk layout has changed since the last run of
409 mkbackup/mkrescue
410 .RE
411 .sp
412 \fBdump\fP
413 .RS 4
414 dump configuration and system information; run this to verify
415 your setup
416 .RE
417 .sp
418 \fBformat\fP
419 .RS 4
420 format and label USB or tape media to be used with rear;
421 first argument is the USB or tape device to use, eg. \fI/dev/sdX\fP or
422 \fI/dev/stX\fP
423 .RE
424 .sp
425 \fBhelp\fP
426 .RS 4
427 print full list of commands and options
428 .RE
429 .sp
430 \fBmkbackup\fP
431 .RS 4
432 create rescue media and backup the system (only for internal backup
433 methods)
434 .RE
435 .sp
436 \fBmkbackuponly\fP
437 .RS 4
438 backup the system (only for internal backup methods) without creating
439 rescue media
440 .RE
441 .sp
442 \fBmkrescue\fP
443 .RS 4
444 create rescue media only
445 .RE
446 .sp
447 \fBmountonly\fP
448 .RS 4
449 use ReaR as live media to mount and repair the system
450 .RE
451 .sp
452 \fBrecover\fP
453 .RS 4
454 recover the system; can be used only when running from the rescue media
455 .RE
456 .sp
457 \fBrestoreonly\fP
458 .RS 4
459 only restore the backup; can be used only when running from the rescue media
460 .RE
461 .sp
462 \fBmkopalpba\fP
463 .RS 4
464 create a pre\-boot authentication (PBA) image to boot from TCG Opal 2\-compliant self\-encrypting disks
465 .RE
466 .sp
467 \fBopaladmin\fP
468 .RS 4
469 administrate TCG Opal 2\-compliant self\-encrypting disks
470 .RE
471 .sp
472 \fBvalidate\fP
473 .RS 4
474 submit validation information
475 .RE
476 .sp
477 Use \(aqrear \-v help\(aq for more advanced commands.
478 .SH "BACKGROUND INFORMATION"
479 .sp
480 The process of bare metal disaster recovery consists of two parts:
481 .sp
482 .RS 4
483 .ie n \{\
484 \h'-04'\(bu\h'+03'\c
485 .\}
486 .el \{\
487 . sp -1
488 . IP \(bu 2.3
489 .\}
490 Recreate the system layout
491 .RE
492 .sp
493 .RS 4
494 .ie n \{\
495 \h'-04'\(bu\h'+03'\c
496 .\}
497 .el \{\
498 . sp -1
499 . IP \(bu 2.3
500 .\}
501 Restore the data to the system
502 .RE
503 .sp
504 Most backup software solutions are very good at restoring data but do not
505 support recreating the system layout. Relax\-and\-Recover is very good at
506 recreating the system layout but works best when used together with
507 supported backup software.
508 .sp
509 In this combination Relax\-and\-Recover recreates the system layout and calls
510 the backup software to restore the actual data. Thus there is no unnecessary
511 duplicate data storage and the Relax\-and\-Recover rescue media can be very small.
512 .sp
513 For demonstration and special use purposes Relax\-and\-Recover also includes
514 an internal backup method, NETFS, which can be used to create a simple tar.gz
515 archive of the system. For all permanent setups we recommend using something
516 more professional for backup, either a traditional backup software (open
517 source or commercial) or rsync with hardlink based solutions, e.g. RSYNC
518 BACKUP MADE EASY.
519 .SH "RESCUE IMAGE CONFIGURATION"
520 .sp
521 The OUTPUT variable defines from where our bootable rescue image will be
522 booted and the OUTPUT_URL variable defines where the rescue image should be
523 send to. Possible OUTPUT settings are:
524 .sp
525 OUTPUT=\fBRAMDISK\fP
526 .RS 4
527 Create only the Relax\-and\-Recover initramfs.
528 .RE
529 .sp
530 OUTPUT=\fBISO\fP
531 .RS 4
532 \fB(Default)\fP Create a bootable ISO9660 image on disk as \fIrear\-$(hostname).iso\fP
533 .RE
534 .sp
535 OUTPUT=\fBPXE\fP
536 .RS 4
537 Create on a remote PXE/NFS server the required files (such as
538 configuration file, kernel and initrd image)
539 .RE
540 .sp
541 OUTPUT=\fBOBDR\fP
542 .RS 4
543 Create a bootable OBDR tape (optionally including the backup archive).
544 Specify the OBDR tape device by using TAPE_DEVICE.
545 .RE
546 .sp
547 OUTPUT=\fBUSB\fP
548 .RS 4
549 Create a bootable USB disk.
550 .RE
551 .sp
552 OUTPUT=\fBRAWDISK\fP
553 .RS 4
554 Create a bootable image file named "rear\-$(hostname).raw.gz", which
555 .sp
556 .RS 4
557 .ie n \{\
558 \h'-04'\(bu\h'+03'\c
559 .\}
560 .el \{\
561 . sp -1
562 . IP \(bu 2.3
563 .\}
564 supports UEFI boot if syslinux/EFI or Grub 2/EFI is installed,
565 .RE
566 .sp
567 .RS 4
568 .ie n \{\
569 \h'-04'\(bu\h'+03'\c
570 .\}
571 .el \{\
572 . sp -1
573 . IP \(bu 2.3
574 .\}
575 supports Legacy BIOS boot if syslinux is installed,
576 .RE
577 .sp
578 .RS 4
579 .ie n \{\
580 \h'-04'\(bu\h'+03'\c
581 .\}
582 .el \{\
583 . sp -1
584 . IP \(bu 2.3
585 .\}
586 supports UEFI/Legacy BIOS dual boot if syslinux \fBand\fP one of the supported EFI
587 bootloaders are installed.
588 .RE
589 .RE
590 .sp
591 OUTPUT=\fBPORTABLE\fP
592 .RS 4
593 Create a portable ReaR archive that can be used on any rescue system to run
594 any ReaR workflow, especially recover. Assumes that all required software is
595 installed and usable there. This is experimental, please report any issues.
596 .RE
597 .sp
598 When using OUTPUT=ISO, RAMDISK, OBDR, USB, PORTABLE or RAWDISK you should
599 provide the backup target location through the OUTPUT_URL variable. Possible
600 OUTPUT_URL settings are:
601 .sp
602 OUTPUT_URL=\fBfile://\fP
603 .RS 4
604 Write the image to disk. The default is in \fI/var/lib/rear/output/\fP.
605 .RE
606 .sp
607 OUTPUT_URL=\fBnfs://\fP
608 .RS 4
609 Write the image by mounting the target filesystem via NFS.
610 .RE
611 .sp
612 OUTPUT_URL=\fBcifs://\fP
613 .RS 4
614 Write the image by mounting the target filesystem via CIFS.
615 .RE
616 .sp
617 OUTPUT_URL=\fBfish://\fP
618 .RS 4
619 Write the image using lftp and the FISH protocol.
620 .RE
621 .sp
622 OUTPUT_URL=\fBftp://\fP
623 .RS 4
624 Write the image using lftp and the FTP protocol.
625 .RE
626 .sp
627 OUTPUT_URL=\fBftps://\fP
628 .RS 4
629 Write the image using lftp and the FTPS protocol.
630 .RE
631 .sp
632 OUTPUT_URL=\fBhftp://\fP
633 .RS 4
634 Write the image using lftp and the HFTP protocol.
635 .RE
636 .sp
637 OUTPUT_URL=\fBhttp://\fP
638 .RS 4
639 Write the image using lftp and the HTTP (PUT) protocol.
640 .RE
641 .sp
642 OUTPUT_URL=\fBhttps://\fP
643 .RS 4
644 Write the image using lftp and the HTTPS (PUT) protocol.
645 .RE
646 .sp
647 OUTPUT_URL=\fBsftp://\fP
648 .RS 4
649 Write the image using lftp and the secure FTP (SFTP) protocol.
650 .RE
651 .sp
652 OUTPUT_URL=\fBrsync://\fP
653 .RS 4
654 Write the image using rsync and the RSYNC protocol.
655 .RE
656 .sp
657 OUTPUT_URL=\fBsshfs://\fP
658 .RS 4
659 Write the image using sshfs and the SSH protocol.
660 .RE
661 .sp
662 OUTPUT_URL=\fBnull\fP
663 .RS 4
664 Do not copy the rescue image from \fI/var/lib/rear/output/\fP to a remote output location.
665 OUTPUT_URL=null is useful when another program (e.g. an \fIexternal\fP backup program)
666 is used to save the rescue image from the local system to a remote place,
667 or with BACKUP_URL=iso:///backup when the backup is included in the rescue image
668 to avoid a (big) copy of the rescue image at a remote output location.
669 In the latter case the rescue image must be manually saved from the local system to a remote place.
670 OUTPUT_URL=null is only supported together with BACKUP=NETFS.
671 .RE
672 .sp
673 If you do not specify OUTPUT_URL variable then by default it will be aligned to what
674 was defined by variable BACKUP_URL. And, the rescue image will then be copied to the same
675 location as your backup of the system disk(s).
676 .sp
677 The ISO_DEFAULT variable defines what default boot option is used on the rescue image.
678 Possible values are \f(CRmanual\fP, \f(CRboothd\fP or \f(CRautomatic\fP. Manual will make you boot into
679 the shell directly by default, boothd will boot to the first disk (default) or automatic
680 will automatically start in recovery mode.
681 .SH "RESCUE IMAGE KERNEL COMMAND LINE OPTIONS"
682 .sp
683 When booting the rescue image you can edit the kernel command line.
684 There are some Relax\-and\-Recover specific kernel command line options:
685 .sp
686 \fBdebug\fP
687 .RS 4
688 The rescue system start up scripts in /etc/scripts/system\-setup.d/
689 are run one by one each one after pressing \(aqEnter\(aq and
690 the scripts are run with \(aqset \-x\(aq which prints commands
691 and their arguments as they are executed.
692 .RE
693 .sp
694 \fBauto_recover\fP or \fBautomatic\fP
695 .RS 4
696 Launch \(aqrear recover\(aq automatically (without automated reboot).
697 Together with \(aqdebug\(aq it runs \(aqrear recover\(aq in debugscript mode.
698 .RE
699 .sp
700 \fBunattended\fP
701 .RS 4
702 Launch \(aqrear recover\(aq automatically as with \(aqauto_recover\(aq
703 plus automated reboot after successful \(aqrear recover\(aq.
704 .RE
705 .sp
706 \fBip= nm= netdev= gw=\fP
707 .RS 4
708 When IP address plus optionally netmask (default 255.255.255.0),
709 network device (default eth0), and default gateway are specified,
710 then only that single network device is set up. Example:
711 .RE
712 .sp
713 .if n .RS 4
714 .nf
715 .fam C
716 ip=192.168.100.2 nm=255.255.255.0 netdev=eth0 gw=192.168.100.1
717 .fam
718 .fi
719 .if n .RE
720 .sp
721 \fBnoip\fP
722 .RS 4
723 Skip network devices setup by the rescue system start up scripts (overrides ip= nm= netdev= gw=).
724 .RE
725 .SH "BACKUP SOFTWARE INTEGRATION"
726 .sp
727 Currently Relax\-and\-Recover supports the below listed backup methods.
728 .sp
729 There is a distinction between Relax\-and\-Recover support for 3rd party
730 backup software and Relax\-and\-Recover built\-in backup methods. The latter
731 also creates a backup of your data while the former will only integrate
732 Relax\-and\-Recover with the backup software to restore the data with the
733 help of the backup software without actually creating backups. This means
734 that for all non\-built\-in backup software you \fBmust\fP take care of creating
735 backups yourself (unless otherwise noted).
736 .sp
737 Especially the rear mkbackup command can be confusing as it is only
738 useful for the built\-in backup methods and has usually no function at all with
739 the other (3rd party / external) backup methods where the rear mkrescue command applies.
740 .sp
741 See the full list of supported backup methods above for reference and consult \(aq/usr/share/rear/conf/default.conf\(aq
742 for the full list of supported options for each backup method. Also, \(aqrear dump\(aq will
743 show you the current settings for BACKUP and OUTPUT methods including all available options.
744 .sp
745 The default \fBBACKUP\fP method is \fBREQUESTRESTORE\fP which is not a backup method at all but simply
746 halts the recovery and requests that somebody will restore the data to the appropriate location
747 (e.g. via SSH). This method works especially well with an rsync based backup that is pushed
748 back to the backup client.
749 .sp
750 If your favourite backup software is missing from this list, please submit
751 a patch or ask us to implement it for you.
752 .sp
753 When using BACKUP=NETFS you must provide the backup target location
754 through the BACKUP_URL variable. Possible BACKUP_URL settings are:
755 .sp
756 BACKUP_URL=\fBfile://\fP
757 .RS 4
758 To backup to local disk, use BACKUP_URL=file:///directory/path/
759 .RE
760 .sp
761 BACKUP_URL=\fBnfs://\fP
762 .RS 4
763 To backup to NFS disk, use BACKUP_URL=nfs://nfs\-server\-name/share/path
764 .RE
765 .sp
766 BACKUP_URL=\fBtape://\fP
767 .RS 4
768 To backup to tape device, use BACKUP_URL=tape:///dev/nst0 or alternatively,
769 simply define TAPE_DEVICE=/dev/nst0
770 .RE
771 .sp
772 BACKUP_URL=\fBrsync://\fP
773 .RS 4
774 When backup method BACKUP=RSYNC is chosen then we need to define a corresponding BACKUP_URL rule:
775 .sp
776 .if n .RS 4
777 .nf
778 .fam C
779 BACKUP_URL=rsync://[user@]host[:port]/path
780 BACKUP_URL=rsync://[user@]host[:port]::/path
781 .fam
782 .fi
783 .if n .RE
784 .RE
785 .sp
786 BACKUP_URL=\fBcifs://\fP
787 .RS 4
788 To backup to a Samba share (CIFS), use
789 BACKUP_URL=cifs://cifs\-server\-name/share/path. To provide credentials for
790 CIFS mounting use a \fI/etc/rear/cifs\fP credentials file and define
791 BACKUP_OPTIONS="cred=/etc/rear/cifs" and pass along:
792 .sp
793 .if n .RS 4
794 .nf
795 .fam C
796 username=_username_
797 password=_secret password_
798 domain=_domain_
799 .fam
800 .fi
801 .if n .RE
802 .RE
803 .sp
804 BACKUP_URL=\fBusb://\fP
805 .RS 4
806 To backup to USB storage device, use BACKUP_URL=usb:///dev/disk/by\-label/REAR\-000
807 or use a partition device node or a specific filesystem label. Alternatively, you
808 may specify the partition device using USB_DEVICE=/dev/disk/by\-label/REAR\-000 if needed.
809 .sp
810 If you combine this with OUTPUT=USB you will end up with a bootable USB
811 device.
812 .RE
813 .sp
814 BACKUP_URL=\fBsshfs://\fP
815 .RS 4
816 To backup to a remote server via sshfs (SSH protocol), use
817 BACKUP_URL=sshfs://user@remote\-system.name.org/home/user/backup\-dir/
818 .sp
819 It is advisable to add \fBServerAliveInterval 15\fP in the /root/.ssh/config
820 file for the remote system (remote\-system.name.org).
821 .RE
822 .sp
823 BACKUP_URL=\fBiso://\fP
824 .RS 4
825 To include the backup within the ISO image. It is important that the BACKUP_URL and
826 OUTPUT_URL variables are different. E.g.
827 .sp
828 .if n .RS 4
829 .nf
830 .fam C
831 BACKUP_URL=iso:///backup/
832 OUTPUT_URL=nfs://server/path/
833 .fam
834 .fi
835 .if n .RE
836 .RE
837 .sp
838 When using BACKUP=NETFS and BACKUP_PROG=tar there is an option to select
839 BACKUP_TYPE=incremental or BACKUP_TYPE=differential to let rear make
840 incremental or differential backups until the next full backup day
841 e.g. via FULLBACKUPDAY="Mon" is reached or when the last full backup
842 is too old after FULLBACKUP_OUTDATED_DAYS has passed.
843 Incremental or differential backup is currently only known to work
844 with BACKUP_URL=nfs. Other BACKUP_URL schemes may work but
845 at least BACKUP_URL=usb requires USB_SUFFIX to be set
846 to work with incremental or differential backup.
847 .SH "SUPPORT FOR SELF\-ENCRYPTING DISKS"
848 .sp
849 Relax\-and\-Recover supports self\-encrypting disks (SEDs) compliant with the TCG
850 Opal 2 specification if the \f(CRsedutil\-cli\fP executable is installed.
851 .sp
852 Self\-encrypting disk support includes
853 .sp
854 .RS 4
855 .ie n \{\
856 \h'-04'\(bu\h'+03'\c
857 .\}
858 .el \{\
859 . sp -1
860 . IP \(bu 2.3
861 .\}
862 recovery (saving and restoring the system\(cqs SED configuration),
863 .RE
864 .sp
865 .RS 4
866 .ie n \{\
867 \h'-04'\(bu\h'+03'\c
868 .\}
869 .el \{\
870 . sp -1
871 . IP \(bu 2.3
872 .\}
873 setting up SEDs, including assigning a disk password,
874 .RE
875 .sp
876 .RS 4
877 .ie n \{\
878 \h'-04'\(bu\h'+03'\c
879 .\}
880 .el \{\
881 . sp -1
882 . IP \(bu 2.3
883 .\}
884 providing a pre\-boot authentication (PBA) system to unlock SEDs at boot time.
885 .RE
886 .sp
887 To prepare booting from an SED, run rear mkopalpba, then create the rescue
888 system.
889 .sp
890 To set up an SED, boot the Relax\-and\-Recover rescue system and run \f(CRrear
891 opaladmin setupERASE DEVICE\fP (\fIDEVICE\fP being the disk device path like
892 \f(CR/dev/sda\fP).
893 .sp
894 For complete information, consult the section "Support for TCG Opal 2\-compliant
895 Self\-Encrypting Disks" in the Relax\-and\-Recover user guide.
896 .SH "CONFIGURATION"
897 .sp
898 To configure Relax\-and\-Recover you have to edit the configuration files in
899 \fI/etc/rear/\fP. All \fI*.conf\fP files there are part of the configuration, but
900 only \fIsite.conf\fP and \fIlocal.conf\fP are intended for the user configuration.
901 All other configuration files hold defaults for various distributions and
902 should not be changed.
903 .sp
904 In \fI/etc/rear/templates/\fP there are also some template files which are used
905 by Relax\-and\-Recover to create configuration files (mostly for the boot
906 environment). Modify the templates to adjust the information contained in
907 the emails produced by Relax\-and\-Recover. You can use these templates to
908 prepend your own configurations to the configuration files created by
909 Relax\-and\-Recover, for example you can edit \fIPXE_pxelinux.cfg\fP to add some
910 general pxelinux configuration you use.
911 .sp
912 In almost all circumstances you have to configure two main settings and their
913 parameters: The backup method and the output method.
914 .sp
915 The backup method defines, how your data is to be saved and whether Relax\-and\-Recover
916 should backup your data as part of the mkbackup workflow for internal backup methods
917 or whether you use 3rd party backup software to archive your data.
918 .sp
919 The output method defines how the rescue system is written to disk and how you
920 plan to boot the failed computer from the rescue system.
921 .sp
922 See the default configuration file \fI/usr/share/rear/conf/default.conf\fP for
923 an overview of the possible methods and their options.
924 .sp
925 An example to use TSM for backup and ISO for output would be to add
926 these lines to \fI/etc/rear/local.conf\fP (no need to define a BACKUP_URL
927 when using an external backup solution):
928 .sp
929 .if n .RS 4
930 .nf
931 .fam C
932 BACKUP=TSM
933 OUTPUT=ISO
934 .fam
935 .fi
936 .if n .RE
937 .sp
938 And if all your systems use NTP for time synchronisation, you can also
939 add these lines to \fI/etc/rear/site.conf\fP
940 .sp
941 .if n .RS 4
942 .nf
943 .fam C
944 TIMESYNC=NTP
945 .fam
946 .fi
947 .if n .RE
948 .sp
949 Do not forget to distribute the \fIsite.conf\fP to all your systems.
950 .sp
951 The resulting ISO image will be created in \fI/var/lib/rear/output/\fP.
952 You can now modify the behaviour by copying the appropriate
953 configuration variables from \fIdefault.conf\fP to \fIlocal.conf\fP and
954 changing them to suit your environment.
955 .SH "EXIT STATUS"
956 .sp
957 0
958 .RS 4
959 Successful program execution.
960 .RE
961 .sp
962 >0
963 .RS 4
964 Usage, syntax or execution errors. Check the log file in
965 \fI/var/log/rear/\fP for more information.
966 .RE
967 .SH "EXAMPLES"
968 .sp
969 To print out the current settings for BACKUP and OUTPUT methods and some
970 system information. This command can be used to see the supported features
971 for the given release and platform.
972 .sp
973 .if n .RS 4
974 .nf
975 .fam C
976 # rear dump
977 .fam
978 .fi
979 .if n .RE
980 .sp
981 To create a new rescue environment. Do not forget to copy the resulting
982 rescue system away so that you can use it in the case of a system failure.
983 .sp
984 .if n .RS 4
985 .nf
986 .fam C
987 # rear \-v mkrescue
988 .fam
989 .fi
990 .if n .RE
991 .sp
992 To create a new rescue image together with a complete archive of your local
993 system run the command:
994 .sp
995 .if n .RS 4
996 .nf
997 .fam C
998 # rear \-v mkbackup
999 .fam
1000 .fi
1001 .if n .RE
1002 .SH "FILES"
1003 .sp
1004 /usr/sbin/rear
1005 .RS 4
1006 The program itself.
1007 .RE
1008 .sp
1009 /etc/rear/local.conf
1010 .RS 4
1011 System specific configuration can be set here.
1012 .RE
1013 .sp
1014 /etc/rear/site.conf
1015 .RS 4
1016 Site specific configuration can be set here (not created by default).
1017 .RE
1018 .sp
1019 /var/log/rear/
1020 .RS 4
1021 Directory holding the log files.
1022 .RE
1023 .sp
1024 /tmp/rear.####
1025 .RS 4
1026 Relax\-and\-Recover working directory. If Relax\-and\-Recover exits with an error,
1027 you must remove this directory manually.
1028 .RE
1029 .sp
1030 /usr/share/rear
1031 .RS 4
1032 Relax\-and\-Recover script components.
1033 .RE
1034 .sp
1035 /usr/share/rear/conf/default.conf
1036 .RS 4
1037 Relax\-and\-Recover default values. Contains a complete set of parameters
1038 and its explanation. Do not edit or modify things therein but
1039 use \fIlocal.conf\fP or \fIsite.conf\fP for specific settings.
1040 .RE
1041 .SH "BUGS"
1042 .sp
1043 Feedback is welcome, please report issues or improvements to our
1044 issue\-tracker at: \c
1045 .URL "http://github.com/rear/issues/" "" ""
1046 .sp
1047 Furthermore, we welcome pull requests via GitHub.
1048 .SH "SEE ALSO"
1049 .sp
1050 Relax\-and\-Recover comes with extensive documentation located in
1051 \fI/usr/share/doc\fP.
1052 .SH "AUTHORS"
1053 .sp
1054 The ReaR project was initiated in 2006 by Schlomo Schapiro (\c
1055 .URL "https://github.com/schlomo" "" ")"
1056 and
1057 Gratien D\(cqhaese (\c
1058 .URL "https://github.com/gdha" "" ")"
1059 and has since then seen a lot of contributions by many authors.
1060 As ReaR deals with bare metal disaster recovery, there is a large amount of code
1061 that was contributed by owners and users of specialized hardware and software.
1062 Without their combined efforts and contributions ReaR would not be
1063 the universal Linux bare metal disaster recovery solution that it is today.
1064 .sp
1065 As time passed the project was lucky to get the support of additional developers to also help as maintainers:
1066 Dag Wieers (\c
1067 .URL "https://github.com/dagwieers" "" "),"
1068 Jeroen Hoekx (\c
1069 .URL "https://github.com/jhoekx" "" "),"
1070 Johannes Meixner (\c
1071 .URL "https://github.com/jsmeix" "" "),"
1072 Vladimir Gozora (\c
1073 .URL "https://github.com/gozora" "" "),"
1074 Sebastien Chabrolles (\c
1075 .URL "https://github.com/schabrolles" "" "),"
1076 Renaud Metrich (\c
1077 .URL "https://github.com/rmetrich" "" ")"
1078 and
1079 Pavel Cahyna (\c
1080 .URL "https://github.com/pcahyna" "" ")."
1081 We hope that ReaR continues to prove useful and to attract more developers who agree to be maintainers.
1082 Refer to the MAINTAINERS (\c
1083 .URL "https://github.com/rear/rear/blob/master/MAINTAINERS" "" ")"
1084 file for the list of active and past maintainers.
1085 .sp
1086 To see the full list of authors and their contributions
1087 look at the git history (\c
1088 .URL "https://github.com/rear/rear/graphs/contributors" "" ")."
1089 We are very thankful to all authors and encourage anybody interested
1090 to take a look at our source code and to contribute what you find important.
1091 .sp
1092 Relax\-and\-Recover is a developed with a collaborative process using Github at \c
1093 .URL "http://github.com/rear/" "" ""
1094 .sp
1095 The Relax\-and\-Recover website is located at: \c
1096 .URL "http://relax\-and\-recover.org/" "" ""
1097 .SH "COPYRIGHT"
1098 .sp
1099 (c) 2006\-2022
1100 .sp
1101 The copyright is held by the original authors of the respective code pieces as can be seen in the git history at \c
1102 .URL "https://github.com/rear/rear/graphs/contributors" "" ""
1103 .sp
1104 Relax\-and\-Recover comes with ABSOLUTELY NO WARRANTY; for details
1105 see the GNU General Public License at \c
1106 .URL "http://www.gnu.org/licenses/gpl.html" "" ""