]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- improved documentation 968/head
authorArvin Schnell <aschnell@suse.de>
Mon, 16 Dec 2024 07:52:38 +0000 (08:52 +0100)
committerArvin Schnell <aschnell@suse.de>
Mon, 16 Dec 2024 07:52:38 +0000 (08:52 +0100)
client/snbk/TheBigThing.cc
doc/snapper-backup-configs.xml.in

index c823c621c8ce13813e6d7334068d1541c127213b..af7046f09533b0528ebd3f60397404c98bf192ba 100644 (file)
@@ -230,7 +230,12 @@ namespace snapper
        : snapper(snappers->getSnapper(backup_config.config)), locker(snapper)
     {
        if (backup_config.source_path != snapper->getConfig().getSubvolume())
-           SN_THROW(Exception(_("Path mismatch between backup-config and config.")));
+       {
+           string error = sformat(_("Path mismatch between source-path of backup-config and subvolume of "
+                                    "snapper config ('%s' vs. '%s')."), backup_config.source_path.c_str(),
+                                  snapper->getConfig().getSubvolume().c_str());
+           SN_THROW(Exception(error));
+       }
 
        probe_source(backup_config, verbose);
        probe_target(backup_config, verbose);
index 49f6ab4ef159f3272d0d544abbd6fb17581473e0..8828359558a21679dd2e390115ba548f51c3ed6a 100644 (file)
       <varlistentry>
        <term><option>source-path</option></term>
        <listitem>
-         <para>Path of the subvolume or mount point.</para>
+         <para>Path of the source subvolume. This must match the
+         subvolume of the corresponding snapper config.</para>
        </listitem>
       </varlistentry>
 
       <varlistentry>
        <term><option>target-path</option></term>
        <listitem>
-         <para>Path of the subvolume or mount point.</para>
+         <para>Path of the target subvolume or mount point.</para>
        </listitem>
       </varlistentry>