---
search:
  tags:
    - databases
    - GET
seo:
  description: >-
    Every night pols dumps each ready database with pg_dump, encrypts the…
    Reference for the GET /v1/databases/{database}/backups endpoint in the
    pols.so API.
sidebar:
  label: List a database's backups
  badge: GET
title: List a database's backups
type: openapi-operation
---
Every night pols dumps each ready database with `pg_dump`, encrypts
the dump and checks that it can be read back; a check restores one
into a scratch database every week. Backups are kept for 7 days,
also after the database is deleted. To restore one, make a new
database from it (`POST /v1/databases` with `from_backup`).

`GET /v1/databases/{database}/backups`
