> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snapsec.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Backup & Restore

> Enterprise backup schedules, disaster recovery procedures, and snapshot restoration workflows.

Ensuring resilience and disaster recovery (DR) is critical for enterprise security infrastructure.

***

## Backup Components

A complete Snapsec backup encapsulates:

1. **Relational Database**: Tenant configurations, user accounts, asset metadata, findings, and SLA history (PostgreSQL dump).
2. **Object Store / Evidence Store**: HTTP request/response payloads, screenshots, and PDF reports (MinIO/S3 bucket snapshot).
3. **Configuration & Encryption Keys**: Platform master secret key and environment configuration (`.env`).

***

## Creating an On-Demand Backup

```bash theme={null}
# On the Snapsec host
sudo snapsec-ctl backup --output /var/backups/snapsec/snapsec-backup-$(date +%F).tar.gz

# Verify backup archive integrity
sudo snapsec-ctl verify-backup --file /var/backups/snapsec/snapsec-backup-$(date +%F).tar.gz
```

***

## Restoration Procedure

```bash theme={null}
# Stop running services
sudo docker compose down

# Restore database and evidence volume
sudo snapsec-ctl restore --file /var/backups/snapsec/snapsec-backup-2026-11-09.tar.gz

# Start services and verify database schema
sudo docker compose up -d
sudo snapsec-ctl healthcheck
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.