man-pages/man1/debconf-copydb.1.html
2021-03-31 01:06:50 +01:00

190 lines
3.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DEBCONF-COPYDB</TITLE>
</HEAD><BODY>
<H1>DEBCONF-COPYDB</H1>
Section: Debconf (1)<BR>Updated: 2019-08-03<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
debconf-copydb - copy a debconf database
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<PRE>
debconf-copydb sourcedb destdb [--pattern=pattern] [--owner-pattern=pattern] [--config=Foo:bar]
</PRE>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>debconf-copydb</B> copies items from an existing debconf database into
another, possibly new database. The two databases may have different
formats; if so a conversion will automatically be done.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><I>sourcedb</I><DD>
The name of the source database. Typically it will be defined
in your debconf.conf (or .debconfrc) file.
<DT id="2"><I>destdb</I><DD>
The name of the destination database. It may be defined in
debconf.conf or .debconfrc, or you might define it on the command line (see
below).
<DT id="3"><B>-p</B> <I>pattern</I>, <B>--pattern</B> <I>pattern</I><DD>
If this is specified, only items in <I>sourcedb</I> whose names match the pattern
will be copied.
<DT id="4"><B>--owner-pattern</B> <I>pattern</I><DD>
If this is specified, only items in <I>sourcedb</I> whose owners match the pattern
will be copied.
<DT id="5"><B>-c</B> <I>foo:bar</I>, <B>--config</B> <I>Foo:bar</I><DD>
Set option Foo to bar. This is similar to writing:
<P>
<PRE>
Foo: bar
</PRE>
<P>
In debconf.conf, except you probably want to leave off the space on the
command line (or quote it: ``Foo: bar''). Generally must be used multiple
times, to build up a full configuration stanza. While blank lines are used
to separate stanzas in debconf.conf, this program will assume that
``Name:dbname'' denotes the beginning of a new stanza.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLES</H2>
<PRE>
debconf-copydb configdb backup
</PRE>
<P>
Copy all of configdb to backup, assuming you already have the backup
database defined in debconf.conf.
<P>
<PRE>
debconf-copydb configdb newdb --pattern='^slrn/' \
--config=Name:newdb --config=Driver:File \
--config=Filename:newdb.dat
</PRE>
<P>
Copy slrn's data out of configdb, and into newdb. newdb is not defined in
the rc file, so the --config switches set up the database on the fly.
<P>
<PRE>
debconf-copydb configdb stdout -c Name:stdout -c Driver:Pipe \
-c InFd:none --pattern='^foo/'
</PRE>
<P>
Spit out all the items in the debconf database related to package foo.
<P>
<PRE>
debconf-copydb configdb pipe --config=Name:pipe \
--config=Driver:Pipe --config=InFd:none | \
ssh remotehost debconf-copydb pipe configdb \
--config=Name:pipe --config=Driver:Pipe
</PRE>
<P>
This uses the special purpose pipe driver to copy a database to a remote
system.
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?5+debconf.conf">debconf.conf</A></B>(5)
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
Joey Hess &lt;<A HREF="mailto:joeyh@debian.org">joeyh@debian.org</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="9"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="10"><A HREF="#lbAF">EXAMPLES</A><DD>
<DT id="11"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="12"><A HREF="#lbAH">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:09 GMT, March 31, 2021
</BODY>
</HTML>