Skip to content

Backrest

https://garethgeorge.github.io/backrest/

4Backrest is a web UI and orchestrator for restic backups.

TrueNAS apps use Docker containers under the hood, with a different Docker network for each app. In order to allow Backrest to dump a PostgreSQL database from another app, I had to do the following:

Terminal window
# Identify the name of the PostgreSQL container
docker ps
# Identify the name of the network of the PostgreSQL container
docker inspect ix-immich-pgvecto-1 -f '{{json .NetworkSettings.Networks}}'
# Identify the name of the Backrest container
docker ps
# Connect the Backrest container to the network of the PostgreSQL container
docker network connect ix-internal-immich-immich-net ix-backrest-backrest-1

On Alpine Linux, from the Docker host, to install clients for backing up sqlite and PostgreSQL databases:

Terminal window
docker exec -it -u root ix-backrest-backrest-1 apk add sqlite postgresql18-client