Debian Codegraph @

docs/api_reference/CXX/db_copy.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_copy</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="db.html" title="Chapter 2.  The Db Handle" />
11 <link rel="prev" href="dbcompact.html" title="Db::compact()" />
12 <link rel="next" href="dbcreate.html" title="Db" />
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_copy</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbcompact.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 2. 
26 The Db Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="dbcreate.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="db_copy"></a>db_copy</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 db_copy(DB_ENV *dbenv, const char *dbfile, const char *target,
45 const char *password); </pre>
46 <p>
47 The <code class="function">db_copy()</code> routine copies the named
48 database file to the target directory. An optional password can be
49 specified for encrypted database files. This routine can be used
50 on operating systems that do not support atomic file system reads
51 to create a hot backup of a database file. If the specified
52 database file is for a QUEUE database with extents, all extent
53 files for that database will be copied as well.
54 </p>
55 <div class="sect2" lang="en" xml:lang="en">
56 <div class="titlepage">
57 <div>
58 <div>
59 <h3 class="title"><a id="idp1894720"></a>Parameters</h3>
60 </div>
61 </div>
62 </div>
63 <div class="sect3" lang="en" xml:lang="en">
64 <div class="titlepage">
65 <div>
66 <div>
67 <h4 class="title"><a id="idp1550400"></a>dbenv</h4>
68 </div>
69 </div>
70 </div>
71 <p>
72 An open environment handle for the environment containing
73 the database file.
74 </p>
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="idp2334600"></a>dbfile</h4>
81 </div>
82 </div>
83 </div>
84 <p>
85 The path name to the file to be backed up. The file name
86 is resolved using the usual BDB library name resolution
87 rules.
88 </p>
89 </div>
90 <div class="sect3" lang="en" xml:lang="en">
91 <div class="titlepage">
92 <div>
93 <div>
94 <h4 class="title"><a id="idp1791960"></a>target</h4>
95 </div>
96 </div>
97 </div>
98 <p>
99 The directory to which you want the database copied. This
100 is specified relative to the current directory of the
101 executing process or as an absolute path.
102 </p>
103 </div>
104 <div class="sect3" lang="en" xml:lang="en">
105 <div class="titlepage">
106 <div>
107 <div>
108 <h4 class="title"><a id="idp1288048"></a>password</h4>
109 </div>
110 </div>
111 </div>
112 <p>
113 Specified only if the database file is encrypted. The resulting
114 backup file will be encrypted as well.
115 </p>
116 </div>
117 </div>
118 </div>
119 <div class="navfooter">
120 <hr />
121 <table width="100%" summary="Navigation footer">
122 <tr>
123 <td width="40%" align="left"><a accesskey="p" href="dbcompact.html">Prev</a> </td>
124 <td width="20%" align="center">
125 <a accesskey="u" href="db.html">Up</a>
126 </td>
127 <td width="40%" align="right"> <a accesskey="n" href="dbcreate.html">Next</a></td>
128 </tr>
129 <tr>
130 <td width="40%" align="left" valign="top">Db::compact() </td>
131 <td width="20%" align="center">
132 <a accesskey="h" href="index.html">Home</a>
133 </td>
134 <td width="40%" align="right" valign="top"> Db</td>
135 </tr>
136 </table>
137 </div>
138 </body>
139 </html>