Add cachedir variable allowing to move all data directories by setting a single value. Closes issue #270

This commit is contained in:
Jean-Francois Dockes
2016-04-08 15:09:15 +02:00
parent b995cfb4e8
commit f3820471e4
7 changed files with 110 additions and 41 deletions
+25 -1
View File
@@ -5982,7 +5982,31 @@ field2 = value for field2
<sect3 id="RCL.INSTALL.CONFIG.RECOLLCONF.STORAGE">
<title>Parameters affecting where and how we store things:</title>
<variablelist>
<variablelist>
<varlistentry><term><varname>cachedir</varname></term>
<listitem>
<para>When not explicitly specified, the &RCL; data directories
are stored relative to the configuration directory. If
<literal>cachedir</literal> is set, the directories are stored
under the specified value instead (e.g. if
<literal>cachedir</literal> is set to
<filename>~/.cache/recoll</filename>, the default
<literal>dbdir</literal> would be
<filename>~/.cache/recoll/xapiandb</filename> instead of
<filename>~/.recoll/xapiandb</filename> ). This affects the
default values for <literal>dbdir</literal>,
<literal>webcachedir</literal>,
<literal>mboxcachedir</literal>, and
<literal>aspellDicDir</literal>, which can still be
individually specified to override
<literal>cachedir</literal>. Note that if you have multiple
configurations, each must have a different
<literal>cachedir</literal>.</para>
</listitem>
</varlistentry>
<varlistentry><term><varname>dbdir</varname></term>
<listitem><para>The name of the Xapian data directory. It
will be created if needed when the index is