Backup & Restore

TracePcap data lives in two places:

  • PostgreSQL — conversation metadata, analysis results, geolocation data.

  • MinIO — raw PCAP files (object storage).

Backing Up

Database Backup

docker exec tracepcap-postgres \
  pg_dump -U tracepcap_user tracepcap > backup.sql

MinIO Backup (PCAP files)

docker exec tracepcap-minio \
  mc mirror minio/tracepcap-files ./backup-pcaps/

Full Volume Backup

To back up all Docker named volumes at once:

sudo tar -czf tracepcap_backup.tar.gz /var/lib/docker/volumes/tracepcap_*

Custom Signature Rules Backup

The rules file is stored in the config_data volume. Back it up with:

docker cp tracepcap-backend:/app/config/signatures.yml ./signatures.yml.bak

Restoring

Database Restore

docker exec -i tracepcap-postgres \
  psql -U tracepcap_user tracepcap < backup.sql

MinIO Restore

docker exec tracepcap-minio \
  mc mirror ./backup-pcaps/ minio/tracepcap-files

Export Options

From within the UI, you can also export data without accessing Docker directly:

  • PDF report — click Export PDF on any PCAP overview page. The report includes a live capture of the network topology.

  • CSV — export the current Conversations view to a spreadsheet.

  • PCAP — download individual or bulk conversation PCAPs from the Conversations tab.