P3: PostgreSQL disaster recovery test and borgmatic k8s-pg backup #32
2 changed files with 7 additions and 0 deletions
Configure borgmatic to backup k8s-pg PostgreSQL
- Add k8s-pg database entry to borgmatic config - Add k8s-pg entry to pgpass for borgmatic access Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
commit
be688bd10d
|
|
@ -45,7 +45,13 @@ borgmatic_keep_yearly: 1000
|
|||
# pg_dump_command must be full path since LaunchAgent doesn't have homebrew in PATH
|
||||
borgmatic_pg_dump_command: /opt/homebrew/opt/postgresql@18/bin/pg_dump
|
||||
borgmatic_postgresql_databases:
|
||||
# Brew PostgreSQL on indri (current production)
|
||||
- name: miniflux
|
||||
hostname: localhost
|
||||
port: 5432
|
||||
username: borgmatic
|
||||
# k8s PostgreSQL (CloudNativePG) - backup both during migration
|
||||
- name: miniflux
|
||||
hostname: k8s-pg.tail8d86e.ts.net
|
||||
port: 5432
|
||||
username: borgmatic
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@
|
|||
content: |
|
||||
# Managed by ansible - only read-only roles
|
||||
localhost:{{ postgresql_port }}:*:borgmatic:{{ postgresql_user_passwords['borgmatic'] }}
|
||||
k8s-pg.tail8d86e.ts.net:5432:*:borgmatic:{{ postgresql_user_passwords['borgmatic'] }}
|
||||
dest: ~/.pgpass
|
||||
mode: '0600'
|
||||
no_log: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue