Skip to content

Commit

Permalink
Review updates round 1
Browse files Browse the repository at this point in the history
  • Loading branch information
tahliar committed Aug 9, 2024
1 parent d563a58 commit 57e4e44
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions xml/ha_rear.xml
Original file line number Diff line number Diff line change
Expand Up @@ -465,14 +465,10 @@
<para>
Define the configuration for your NFS server in the
<filename>/etc/exports</filename> file. Make sure the directory on the
NFS server has the right mount options. For example:
</para>
<screen><replaceable>/srv/nfs</replaceable> *([...],rw,no_root_squash,[...])</screen>
<para>
Replace <filename>/srv/nfs</filename> 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 <literal>no_root_squash</literal> as the
<command>rear mkbackup</command> command runs as &rootuser;.
For more information, see <command>man exports</command>.
</para>
</listitem>
<listitem>
Expand All @@ -497,8 +493,10 @@
<para>
This <filename>/etc/rear/local.conf</filename> example is simplified from the example file
<filename>SLE12-SP2-btrfs-example.conf</filename>. It includes the whole
<filename>/var</filename> directory instead of specific <filename>/var</filename>
subdirectories. See the example file for details about the settings.
<filename>/var</filename> directory instead of specific <filename>/var</filename> subdirectories.
</para>
<para>
Adjust this example as required for your setup. See the example file for details about the settings.
</para>
<screen>OUTPUT=ISO
BACKUP=NETFS
Expand All @@ -509,9 +507,13 @@ REQUIRED_PROGS=( "${REQUIRED_PROGS[@]}" snapper chattr lsattr )
COPY_AS_IS=( "${COPY_AS_IS[@]}" /usr/lib/snapper/installation-helper /etc/snapper/config-templates/default )
BACKUP_PROG_INCLUDE=( /root /boot/grub2/i386-pc /tmp /opt /var /boot/grub2/x86_64-efi /srv /usr/local )
POST_RECOVERY_SCRIPT=( 'if snapper --no-dbus -r $TARGET_FS_ROOT get-config | grep -q "^QGROUP.*[0-9]/[0-9]" ; then snapper --no-dbus -r $TARGET_FS_ROOT set-config QGROUP= ; snapper --no-dbus -r $TARGET_FS_ROOT setup-quota &amp;&amp; echo snapper setup-quota done || echo snapper setup-quota failed ; else echo snapper setup-quota not used ; fi' )</screen>
<para>
Adjust this example as required for your setup.
</para>
<tip>
<title>Directories for <literal>BACKUP_PROG_INCLUDE</literal></title>
<para>
You can find the directories for your specific system by running the following command:
</para>
<screen>&prompt.root;<command>findmnt -n -r -o TARGET -t btrfs | grep -v '^/$' | egrep -v 'snapshots|crash'</command></screen>
</tip>
</example>

<example xml:id="ex-ha-rear-config-EMC">
Expand All @@ -526,11 +528,11 @@ POST_RECOVERY_SCRIPT=( 'if snapper --no-dbus -r $TARGET_FS_ROOT get-config | gre
adjust it according to your setup:
</para>
<screen>BACKUP=NSR
OUTPUT=ISO
BACKUP_URL=nfs://<replaceable>host.&exampledomain;/path/to/rear/backup</replaceable>
OUTPUT_URL=nfs://<replaceable>host.&exampledomain;/path/to/rear/backup</replaceable>
NSRSERVER=<replaceable>backupserver.&exampledomain;</replaceable>
RETENTION_TIME="Month"</screen>
OUTPUT=ISO
BACKUP_URL=nfs://<replaceable>host.&exampledomain;/path/to/rear/backup</replaceable>
OUTPUT_URL=nfs://<replaceable>host.&exampledomain;/path/to/rear/backup</replaceable>
NSRSERVER=<replaceable>backupserver.&exampledomain;</replaceable>
RETENTION_TIME="Month"</screen>
<para>
For more information about supported third-party backup tools, see
<command>man rear</command>, section <citetitle>BACKUP SOFTWARE INTEGRATION</citetitle>.
Expand Down

0 comments on commit 57e4e44

Please sign in to comment.