# 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: 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:

```
GET https://docs.p4.software/p4warehouse-english/setup/reports-and-kpi/database-backups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
