# What does Portainer's backup include?

{% hint style="info" %}
If you are concerned that your backup is large, check out [this FAQ](https://docs.portainer.io/faqs/troubleshooting/stacks-deployments-and-updates/why-is-my-portainer-backup-so-large).
{% endhint %}

Portainer's backup includes the Portainer database as well as any stack files that were deployed using Portainer. The backup does **not** include your environment's containers or their data. The data stored is intended to bring Portainer's configuration back into a known-good state, not the containers that it manages.

The backup contains records which cover configuration, metadata, access control, and feature state. This includes:

**Core configuration and system state**

* Settings and version information
* License data
* SSL certificates
* Snapshot metadata
* S3 backup settings

**Users, teams, and access control**

* API keys
* Users and roles
* Teams and team memberships
* User endpoint authorizations
* Resource controls

**Environments and connectivity**

* Environments and environment groups
* Environment relationships
* Tunnel server configuration
* Edge infrastructure metadata

**Stacks and deployment metadata**

* Edge stack status, logs and update schedules
* Stack definitions created in Portainer
* Stack-related schedules and pending actions
* Webhooks associated with stacks

**Edge features**

* Edge groups and jobs
* Edge configurations and configuration state
* Edge async commands

**Policies and enforcement**

* Policies and policy chart statuses
* Enforcement configuration
* Pod security settings
* Alert rules and alert managers

**Integrations and credentials**

* Registry definitions
* Docker Hub configuration
* Git credentials
* Cloud credentials and cloud provisioning data
* Helm user repositories
* Custom templates

**Automation and scheduling**

* Auto update configuration
* Schedules
* Pending actions

### **What is not included in a Portainer backup?**

**Portainer backups do not include:**

* Containers, images or volumes
* Application data stored in volumes or bind mounts
* Docker or Kubernetes configuration outside of Portainer’s own database


---

# 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.portainer.io/faqs/getting-started/what-does-portainers-backup-include.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.
