Takahe Restore Role¶
Restores Takahe from archives produced by takahe_backup, including database, media, and configuration.
Features¶
Unpacks archive into a staging directory.
Drops and recreates the PostgreSQL database, then restores the custom-format dump.
Restores media,
.env, systemd units, Traefik, and nginx configuration when present.Restarts services and optionally reruns migrations.
Usage¶
- hosts: takahe
become: true
roles:
- role: local.ops_library.takahe_restore
vars:
takahe_restore_archive: latest
Key Variables¶
Variable |
Default |
Description |
|---|---|---|
|
|
Directory containing backup archives. |
|
|
Archive name or |
|
|
Run migrations after restoring the database. |
|
|
Remove staging directory after restore. |
See defaults/main.yml and roles/takahe_shared/defaults/main.yml for the full reference.
Dependencies¶
local.ops_library.takahe_shared
Testing¶
cd /path/to/ops-library
just test-role takahe_restore
License¶
MIT