~ubuntu-branches/ubuntu/natty/evolution-data-server/natty

« back to all changes in this revision

Viewing changes to libdb/docs/utility/db_checkpoint.html

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!--$Id$-->
2
 
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
 
<!--All rights reserved.-->
4
 
<!--See the file LICENSE for redistribution information.-->
5
 
<html>
6
 
<head>
7
 
<title>Berkeley DB: db_checkpoint</title>
8
 
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
 
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
10
 
</head>
11
 
<body bgcolor=white>
12
 
<a name="2"><!--meow--></a>
13
 
<table width="100%"><tr valign=top>
14
 
<td>
15
 
<h1>db_checkpoint</h1>
16
 
</td>
17
 
<td align=right>
18
 
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
19
 
</td></tr></table>
20
 
<hr size=1 noshade>
21
 
<tt>
22
 
<h3><pre>db_checkpoint [<b>-1Vv</b>] [<b>-h home</b>]
23
 
    [<b>-k kbytes</b>] [<b>-L file</b>] [<b>-P password</b>] [<b>-p min</b>]</pre></h3>
24
 
<h1>Description</h1>
25
 
<a name="3"><!--meow--></a>
26
 
<p>The db_checkpoint utility is a daemon process that monitors the
27
 
database log, and periodically calls <a href="../api_c/txn_checkpoint.html">DB_ENV-&gt;txn_checkpoint</a> to checkpoint
28
 
it.
29
 
<p>The options are as follows:
30
 
<p><dl compact>
31
 
<p><dt><b>-1</b><dd>Checkpoint the log once, regardless of whether or not there has been
32
 
activity since the last checkpoint and then exit.
33
 
<p><dt><b>-h</b><dd>Specify a home directory for the database environment; by
34
 
default, the current working directory is used.
35
 
<p><dt><b>-k</b><dd>Checkpoint the database at least as often as every <b>kbytes</b> of log
36
 
file are written.
37
 
<p><dt><b>-L</b><dd>Log the execution of the db_checkpoint utility to the specified file in the
38
 
following format, where <i>###</i> is the process ID, and the date
39
 
is the time the utility was started.
40
 
<p><blockquote><pre>db_checkpoint: ### Wed Jun 15 01:23:45 EDT 1995</pre></blockquote>
41
 
This file will be removed if the db_checkpoint utility exits gracefully.
42
 
<p><dt><b>-P</b><dd>Specify an environment password.  Although Berkeley DB utilities overwrite
43
 
password strings as soon as possible, be aware there may be a window of
44
 
vulnerability on systems where unprivileged users can see command-line
45
 
arguments or where utilities are not able to overwrite the memory
46
 
containing the command-line arguments.
47
 
<p><dt><b>-p</b><dd>Checkpoint the database at least every <b>min</b> minutes if there has
48
 
been any activity since the last checkpoint.
49
 
<p><dt><b>-V</b><dd>Write the library version number to the standard output, and exit.
50
 
<p><dt><b>-v</b><dd>Write the time of each checkpoint attempt to the standard output.
51
 
</dl>
52
 
<p>At least one of the <b>-1</b>, <b>-k</b>, and <b>-p</b> options
53
 
must be specified.
54
 
<p>The db_checkpoint utility uses a Berkeley DB environment (as described for the
55
 
<b>-h</b> option, the environment variable <b>DB_HOME</b>, or
56
 
because the utility was run in a directory containing a Berkeley DB
57
 
environment).  In order to avoid environment corruption when using a
58
 
Berkeley DB environment, db_checkpoint should always be given the chance to
59
 
detach from the environment and exit gracefully.  To cause db_checkpoint
60
 
to release all environment resources and exit cleanly, send it an
61
 
interrupt signal (SIGINT).
62
 
<p>The db_checkpoint utility does not attempt to create the Berkeley DB
63
 
shared memory regions if they do not already exist.  The application
64
 
that creates the region should be started first, and once the region is
65
 
created, the db_checkpoint utility should be started.
66
 
<p>The <a href="../api_c/txn_checkpoint.html">DB_ENV-&gt;txn_checkpoint</a> method is the underlying interface used by the db_checkpoint utility.
67
 
See the db_checkpoint utility source code for an example of using <a href="../api_c/txn_checkpoint.html">DB_ENV-&gt;txn_checkpoint</a>
68
 
in a IEEE/ANSI Std 1003.1 (POSIX) environment.
69
 
<p>The db_checkpoint utility exits 0 on success, and &gt;0 if an error occurs.
70
 
<h1>Environment Variables</h1>
71
 
<p><dl compact>
72
 
<p><dt>DB_HOME<dd>If the <b>-h</b> option is not specified and the environment variable
73
 
DB_HOME is set, it is used as the path of the database home, as described
74
 
in <a href="../api_c/env_open.html">DB_ENV-&gt;open</a>.
75
 
</dl>
76
 
</tt>
77
 
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
78
 
</body>
79
 
</html>