source: box/trunk/docs/docbook/bbackupctl.xml @ 2474

Revision 2474, 6.3 KB checked in by chris, 3 years ago (diff)

Reorganise docs in trunk to match distribution layout, which is cleaner,
and makes Makefile work on distributions and trunk equally.

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<refentry version="5.0" xmlns="http://docbook.org/ns/docbook"
3          xmlns:xlink="http://www.w3.org/1999/xlink"
4          xmlns:xi="http://www.w3.org/2001/XInclude"
5          xmlns:svg="http://www.w3.org/2000/svg"
6          xmlns:m="http://www.w3.org/1998/Math/MathML"
7          xmlns:html="http://www.w3.org/1999/xhtml"
8          xmlns:db="http://docbook.org/ns/docbook">
9  <refmeta>
10    <refentrytitle>bbackupctl</refentrytitle>
11
12    <manvolnum>8</manvolnum>
13
14    <refmiscinfo class="manual">Box Backup</refmiscinfo>
15
16    <refmiscinfo class="source">Box Backup</refmiscinfo>
17
18    <refmiscinfo class="version">0.11</refmiscinfo>
19  </refmeta>
20
21  <refnamediv>
22    <refname>bbackupctl</refname>
23
24    <refpurpose>Control the Box Backup client daemon</refpurpose>
25  </refnamediv>
26
27  <refsynopsisdiv>
28    <cmdsynopsis>
29      <command>bbackupctl</command>
30
31      <arg>-q</arg>
32
33      <arg>-c config-file</arg>
34
35      <arg choice="plain">command</arg>
36    </cmdsynopsis>
37  </refsynopsisdiv>
38
39  <refsection>
40    <title>Description</title>
41
42    <para><command>bbackupctl</command> sends commands to a running
43    <command>bbackupd</command> daemon on a client machine. It can be used to
44    force an immediate backup, tell the daemon to reload its configuration
45    files or stop the daemon. If <command>bbackupd</command> is configured in
46    snapshot mode, it will not back up automatically, and the
47    <command>bbackupctl</command> must be used to tell it when to start a
48    backup.</para>
49
50    <para>Communication with the bbackupd daemon takes place over a local
51    socket (not over the network). Some platforms (notably Windows) can't
52    determine if the user connecting on this socket has the correct
53    credentials to execute the commands. On these platforms, ANY local user
54    can interfere with bbackupd. To avoid this, remove the CommandSocket
55    option from bbackupd.conf, which will also disable bbackupctl. See the
56    Client Configuration page for more information.</para>
57
58    <para><command>bbackupctl</command> needs to read the
59    <command>bbackupd</command> configuration file to find out the name of the
60    CommandSocket. If you have to tell <command>bbackupd</command> where to
61    find the configuration file, you will have to tell
62    <command>bbackupctl</command> as well. The default on Unix systems is
63    usually <filename>/etc/box/bbackupd.conf</filename>. On Windows systems,
64    it is <filename>bbackupd.conf</filename> in the same directory where
65    <command>bbackupd.exe</command> is located. If
66    <command>bbackupctl</command> cannot find or read the configuration file,
67    it will log an error message and exit.</para>
68
69    <para><command>bbackupctl</command> usually writes error messages to the
70    console and the system logs. If it is not doing what you expect, please
71    check these outputs first of all.</para>
72
73    <variablelist>
74      <varlistentry>
75        <term><option>-q</option></term>
76
77        <listitem>
78          <para>Run in quiet mode.</para>
79        </listitem>
80      </varlistentry>
81
82      <varlistentry>
83        <term><option>-c</option> config-file</term>
84
85        <listitem>
86          <para>Specify configuration file.</para>
87        </listitem>
88      </varlistentry>
89    </variablelist>
90
91    <refsection>
92      <title>Commands</title>
93
94      <para>The following commands are available in bbackupctl:</para>
95
96      <variablelist>
97        <varlistentry>
98          <term><command>terminate</command></term>
99
100          <listitem>
101            <para>This command cleanly shuts down <command>bbackupd</command>.
102            This is better than killing or terminating it any other
103            way.</para>
104          </listitem>
105        </varlistentry>
106
107        <varlistentry>
108          <term><command>reload</command></term>
109
110          <listitem>
111            <para>Causes the <command>bbackupd</command> daemon to re-read all
112            its configuration files. Equivalent to <command>kill
113            -HUP</command>.</para>
114          </listitem>
115        </varlistentry>
116
117        <varlistentry>
118          <term><command>sync</command></term>
119
120          <listitem>
121            <para>Initiates a backup. If no files need to be backed up, no
122            connection will be made to the server.</para>
123          </listitem>
124        </varlistentry>
125
126        <varlistentry>
127          <term><command>force-sync</command></term>
128
129          <listitem>
130            <para>Initiates a backup, even if the
131            <varname>SyncAllowScript</varname> says that no backup should run
132            now.</para>
133          </listitem>
134        </varlistentry>
135
136        <varlistentry>
137          <term><command>wait-for-sync</command></term>
138
139          <listitem>
140            <para>Passively waits until the next backup starts of its own
141            accord, and then terminates.</para>
142          </listitem>
143        </varlistentry>
144
145        <varlistentry>
146          <term><command>wait-for-end</command></term>
147
148          <listitem>
149            <para>Passively waits until the next backup starts of its own
150            accord and finishes, and then terminates.</para>
151          </listitem>
152        </varlistentry>
153
154        <varlistentry>
155          <term><command>sync-and-wait</command></term>
156
157          <listitem>
158            <para>Initiates a backup, waits for it to finish, and then
159            terminates.</para>
160          </listitem>
161        </varlistentry>
162      </variablelist>
163    </refsection>
164  </refsection>
165
166  <refsection>
167    <title>Files</title>
168
169    <para><filename>/etc/box/bbackupd.conf</filename></para>
170  </refsection>
171
172  <refsection>
173    <title>See Also</title>
174
175    <para><citerefentry>
176        <refentrytitle>bbackupd.conf</refentrytitle>
177
178        <manvolnum>5</manvolnum>
179      </citerefentry>, <citerefentry>
180        <refentrytitle>bbackupd-config</refentrytitle>
181
182        <manvolnum>8</manvolnum>
183      </citerefentry>, <citerefentry>
184        <refentrytitle>bbackupctl</refentrytitle>
185
186        <manvolnum>8</manvolnum>
187      </citerefentry></para>
188  </refsection>
189
190  <refsection>
191    <title>Authors</title>
192
193    <para><author>
194        <personname>Ben Summers</personname>
195      </author></para>
196
197    <para><author>
198        <personname>Per Thomsen</personname>
199      </author></para>
200
201    <para><author>
202        <personname>James O'Gorman</personname>
203      </author></para>
204  </refsection>
205</refentry>
Note: See TracBrowser for help on using the repository browser.