1 .\" $NetBSD: iprop-log.8,v 1.5 2014/04/24 13:45:34 pettai Exp $
5 .\" Copyright (c) 2005 - 2007 Kungliga Tekniska Högskolan
6 .\" (Royal Institute of Technology, Stockholm, Sweden).
7 .\" All rights reserved.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
13 .\" 1. Redistributions of source code must retain the above copyright
14 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
20 .\" 3. Neither the name of the Institute nor the names of its contributors
21 .\" may be used to endorse or promote products derived from this software
22 .\" without specific prior written permission.
24 .\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
25 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
28 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 .Nd maintain the iprop log file
50 .Nm iprop-log truncate
51 .Oo Fl c Ar file \*(Ba Xo
52 .Fl Fl config-file= Ns Ar file
55 .Oo Fl r Ar string \*(Ba Xo
56 .Fl Fl realm= Ns Ar string
62 .Oo Fl c Ar file \*(Ba Xo
63 .Fl Fl config-file= Ns Ar file
66 .Oo Fl r Ar string \*(Ba Xo
67 .Fl Fl realm= Ns Ar string
73 .Op Fl Fl start-version= Ns Ar version-number
74 .Op Fl Fl end-version= Ns Ar version-number
75 .Oo Fl c Ar file \*(Ba Xo
76 .Fl Fl config-file= Ns Ar file
79 .Oo Fl r Ar string \*(Ba Xo
80 .Fl Fl realm= Ns Ar string
91 command can be one of the following:
92 .Bl -tag -width truncate
95 .It Fl c Ar file , Fl Fl config-file= Ns Ar file
97 .It Fl r Ar string , Fl Fl realm= Ns Ar string
101 Truncates the log. Sets the new logs version number for the to the
102 last entry of the old log. If the log is truncted by emptying the
103 file, the log will start over at the first version (0).
106 .It Fl c Ar file , Fl Fl config-file= Ns Ar file
110 .Fl Fl realm= Ns Ar string
115 Print out all entries in the log to standard output.
118 .It Fl Fl start-version= Ns Ar version-number
119 start replay with this version
121 .Fl Fl end-version= Ns Ar version-number
123 end replay with this version
124 .It Fl c Ar file , Fl Fl config-file= Ns Ar file
126 .It Fl r Ar string , Fl Fl realm= Ns Ar string
130 Replay the changes from specified entries (or all if none is
131 specified) in the transaction log to the database.
134 .It Fl c Ar file , Fl Fl config-file= Ns Ar file
136 .It Fl r Ar string , Fl Fl realm= Ns Ar string
140 prints the version of the last log entry.