> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/fabricate/project-and-database-management/data-agent-db-create-manage/database-local-clone.md).

# Cloning a local database

You can create a new local database as a clone of an existing local database. For example, you might want a similar set of data that uses international names and addresses.

You cannot clone a database connection.

You can add the new database to any project in any workspace that you have edit access to.

To clone a database:

1. In the project database list, hover over the database name.
2. Click the copy icon.
3. On the **Clone Database** panel:
   1. In the **New Database Name** field, provide the name for the new database.
   2. From the **Workspace** dropdown list, select the workspace that contains the project to add the new database to.
   3. From the **Project** dropdown list, select the project to add the new database to.

<figure><img src="/files/PrFfw26AQ91fR11rtl46" alt=""><figcaption><p>Clone database panel to clone a local database</p></figcaption></figure>

4. Click **Clone Database**.

You can also prompt the Data Agent to clone a database. For example:

`Clone the database Test database 1 to a new database called Test database 2 in this project.`

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tonic.ai/fabricate/project-and-database-management/data-agent-db-create-manage/database-local-clone.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
