Debian Codegraph @

docs/api_reference/C/envget_backup_config.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DB_ENV-&gt;get_backup_config()</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C API Reference" />
10 <link rel="up" href="env.html" title="Chapter 5.  The DB_ENV Handle" />
11 <link rel="prev" href="envget_backup_callbacks.html" title="DB_ENV-&gt;get_backup_callbacks()" />
12 <link rel="next" href="envget_flags.html" title="DB_ENV-&gt;get_flags()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DB_ENV-&gt;get_backup_config()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envget_backup_callbacks.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 5. 
26 The DB_ENV Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="envget_flags.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="envget_backup_config"></a>DB_ENV-&gt;get_backup_config()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 DB_ENV-&gt;get_backup_config(DB_ENV, db_backup_config_t option,
44 u_int32_t *valuep); </pre>
45 <p>
46 The <code class="methodname">DB_ENV-&gt;get_backup_config()</code> method
47 retrieves the value set for hot backup tuning parameters. See the
48 <a class="xref" href="envbackup.html" title="DB_ENV-&gt;backup()">DB_ENV-&gt;backup()</a>
49 and
50 <a class="xref" href="envdbbackup.html" title="DB_ENV-&gt;dbbackup()">DB_ENV-&gt;dbbackup()</a>
51 methods for a description of the hot backup APIs. These tuning
52 parameters can be set using the
53 <a class="xref" href="envset_backup_config.html" title="DB_ENV-&gt;set_backup_config()">DB_ENV-&gt;set_backup_config()</a>
54 method.
55 </p>
56 <p>
57 The <code class="methodname">DB_ENV-&gt;get_backup_config()</code> method may
58 be called at any time during the life of the application.
59 </p>
60 <p>
61 The <code class="methodname">DB_ENV-&gt;get_backup_config()</code> <span>
62 <span>
63 method returns a non-zero error value on failure and 0 on success.
64 </span>
65
66 </span>
67 </p>
68 <div class="sect2" lang="en" xml:lang="en">
69 <div class="titlepage">
70 <div>
71 <div>
72 <h3 class="title"><a id="idp51497800"></a>Parameters</h3>
73 </div>
74 </div>
75 </div>
76 <div class="sect3" lang="en" xml:lang="en">
77 <div class="titlepage">
78 <div>
79 <div>
80 <h4 class="title"><a id="idp51497048"></a>option</h4>
81 </div>
82 </div>
83 </div>
84 <p>
85 The <span class="bold"><strong>option</strong></span> parameter
86 identifies the backup parameter to be retrieved. It
87 must be one of the following:
88 </p>
89 <div class="itemizedlist">
90 <ul type="disc">
91 <li>
92 <p>
93 <code class="literal">DB_BACKUP_WRITE_DIRECT</code>
94 </p>
95 <p>
96 Turning this on causes direct I/O to be used when
97 writing pages to the disk.
98 </p>
99 </li>
100 <li>
101 <p>
102 <code class="literal">DB_BACKUP_READ_COUNT</code>
103 </p>
104 <p>
105 Configures the number of pages to read before
106 pausing.
107 </p>
108 </li>
109 <li>
110 <p>
111 <code class="literal">DB_BACKUP_READ_SLEEP</code>
112 </p>
113 <p>
114 Configures the number of microseconds to sleep
115 between batches of reads.
116 </p>
117 </li>
118 <li>
119 <p>
120 <code class="literal">DB_BACKUP_SIZE</code>
121 </p>
122 <p>
123 Configures the size of the buffer, in megabytes, to
124 read from the database.
125 </p>
126 </li>
127 </ul>
128 </div>
129 </div>
130 <div class="sect3" lang="en" xml:lang="en">
131 <div class="titlepage">
132 <div>
133 <div>
134 <h4 class="title"><a id="idp51510576"></a>valuep</h4>
135 </div>
136 </div>
137 </div>
138 <p>
139 The <span class="bold"><strong>valuep</strong></span> parameter
140 references memory into which is copied the current value of the
141 backup tuning parameter identified by the
142 <span class="bold"><strong>option</strong></span> parameter.
143 </p>
144 </div>
145 </div>
146 <div class="sect2" lang="en" xml:lang="en">
147 <div class="titlepage">
148 <div>
149 <div>
150 <h3 class="title"><a id="idp51488816"></a>Class</h3>
151 </div>
152 </div>
153 </div>
154 <p>
155 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>,
156 </p>
157 </div>
158 <div class="sect2" lang="en" xml:lang="en">
159 <div class="titlepage">
160 <div>
161 <div>
162 <h3 class="title"><a id="idp51513184"></a>See Also</h3>
163 </div>
164 </div>
165 </div>
166 <p>
167 <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a>,
168 <a class="xref" href="envset_backup_config.html" title="DB_ENV-&gt;set_backup_config()">DB_ENV-&gt;set_backup_config()</a>,
169 <a class="xref" href="envbackup.html" title="DB_ENV-&gt;backup()">DB_ENV-&gt;backup()</a>,
170 <a class="xref" href="envdbbackup.html" title="DB_ENV-&gt;dbbackup()">DB_ENV-&gt;dbbackup()</a>
171 </p>
172 </div>
173 </div>
174 <div class="navfooter">
175 <hr />
176 <table width="100%" summary="Navigation footer">
177 <tr>
178 <td width="40%" align="left"><a accesskey="p" href="envget_backup_callbacks.html">Prev</a> </td>
179 <td width="20%" align="center">
180 <a accesskey="u" href="env.html">Up</a>
181 </td>
182 <td width="40%" align="right"> <a accesskey="n" href="envget_flags.html">Next</a></td>
183 </tr>
184 <tr>
185 <td width="40%" align="left" valign="top">DB_ENV-&gt;get_backup_callbacks() </td>
186 <td width="20%" align="center">
187 <a accesskey="h" href="index.html">Home</a>
188 </td>
189 <td width="40%" align="right" valign="top"> DB_ENV-&gt;get_flags()</td>
190 </tr>
191 </table>
192 </div>
193 </body>
194 </html>