1DEBCONF-COPYDB(1)                   Debconf                  DEBCONF-COPYDB(1)
2
3
4

NAME

6       debconf-copydb - copy a debconf database
7

SYNOPSIS

9        debconf-copydb sourcedb destdb [--pattern=pattern] [--owner-pattern=pattern] [--config=Foo:bar]
10

DESCRIPTION

12       debconf-copydb copies items from an existing debconf database into
13       another, possibly new database. The two databases may have different
14       formats; if so a conversion will automatically be done.
15

OPTIONS

17       sourcedb
18           The name of the source database. Typically it will be defined in
19           your debconf.conf (or .debconfrc) file.
20
21       destdb
22           The name of the destination database. It may be defined in
23           debconf.conf or .debconfrc, or you might define it on the command
24           line (see below).
25
26       -p pattern, --pattern pattern
27           If this is specified, only items in sourcedb whose names match the
28           pattern will be copied.
29
30       --owner-pattern pattern
31           If this is specified, only items in sourcedb whose owners match the
32           pattern will be copied.
33
34       -c foo:bar, --config Foo:bar
35           Set option Foo to bar. This is similar to writing:
36
37             Foo: bar
38
39           In debconf.conf, except you probably want to leave off the space on
40           the command line (or quote it: "Foo: bar"). Generally must be used
41           multiple times, to build up a full configuration stanza. While
42           blank lines are used to separate stanzas in debconf.conf, this
43           program will assume that "Name:dbname" denotes the beginning of a
44           new stanza.
45

EXAMPLES

47         debconf-copydb configdb backup
48
49       Copy all of configdb to backup, assuming you already have the backup
50       database defined in debconf.conf.
51
52         debconf-copydb configdb newdb --pattern='^slrn/' \
53               --config=Name:newdb --config=Driver:File \
54               --config=Filename:newdb.dat
55
56       Copy slrn's data out of configdb, and into newdb. newdb is not defined
57       in the rc file, so the --config switches set up the database on the
58       fly.
59
60         debconf-copydb configdb stdout -c Name:stdout -c Driver:Pipe \
61               -c InFd:none --pattern='^foo/'
62
63       Spit out all the items in the debconf database related to package foo.
64
65         debconf-copydb configdb pipe --config=Name:pipe \
66                       --config=Driver:Pipe --config=InFd:none | \
67               ssh remotehost debconf-copydb pipe configdb \
68                       --config=Name:pipe --config=Driver:Pipe
69
70       This uses the special purpose pipe driver to copy a database to a
71       remote system.
72

SEE ALSO

74       debconf.conf(5)
75

AUTHOR

77       Joey Hess <joeyh@debian.org>
78
79
80
81                                  2021-11-06                 DEBCONF-COPYDB(1)
Impressum