Sign inSign up

andreas4all/postgres-rsync

By andreas4all

•Updated about 5 years ago

Postgresql with rsync and openssh

Image
0

2.3K

andreas4all/postgres-rsync repository overview

⁠PostgreSQL with Rsync

Tiny docker image with PostgreSQL 11, rsync and openssh

⁠Start container

In docker-compose.yml:

  postgres:
    image: andreas4all/postgres-rsync:latest
    volumes:
      - ./postgres/11/data:/var/lib/postgresql/data
      - ./postgres/11/.ssh:/var/lib/postgresql/.ssh

⁠How to use

In running container:

chown postgres:postgres /var/lib/postgresql/.ssh
su postgres
ssh-keyscan example.com >> ~/.ssh/known_hosts
ssh-keygen -t rsa

Copy id_rsa.pub into your server barman user account (/home/barman/.ssh/authorized_keys)

Tag summary

Content type

Image

Digest

Size

75.4 MB

Last updated

about 5 years ago

docker pull andreas4all/postgres-rsync