What I’m trying to do and why
Export remote repo keys to facilitate disaster recovery. Import remote repo keys in the event of a recovery operation.
It would be nice to run one command and have it export (or import) the keys for all configured repos.
See borg documentation for
borg key export and
borg key import
Other notes / implementation ideas
It would be nice to just get a single file (tar? gpg encrypted tar?) out that contains the borgmatic config, as well as the neccessary key files, and maybe even the ssh key. This single, small, file could be manually backed up once. In the event of a disaster recovery, a user would be able to import this recovery file to bootstrap borgmatic, so it could contact the remote repos to restore backups.
borgmatic version: 1.5.1
borgmatic installation method: Ubuntu Focal package
Borg version: 1.1.11
Python version: 3.8.2
operating system and version: Ubuntu Focal (20.04)