142 lines
3.8 KiB
Groff
Raw Normal View History

2011-10-05 07:23:29 +00:00
.\" $Id$
.\"
.\" Copyright (c) 2005 - 2007 Kungliga Tekniska Högskolan
2008-05-07 13:39:42 +00:00
.\" (Royal Institute of Technology, Stockholm, Sweden).
2011-10-05 07:23:29 +00:00
.\" All rights reserved.
2008-05-07 13:39:42 +00:00
.\"
2011-10-05 07:23:29 +00:00
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
2008-05-07 13:39:42 +00:00
.\"
2011-10-05 07:23:29 +00:00
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
2008-05-07 13:39:42 +00:00
.\"
2011-10-05 07:23:29 +00:00
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
2008-05-07 13:39:42 +00:00
.\"
2011-10-05 07:23:29 +00:00
.\" 3. Neither the name of the Institute nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
2008-05-07 13:39:42 +00:00
.\"
2011-10-05 07:23:29 +00:00
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
2008-05-07 13:39:42 +00:00
.\"
2011-10-05 07:23:29 +00:00
.\" $Id$
2008-05-07 13:39:42 +00:00
.\"
.Dd February 18, 2007
.Dt IPROP-LOG 8
.Os Heimdal
.Sh NAME
.Nm iprop-log
2011-10-05 07:23:29 +00:00
.Nd maintain the iprop log file
2008-05-07 13:39:42 +00:00
.Sh SYNOPSIS
.Nm
2011-10-05 07:23:29 +00:00
.Op Fl Fl version
.Op Fl h | Fl Fl help
2008-05-07 13:39:42 +00:00
.Ar command
.Pp
.Nm iprop-log truncate
.Oo Fl c Ar file \*(Ba Xo
2011-10-05 07:23:29 +00:00
.Fl Fl config-file= Ns Ar file
2008-05-07 13:39:42 +00:00
.Xc
.Oc
.Oo Fl r Ar string \*(Ba Xo
2011-10-05 07:23:29 +00:00
.Fl Fl realm= Ns Ar string
2008-05-07 13:39:42 +00:00
.Xc
.Oc
2011-10-05 07:23:29 +00:00
.Op Fl h | Fl Fl help
2008-05-07 13:39:42 +00:00
.Pp
.Nm iprop-log dump
.Oo Fl c Ar file \*(Ba Xo
2011-10-05 07:23:29 +00:00
.Fl Fl config-file= Ns Ar file
2008-05-07 13:39:42 +00:00
.Xc
.Oc
.Oo Fl r Ar string \*(Ba Xo
2011-10-05 07:23:29 +00:00
.Fl Fl realm= Ns Ar string
2008-05-07 13:39:42 +00:00
.Xc
.Oc
2011-10-05 07:23:29 +00:00
.Op Fl h | Fl Fl help
2008-05-07 13:39:42 +00:00
.Pp
.Nm iprop-log replay
2011-10-05 07:23:29 +00:00
.Op Fl Fl start-version= Ns Ar version-number
.Op Fl Fl end-version= Ns Ar version-number
2008-05-07 13:39:42 +00:00
.Oo Fl c Ar file \*(Ba Xo
2011-10-05 07:23:29 +00:00
.Fl Fl config-file= Ns Ar file
2008-05-07 13:39:42 +00:00
.Xc
.Oc
.Oo Fl r Ar string \*(Ba Xo
2011-10-05 07:23:29 +00:00
.Fl Fl realm= Ns Ar string
2008-05-07 13:39:42 +00:00
.Xc
.Oc
2011-10-05 07:23:29 +00:00
.Op Fl h | Fl Fl help
2008-05-07 13:39:42 +00:00
.Sh DESCRIPTION
Supported options:
.Bl -tag -width Ds
2011-10-05 07:23:29 +00:00
.It Fl Fl version
.It Fl h , Fl Fl help
2008-05-07 13:39:42 +00:00
.El
.Pp
command can be one of the following:
.Bl -tag -width truncate
.It truncate
.Bl -tag -width Ds
2011-10-05 07:23:29 +00:00
.It Fl c Ar file , Fl Fl config-file= Ns Ar file
2008-05-07 13:39:42 +00:00
configuration file
2011-10-05 07:23:29 +00:00
.It Fl r Ar string , Fl Fl realm= Ns Ar string
2008-05-07 13:39:42 +00:00
realm
.El
.Pp
Truncates the log. Sets the new logs version number for the to the
last entry of the old log. If the log is truncted by emptying the
file, the log will start over at the first version (0).
.It dump
.Bl -tag -width Ds
2011-10-05 07:23:29 +00:00
.It Fl c Ar file , Fl Fl config-file= Ns Ar file
2008-05-07 13:39:42 +00:00
configuration file
.It Xo
.Fl r Ar string ,
2011-10-05 07:23:29 +00:00
.Fl Fl realm= Ns Ar string
2008-05-07 13:39:42 +00:00
.Xc
realm
.El
.Pp
2011-10-05 07:23:29 +00:00
Print out all entries in the log to standard output.
2008-05-07 13:39:42 +00:00
.It replay
.Bl -tag -width Ds
2011-10-05 07:23:29 +00:00
.It Fl Fl start-version= Ns Ar version-number
2008-05-07 13:39:42 +00:00
start replay with this version
.It Xo
2011-10-05 07:23:29 +00:00
.Fl Fl end-version= Ns Ar version-number
2008-05-07 13:39:42 +00:00
.Xc
end replay with this version
2011-10-05 07:23:29 +00:00
.It Fl c Ar file , Fl Fl config-file= Ns Ar file
2008-05-07 13:39:42 +00:00
configuration file
2011-10-05 07:23:29 +00:00
.It Fl r Ar string , Fl Fl realm= Ns Ar string
2008-05-07 13:39:42 +00:00
realm
.El
.Pp
Replay the changes from specified entries (or all if none is
specified) in the transaction log to the database.
.It last-version
.Bl -tag -width Ds
2011-10-05 07:23:29 +00:00
.It Fl c Ar file , Fl Fl config-file= Ns Ar file
2008-05-07 13:39:42 +00:00
configuration file
2011-10-05 07:23:29 +00:00
.It Fl r Ar string , Fl Fl realm= Ns Ar string
2008-05-07 13:39:42 +00:00
realm
.El
.Pp
prints the version of the last log entry.
.El
.Sh SEE ALSO
.Xr iprop 8