Skip to content

Odoo Duplicate Database

Danger

The super administrator password of the database manager is required to perform this operation.

Duplicate an existing database using the duplicate_database method of the db service.

Method
{
  "jsonrpc": "2.0",
  "method": "call",
  "params": {
    "service": "db",
    "method": "duplicate_database",
    "args": [
      "password",
      "origin_db",
      "new_db"
    ]
  }
}

Request

Duplicate the exisiting origin_db into the new new_db.

Request body
{
  "jsonrpc": "2.0",
  "method": "call",
  "params": {
    "service": "db",
    "method": "duplicate_database",
    "args": [
      "super_admin_passwd",
      "prod",
      "prod_copy"
    ]
  }
}

Response

Response body
{
  "jsonrpc": "2.0",
  "id": null,
  "result": true
}