borgmatic howto¶
This is for mnemonic purposes only.
Lists all backups you can restore from
List all backups you can restore from (even when the current hostname differs from the backup's hostname)
list contents of a bacukp for a specific archive for a specific repo in mnt/source/grafana.
borgmatic list --match-archives "*" --repo backupuser@nasofden2 --archive cntr1-2025-08-14T02:45:01.058077 --path mnt/source/grafana
Extract content from backup
borgmatic extract --repository backupuser@nasofden2 --archive cntr1-2025-08-14T02:45:01.058077 --path mnt/source/grafana/jochen/grafana.db --destination /tmp/restore
Mount specific archive
Dump a database from a containerized PostgreSQL instance on the host (handy for feeding a consistent snapshot into borgmatic, or for ad-hoc restores):
Extract a database dump straight out of a borgmatic backup, running the extract inside the borgmatic container with ~ as the working directory so restored files land in the container home: