> For the complete documentation index, see [llms.txt](https://docs.p4.software/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.p4.software/p4warehouse-english/setup/reports-and-kpi/database-backups.md).

# Database backups

P4 Warehouse has database backups available every 12 hours. The backups are in a Microsoft bacpac file format. Bacpac is easy to import into any Microsoft SQL version 2008 and up.

{% hint style="info" %}
[Microsoft bacpac instructions](https://docs.microsoft.com/en-us/sql/relational-databases/data-tier-applications/import-a-bacpac-file-to-create-a-new-user-database?view=sql-server-ver15) (click)
{% endhint %}

Step one is to download your data from P4 Warehouse.

Step 2 is In SQL Manager (SSMS) right click on databases and select Import Data-tier Application

Step 3 select the bacpac file you downloaded, then give your database a name.

Step 4 click Finish, (The process normally will take 1-3 minutes to complete.).

![P4 Warehouse Database import in Microsoft SQL Server](/files/-Mj99cHwqgwanihCB5DE)

![P4 Warehouse Database Tables](/files/-Mj99vmmcWDywjzRvUw1)

### With this database you can connect to PowerBI, run queries, generate reports as well as various other options.

You will find database backups under Setup/System/Database backups

![P4 Warehouse Database backups](/files/-Mj91fGFveMf2o3xdcd8)

By clicking the download button, you will save the backup to your local computer.

{% hint style="info" %}
This is a bacpac file that can be restored onto SQL 2008 R2 or newer.&#x20;
{% endhint %}


---

# 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.p4.software/p4warehouse-english/setup/reports-and-kpi/database-backups.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.
