version 2, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
DEBCONF-COPYDB |
|
|
2 |
!!!DEBCONF-COPYDB |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
EXAMPLES |
|
|
8 |
SEE ALSO |
|
|
9 |
AUTHOR |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
debconf-copydb - copy a debconf db |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
debconf-copydb sourcedb destdb [[--pattern=pattern] [[--config=Foo:bar] |
|
|
19 |
!!DESCRIPTION |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
__debconf-copydb__ copies items from an existing debconf |
|
|
23 |
database into another, possibly new database. The two |
|
|
24 |
databases may have different formats; if so a conversion |
|
|
25 |
will automatically be done. |
|
|
26 |
!!OPTIONS |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
''sourcedb'' |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
The name of the source database. Typically it will be |
|
|
33 |
defined in your debconf.conf (or .debconfrc) |
|
|
34 |
file. |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
''destdb'' |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
The name of the destination database. It may be defined in |
|
|
41 |
debconf.conf or .debconfrc, or you might define it on the |
|
|
42 |
command line (see below). |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
__-p__ ''pattern'', __--pattern__ |
|
|
46 |
''pattern'' |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
If this is specified, only items in ''sourcedb'' whose |
|
|
50 |
names match the pattern will be copied. |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
__-c__ ''foo:bar'', __--config__ |
|
|
54 |
''Foo:bar'' |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
Set option Foo to bar. This is similar to |
|
|
58 |
writing: |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
Foo: bar |
|
|
62 |
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 seperate stanzas in debconf.conf, this program will assume that ``Name:dbname'' denotes the beginning of a new stanza. |
|
|
63 |
!!EXAMPLES |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
debconf-copydb configdb backup |
|
|
67 |
Copy all of configdb to backup, assuming you already have the backup database defined in debconf.conf. |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
debconf-copydb configdb newdb --pattern='^slrn/' \ |
|
|
71 |
--config=Name:newdb --config=Driver:File \ |
|
|
72 |
--config=Filename:newdb.dat |
|
|
73 |
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. |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
debconf-copydb configdb stdout -c Name:stdout -c Driver:Pipe \ |
2 |
perry |
77 |
-c !InFd:none --pattern='^foo/' |
1 |
perry |
78 |
Spit out all the items in the debconf datapase related to package foo. |
|
|
79 |
|
|
|
80 |
|
|
|
81 |
debconf-copydb configdb pipe --config=Name:pipe \ |
2 |
perry |
82 |
--config=Driver:Pipe --config=!InFd:none \ |
1 |
perry |
83 |
ssh remotehost debconf-copydb pipe configdb \ |
|
|
84 |
--config=Name:pipe --config=Driver:Pipe |
|
|
85 |
This uses the special purpose pipe driver to copy a database to a remote system. |
|
|
86 |
!!SEE ALSO |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
''debconf.conf''(5) |
|
|
90 |
!!AUTHOR |
|
|
91 |
|
|
|
92 |
|
|
|
93 |
Joey Hess |
|
|
94 |
---- |