diff --git a/xml/ha_rear.xml b/xml/ha_rear.xml index 82567f1c..3ae67eb2 100644 --- a/xml/ha_rear.xml +++ b/xml/ha_rear.xml @@ -168,10 +168,12 @@ &rear; version updates + - &productname; &productnumber; ships with &rear; version 2.3, provided by the - package rear23a. + To see which versions of &rear; are available with &productname; &productnumber;, + run the following command: +&prompt.root;zypper search --type package --verbose rear Find important information in changelogs @@ -397,38 +399,23 @@ Setting up &rear; and your backup solution - - To set up &rear;, you need to edit at least the &rear; - configuration file /etc/rear/local.conf and, if - needed, the Bash scripts that are part of the &rear; framework. + To install the latest version of &rear;, run the following command: - +&prompt.root;zypper install rear + + If you need to install an earlier version of &rear;, you can specify the package version. + For example: + +&prompt.root;zypper install rear23a - In particular, you need to define the following tasks that &rear; - should do: + To configure &rear;, add your settings to the &rear; configuration file + /etc/rear/local.conf and, if needed, edit the Bash + scripts that are part of the &rear; framework. In particular, you need to + define the following tasks that &rear; should do: - - - When your system is booted with UEFI - - If your system boots with a UEFI boot loader, install the package - ebiso and add the following line to - /etc/rear/local.conf: - - - ISO_MKISOFS_BIN="/usr/bin/ebiso" - - If your system boots with &uefisecboot;, you must also add the following line: - -SECURE_BOOT_BOOTLOADER="/boot/efi/EFI/BOOT/shim.efi" - - For more information about &rear; configuration variables for UEFI, see the - /usr/share/rear/conf/default.conf file. - - How to back up files and how to create and store the disaster recovery system @@ -440,10 +427,10 @@ - What to re-create exactly (partitioning, file systems, mount points, etc.) + What to re-create (partitioning, file systems, mount points, etc.) - This can be defined in /etc/rear/local.conf (for - example, what to exclude). To re-create non-standard systems, you may + This can be defined in /etc/rear/local.conf. + To re-create non-standard systems, you may need to enhance the Bash scripts. @@ -461,64 +448,37 @@ - To configure &rear;, add your options to the - /etc/rear/local.conf configuration file. (The former - configuration file /etc/rear/sites.conf has been - removed from the package. However, if you have such a file from your last - setup, &rear; will still use it.) - - - - All &rear; configuration variables and their default values are set in + All &rear; configuration variables and their default values are explained in /usr/share/rear/conf/default.conf. - Some example files (*example.conf) for user configurations - (for example, what is set in /etc/rear/local.conf) - are available in the examples subdirectory. - Find more information in the &rear; man page. - You should start with a matching example configuration file as template - and adapt it as needed to create your particular configuration file. - Copy various options from several example configuration files and paste them - into your specific /etc/rear/local.conf file that - matches your particular system. - Do not use original example configuration files, because they provide an - overview of variables that can be used for specific setups. + Below are some examples of useful configuration options. You can also find example files + for different scenarios in the /usr/share/rear/conf/examples/ subdirectory. + Use these to help you create your /etc/rear/local.conf file. Using an NFS server to store the file backup - - &rear; can be used in different scenarios. The following example uses - an NFS server as storage for the file backup. - - - - - + + Set up an NFS server with &yast; as described in the &admin; for &sls; &productnumber;. - - + + Define the configuration for your NFS server in the /etc/exports file. Make sure the directory on the - NFS server (where you want the backup data to be available), has the - right mount options. For example: - -/srv/nfs *([...],rw,no_root_squash,[...]) - - Replace /srv/nfs with the path to your - backup data on the NFS server and adjust the mount options. You might + NFS server has the right mount options. For example, you might need no_root_squash as the rear mkbackup command runs as &rootuser;. + For more information, see man exports. - - + + Adjust the various BACKUP parameters in the configuration file /etc/rear/local.conf to make @@ -526,8 +486,35 @@ examples in your installed system under /usr/share/rear/conf/examples/SLE*-example.conf. - - + + + + + + Backing up Btrfs subvolumes with <command>tar</command> + + Btrfs is set up with subvolumes, but tar creates backups with the + option, which excludes subvolumes. Therefore, the + mount points for the subvolumes must be explicitly included in the &rear; configuration. + + + Add this configuration snippet to /etc/rear/local.conf and + adjust it according to your setup. For more information and additional options, see the + example files at /usr/share/rear/conf/examples/SLE*-btrfs-example.conf. + +OUTPUT=ISO +BACKUP=NETFS +BACKUP_URL=nfs://host.&exampledomain;/path/to/rear/backup +BACKUP_PROG_INCLUDE=( /root /boot/grub2/i386-pc /tmp /opt /var /boot/grub2/x86_64-efi /srv /usr/local ) + + Mount points for <literal>BACKUP_PROG_INCLUDE</literal> + + You can find the mount points for the subvolumes on your specific system by running + the following command: + +&prompt.root;findmnt -n -r -o TARGET -t btrfs | grep -v '^/$' | egrep -v 'snapshots|crash' + + Using third-party backup tools like EMC NetWorker @@ -541,11 +528,56 @@ adjust it according to your setup: BACKUP=NSR - OUTPUT=ISO - BACKUP_URL=nfs://host.&exampledomain;/path/to/rear/backup - OUTPUT_URL=nfs://host.&exampledomain;/path/to/rear/backup - NSRSERVER=backupserver.&exampledomain; - RETENTION_TIME="Month" +OUTPUT=ISO +BACKUP_URL=nfs://host.&exampledomain;/path/to/rear/backup +OUTPUT_URL=nfs://host.&exampledomain;/path/to/rear/backup +NSRSERVER=backupserver.&exampledomain; +RETENTION_TIME="Month" + + For more information about supported third-party backup tools, see + man rear, section BACKUP SOFTWARE INTEGRATION. + + + + + Backing up multipath devices + + By default, &rear; ignores file systems on multipath devices because it assumes they are + on remote storage, not part of the local system. You can make &rear; include these + file systems by adding the following line to /etc/rear/local.conf: + + AUTOEXCLUDE_MULTIPATH=n + + + + Booting your system with UEFI + + If your system boots with a UEFI boot loader, additional configuration is required: + + + + + Install the package ebiso: + +&prompt.root;zypper install ebiso + + + + Add the following line to /etc/rear/local.conf: + +ISO_MKISOFS_BIN="/usr/bin/ebiso" + + + + If your system boots with &uefisecboot;, you must also add the following line: + +SECURE_BOOT_BOOTLOADER="/boot/efi/EFI/sles/shim.efi" + + + + For more information about &rear; configuration variables for UEFI, see the + /usr/share/rear/conf/default.conf file. +