DEBCONF-COPYDB(1)
โจ debconf-copydb โ like, the manual page โจ
okay bestie, so this is debconf-copydb, section 1 of the manual (that's the user commands girlies ๐
). It's part of Debconf, and it does exactly one thing but it does it flawlessly.
๐ NAME ๐
debconf-copydb โ copy a debconf database ๐ซถ
๐ธ SYNOPSIS ๐ธ
debconf-copydb sourcedb destdb [--pattern=pattern] [--owner-pattern=pattern] [--config=Foo:bar]
๐ฆ DESCRIPTION ๐ฆ
so basically debconf-copydb copies items from a debconf database that already exists into another database, which might be brand new (a glow-up from nothing, iconic โจ).
and here's the cute part: the two databases can be in different formats. If they are, a conversion just... happens. Automatically. No extra steps, no drama. It's giving effortless. ๐
๐ OPTIONS ๐
sourcedbโ the name of the source database. Usually it's defined in yourdebconf.conf(or.debconfrc) file. That's where it lives, that's where you'll find it. ๐destdbโ the name of the destination database. It can be defined indebconf.confor.debconfrc, or you can just define it right there on the command line (peep the options below for how, iykyk ๐).-ppattern,--patternpattern โ if you set this, only the items insourcedbwhose names match the pattern get copied. Filtered. Curated. Main character items only. โจ--owner-patternpattern โ if you set this, only the items insourcedbwhose owners match the pattern get copied. Same vibe, different filter. ๐-c foo:bar,--config Foo:barโ set optionFootobar. This is basically the same as writing:
Foo: bar
in debconf.conf โ except you probably wanna leave off that space when you're on the command line (or quote it, like "Foo: bar"). You'll generally need to use this one multiple times to build up a whole configuration stanza, fr fr. And heads up bestie: in debconf.conf, blank lines are what separate stanzas, but this program instead assumes that "Name:dbname" means a new stanza is starting. No cap. ๐ง
๐ EXAMPLES ๐
okay this is the fun part, let's go:
debconf-copydb configdb backup
copies all of configdb into backup โ assuming you already have the backup database defined in debconf.conf. easy. ate. ๐
debconf-copydb configdb newdb --pattern='^slrn/' \
--config=Name:newdb --config=Driver:File \
--config=Filename:newdb.dat
this one copies slrn's data out of configdb and into newdb. and newdb isn't defined in the rc file at all, so the --config switches build the database on the fly. slay. ๐ฅ
debconf-copydb configdb stdout -c Name:stdout -c Driver:Pipe \
-c InFd:none --pattern='^foo/'
spits out all the items in the debconf database that are related to package foo. just... out loud. ๐ฃ๏ธ
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
this one uses the special purpose pipe driver to copy a database over to a remote system. ssh girlies, this is your moment. ๐ซถ
๐ SEE ALSO ๐
๐ AUTHOR ๐
Joey Hess <joeyh@debian.org> โ thank u legend ๐ซก
okay that's the whole page, bestie, you're literally a debconf-copydb expert now no cap ๐โจ This was the Debconf version, dated 2026-02-16. go forth and copy those databases ๐ฆ๐๐
๐ฆ where this page comes from
- ubuntu resolute: debconf 1.5.92 ยท BSD-2-Clause
- ubuntu stonking: debconf 1.5.92 ยท BSD-2-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms