Debian Codegraph @

doc/html/imap/reference/admin/locations/archive-partitions.html

raw
1 <!DOCTYPE html>
2 <html class="writer-html5" lang="en" data-content_root="../../../../">
3 <head>
4 <meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
5
6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7 <title>Archive Partitions &mdash; Cyrus IMAP 3.12.3 documentation</title>
8 <link rel="stylesheet" type="text/css" href="../../../../_static/pygments.css?v=fa44fd50" />
9 <link rel="stylesheet" type="text/css" href="../../../../_static/css/theme.css?v=86f27845" />
10 <link rel="stylesheet" type="text/css" href="../../../../_static/graphviz.css?v=eafc0fe6" />
11 <link rel="stylesheet" href="../../../../_static/cyrus.css" type="text/css" />
12
13
14
15 <script src="../../../../_static/jquery.js?v=8dae8fb0"></script>
16 <script src="../../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
17 <script src="../../../../_static/documentation_options.js?v=2c828074"></script>
18 <script src="../../../../_static/doctools.js?v=888ff710"></script>
19 <script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
20 <script src="../../../../_static/js/theme.js"></script>
21 <link rel="index" title="Index" href="../../../../genindex.html" />
22 <link rel="search" title="Search" href="../../../../search.html" />
23 <link rel="next" title="Configuration file locations" href="configuration-state.html" />
24 <link rel="prev" title="File &amp; Directory Locations" href="../locations.html" />
25 </head>
26
27 <body class="wy-body-for-nav">
28 <div class="wy-grid-for-nav">
29 <nav data-toggle="wy-nav-shift" class="wy-nav-side">
30 <div class="wy-side-scroll">
31 <div class="wy-side-nav-search" >
32
33
34
35 <a href="../../../../index.html" class="icon icon-home">
36 Cyrus IMAP
37 </a>
38 <div class="version">
39 3.12.3
40 </div>
41 <div role="search">
42 <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
43 <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
44 <input type="hidden" name="check_keywords" value="yes" />
45 <input type="hidden" name="area" value="default" />
46 </form>
47 </div>
48 </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
49 <p class="caption" role="heading"><span class="caption-text">Cyrus IMAP</span></p>
50 <ul class="current">
51 <li class="toctree-l1"><a class="reference internal" href="../../../../download.html">Download</a></li>
52 <li class="toctree-l1"><a class="reference internal" href="../../../../quickstart.html">Quickstart Guide</a></li>
53 <li class="toctree-l1"><a class="reference internal" href="../../../../overview.html">Overview</a></li>
54 <li class="toctree-l1"><a class="reference internal" href="../../../../setup.html">Setup</a></li>
55 <li class="toctree-l1 current"><a class="reference internal" href="../../../../operations.html">Operations</a><ul class="current">
56 <li class="toctree-l2"><a class="reference internal" href="../../manpages/index.html">Man pages</a></li>
57 <li class="toctree-l2 current"><a class="reference internal" href="../../admin.html">Administrator Guide</a><ul class="current">
58 <li class="toctree-l3"><a class="reference internal" href="../../admin.html#architecture">Architecture</a></li>
59 <li class="toctree-l3 current"><a class="reference internal" href="../../admin.html#management">Management</a><ul class="current">
60 <li class="toctree-l4 current"><a class="reference internal" href="../locations.html">File &amp; Directory Locations</a></li>
61 <li class="toctree-l4"><a class="reference internal" href="../ports-sockets.html">Ports and Sockets</a></li>
62 <li class="toctree-l4"><a class="reference internal" href="../access-control.html">Access Control</a></li>
63 <li class="toctree-l4"><a class="reference internal" href="../quotas.html">Quotas</a></li>
64 <li class="toctree-l4"><a class="reference internal" href="../sieve.html">Cyrus Sieve</a></li>
65 <li class="toctree-l4"><a class="reference internal" href="../nntp.html">Cyrus NNTP</a></li>
66 <li class="toctree-l4"><a class="reference internal" href="../protlayer.html">Cyrus Prot Layer</a></li>
67 <li class="toctree-l4"><a class="reference internal" href="../sop.html">Standard Operating Procedures</a></li>
68 <li class="toctree-l4"><a class="reference internal" href="../eventsource.html">Cyrus Event Source</a></li>
69 <li class="toctree-l4"><a class="reference internal" href="../monitoring.html">Monitoring</a></li>
70 <li class="toctree-l4"><a class="reference internal" href="../config-mailboxdistribution.html">Mailbox Distribution</a></li>
71 <li class="toctree-l4"><a class="reference internal" href="../murder/murder.html">Cyrus Murder</a></li>
72 <li class="toctree-l4"><a class="reference internal" href="../tweaking.html">Tweaking Cyrus IMAP</a></li>
73 </ul>
74 </li>
75 </ul>
76 </li>
77 <li class="toctree-l2"><a class="reference internal" href="../../faq.html">Frequently Asked Questions</a></li>
78 </ul>
79 </li>
80 <li class="toctree-l1"><a class="reference internal" href="../../../../developers.html">Developers</a></li>
81 <li class="toctree-l1"><a class="reference internal" href="../../../../support.html">Support/Community</a></li>
82 </ul>
83 <p class="caption" role="heading"><span class="caption-text">Cyrus SASL</span></p>
84 <ul>
85 <li class="toctree-l1"><a class="reference external" href="http://www.cyrusimap.org/sasl">Cyrus SASL</a></li>
86 </ul>
87
88 </div>
89 </div>
90 </nav>
91
92 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
93 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
94 <a href="../../../../index.html">Cyrus IMAP</a>
95 </nav>
96
97 <div class="wy-nav-content">
98 <div class="rst-content">
99 <div role="navigation" aria-label="Page navigation">
100 <ul class="wy-breadcrumbs">
101 <li><a href="../../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
102 <li class="breadcrumb-item"><a href="../../../../operations.html">Operations</a></li>
103 <li class="breadcrumb-item"><a href="../../admin.html">Administrator Guide</a></li>
104 <li class="breadcrumb-item"><a href="../locations.html">File &amp; Directory Locations</a></li>
105 <li class="breadcrumb-item active">Archive Partitions</li>
106 <li class="wy-breadcrumbs-aside">
107 <a href="https://github.com/cyrusimap/cyrus-imapd/blob/master/docsrc/imap/reference/admin/locations/archive-partitions.rst" class="fa fa-github"> Edit on GitHub</a>
108 </li>
109 </ul>
110 <hr/>
111 </div>
112 <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
113 <div itemprop="articleBody">
114
115 <section id="archive-partitions">
116 <span id="imap-features-archive-partitions"></span><h1>Archive Partitions<a class="headerlink" href="#archive-partitions" title="Link to this heading"></a></h1>
117 <p>Archive partitions are defined by the <code class="docutils literal notranslate"><span class="pre">archivepartition-name</span></code> option
118 in <a class="reference internal" href="../../manpages/configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>:</p>
119 <blockquote>
120 <div><p><code class="docutils literal notranslate"><span class="pre">archivepartition-name:</span></code> &lt;none&gt;</p>
121 <blockquote>
122 <div><p>The pathname of the archive partition <em>name</em>, corresponding to
123 spool partition <strong>partition-name</strong>. For any mailbox residing in
124 a directory on <strong>partition-name</strong>, the archived messages will be
125 stored in a corresponding directory on <strong>archivepartition-name</strong>.
126 Note that not every <strong>partition-name</strong> option is strictly required
127 to have a corresponding <strong>archivepartition-name</strong> option, but that
128 without one there's no benefit to enabling archiving.</p>
129 </div></blockquote>
130 </div></blockquote>
131 <p>As is the case with <a class="reference internal" href="../../../concepts/features/mailbox-metadata-partitions.html#imap-features-metadata-partitions"><span class="std std-ref">metadata</span></a>
132 partitions, however, archive partitions do not stand alone. They are
133 closely bound to <a class="reference internal" href="mailspool.html#imap-admin-locations-spool"><span class="std std-ref">Spool Directories</span></a> as defined by the
134 accompanying <code class="docutils literal notranslate"><span class="pre">partition-name</span></code> directive.</p>
135 <p>Multiple partitions may be used for various reasons, such as to
136 distribute load between different storage pools or technologies. Please
137 consult <a class="reference internal" href="../../../concepts/features/mail-spool-partitions.html#imap-features-mail-spool-partitions"><span class="std std-ref">Mail Spool Partitions</span></a> for more details and
138 use cases.</p>
139 <p>To define additional mail spools, add more <code class="docutils literal notranslate"><span class="pre">partition-name</span></code> entries
140 to <a class="reference internal" href="../../manpages/configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a> as needed. For example, let's imagine we
141 want to migrate users to new partitions split by first character of the
142 user's last name, and add a partition for shared mailboxes (see
143 <a class="reference internal" href="../../../concepts/features/namespaces.html#imap-features-namespaces-shared"><span class="std std-ref">Shared Namespaces</span></a>):</p>
144 <ul>
145 <li><p>Sample:</p>
146 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">defaultpartition</span><span class="p">:</span> <span class="n">main</span>
147 <span class="n">partition</span><span class="o">-</span><span class="n">main</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span>
148 <span class="n">partition</span><span class="o">-</span><span class="n">am</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">-</span><span class="n">am</span>
149 <span class="n">partition</span><span class="o">-</span><span class="n">nz</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">-</span><span class="n">nz</span>
150 <span class="n">partition</span><span class="o">-</span><span class="n">shared</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">-</span><span class="n">shared</span>
151 </pre></div>
152 </div>
153 </li>
154 </ul>
155 <p>So, to add archiving to the system described above, we would need
156 something like this (again, building on our previous examples):</p>
157 <ul>
158 <li><p>Sample:</p>
159 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">defaultpartition</span><span class="p">:</span> <span class="n">main</span>
160 <span class="n">partition</span><span class="o">-</span><span class="n">main</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span>
161 <span class="n">partition</span><span class="o">-</span><span class="n">am</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">-</span><span class="n">am</span>
162 <span class="n">partition</span><span class="o">-</span><span class="n">nz</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">-</span><span class="n">nz</span>
163 <span class="n">partition</span><span class="o">-</span><span class="n">shared</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">-</span><span class="n">shared</span>
164 <span class="n">archive_enabled</span><span class="p">:</span> <span class="n">yes</span>
165 <span class="n">archivepartition</span><span class="o">-</span><span class="n">main</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrusarchive</span><span class="o">/</span><span class="n">main</span>
166 <span class="n">archivepartition</span><span class="o">-</span><span class="n">am</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrusarchive</span><span class="o">/</span><span class="n">am</span>
167 <span class="n">archivepartition</span><span class="o">-</span><span class="n">nz</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrusarchive</span><span class="o">/</span><span class="n">nz</span>
168 <span class="n">archivepartition</span><span class="o">-</span><span class="n">shared</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrusarchive</span><span class="o">/</span><span class="n">shared</span>
169 </pre></div>
170 </div>
171 </li>
172 </ul>
173 </section>
174
175
176 </div>
177 </div>
178 <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
179 <a href="../locations.html" class="btn btn-neutral float-left" title="File &amp; Directory Locations" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
180 <a href="configuration-state.html" class="btn btn-neutral float-right" title="Configuration file locations" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
181 </div>
182
183 <hr/>
184
185 <div role="contentinfo">
186 <p>&#169; Copyright 1993–2026, The Cyrus Team.</p>
187 </div>
188
189 Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
190 <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
191 provided by <a href="https://readthedocs.org">Read the Docs</a>.
192
193
194 </footer>
195 </div>
196 </div>
197 </section>
198 </div>
199 <script>
200 jQuery(function () {
201 SphinxRtdTheme.Navigation.enable(true);
202 });
203 </script>
204
205
206
207
208 </body>
209 </html>