Skip to content

Commit

Permalink
chore(pgbackrest): use default repo path
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Nov 22, 2023
1 parent 2817eec commit e008df4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions database/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ RUN apt-get install -y \
curl make gcc libpq-dev libssl-dev libxml2-dev pkg-config liblz4-dev libzstd-dev libbz2-dev libz-dev libyaml-dev \
# runtime deps
libxml2
ENV PGBACKREST_REPO_PATH=/var/lib/pgbackrest \
PGBACKREST_CONFIG_PATH=/etc/pgbackrest \
ENV PGBACKREST_CONFIG_PATH=/etc/pgbackrest \
PGBACKREST_LOCK_PATH=/tmp/pgbackrest \
PGBACKREST_LOG_PATH=/var/log/pgbackrest
RUN set -eux; \
mkdir -p -m 770 "$PGBACKREST_REPO_PATH"; chown postgres:postgres "$PGBACKREST_REPO_PATH"; \
mkdir -p -m 770 /var/lib/pgbackrest; chown postgres:postgres /var/lib/pgbackrest; \
mkdir -p -m 770 "$PGBACKREST_CONFIG_PATH"; chown postgres:postgres "$PGBACKREST_CONFIG_PATH"; \
mkdir -p -m 770 "$PGBACKREST_LOCK_PATH"; chown postgres:postgres "$PGBACKREST_LOCK_PATH"; \
mkdir -p -m 770 "$PGBACKREST_LOG_PATH"; chown postgres:postgres "$PGBACKREST_LOG_PATH";
Expand Down
5 changes: 1 addition & 4 deletions database/pgbackrest.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
[global]
start-fast=y
repo1-retention-full=15
repo1-path=$PGBACKREST_REPO_PATH

[global:archive-push]
compress-level=3
repo1-path=/var/lib/pgbackrest

[heltin]
pg1-path=/var/lib/postgresql/data

0 comments on commit e008df4

Please sign in to comment.