{
    "mode": "man",
    "parameter": "debconf-copydb",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/debconf-copydb/1/json",
    "generated": "2026-06-03T01:48:56Z",
    "synopsis": "debconf-copydb sourcedb destdb [--pattern=pattern] [--owner-pattern=pattern] [--config=Foo:bar]",
    "sections": {
        "NAME": {
            "content": "debconf-copydb - copy a debconf database\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "debconf-copydb sourcedb destdb [--pattern=pattern] [--owner-pattern=pattern] [--config=Foo:bar]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "debconf-copydb copies items from an existing debconf database into another, possibly new\ndatabase. The two databases may have different formats; if so a conversion will automatically\nbe done.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "sourcedb\nThe name of the source database. Typically it will be defined in your debconf.conf (or\n.debconfrc) file.\n\ndestdb\nThe name of the destination database. It may be defined in debconf.conf or .debconfrc, or\nyou might define it on the command line (see below).\n",
            "subsections": [
                {
                    "name": "-p --pattern",
                    "content": "If this is specified, only items in sourcedb whose names match the pattern will be\ncopied.\n\n--owner-pattern pattern\nIf this is specified, only items in sourcedb whose owners match the pattern will be\ncopied.\n",
                    "flag": "-p",
                    "long": "--pattern"
                },
                {
                    "name": "-c --config",
                    "content": "Set option Foo to bar. This is similar to writing:\n\nFoo: bar\n\nIn debconf.conf, except you probably want to leave off the space on the command line (or\nquote it: \"Foo: bar\"). Generally must be used multiple times, to build up a full\nconfiguration stanza. While blank lines are used to separate stanzas in debconf.conf,\nthis program will assume that \"Name:dbname\" denotes the beginning of a new stanza.\n",
                    "flag": "-c",
                    "long": "--config"
                }
            ]
        },
        "EXAMPLES": {
            "content": "debconf-copydb configdb backup\n\nCopy all of configdb to backup, assuming you already have the backup database defined in\ndebconf.conf.\n\ndebconf-copydb configdb newdb --pattern='^slrn/' \\\n--config=Name:newdb --config=Driver:File \\\n--config=Filename:newdb.dat\n\nCopy slrn's data out of configdb, and into newdb. newdb is not defined in the rc file, so the\n--config switches set up the database on the fly.\n\ndebconf-copydb configdb stdout -c Name:stdout -c Driver:Pipe \\\n-c InFd:none --pattern='^foo/'\n\nSpit out all the items in the debconf database related to package foo.\n\ndebconf-copydb configdb pipe --config=Name:pipe \\\n--config=Driver:Pipe --config=InFd:none | \\\nssh remotehost debconf-copydb pipe configdb \\\n--config=Name:pipe --config=Driver:Pipe\n\nThis uses the special purpose pipe driver to copy a database to a remote system.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "debconf.conf(5)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Joey Hess <joeyh@debian.org>\n\n\n\n2022-02-20                            DEBCONF-COPYDB(1)",
            "subsections": []
        }
    },
    "summary": "debconf-copydb - copy a debconf database",
    "flags": [
        {
            "flag": "-p",
            "long": "--pattern",
            "arg": null,
            "description": "If this is specified, only items in sourcedb whose names match the pattern will be copied. --owner-pattern pattern If this is specified, only items in sourcedb whose owners match the pattern will be copied."
        },
        {
            "flag": "-c",
            "long": "--config",
            "arg": null,
            "description": "Set option Foo to bar. This is similar to writing: Foo: bar 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."
        }
    ],
    "examples": [
        "debconf-copydb configdb backup",
        "Copy all of configdb to backup, assuming you already have the backup database defined in",
        "debconf.conf.",
        "debconf-copydb configdb newdb --pattern='^slrn/' \\",
        "--config=Name:newdb --config=Driver:File \\",
        "--config=Filename:newdb.dat",
        "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.",
        "debconf-copydb configdb stdout -c Name:stdout -c Driver:Pipe \\",
        "-c InFd:none --pattern='^foo/'",
        "Spit out all the items in the debconf database related to package foo.",
        "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 uses the special purpose pipe driver to copy a database to a remote system."
    ],
    "see_also": [
        {
            "name": "debconf.conf",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/debconf.conf/5/json"
        }
    ]
}