Data source: WAL-G

You need to set up machine for Database Lab instance first. Check the Setup machine for the Database Lab Engine guide for the details.



In order to set up Database Lab Engine to automatically get the data from database using WAL-G archival restoration tool you need to use following jobs:


Copy the contents of configuration example config.example.physical_walg.yml from the Database Lab repository to ~/.dblab/server.yml and update the following options:

  • Set secure server:verificationToken, it will be used to authorize API requests to the Engine;
  • Set connection options in physicalRestore:options:envs:
  • Set WAL-G settings in physicalRestore:options:walg:
    • backupName - defines the backup name to restore;
  • Set a proper version in Postgres Docker images tags (change the images itself only if you know what are you doing):
    • provision:options:dockerImage;
    • retrieval:spec:physicalRestore:options:dockerImage;
    • retrieval:spec:physicalSnapshot:options:promotion:dockerImage.

Run Database Lab Engine

Use Docker volumes to make credential files available to WAL-G, e.g. --volume ~/.dblab/sa.json:/home/dblab/sa.json.

sudo docker run \
--name dblab_server \
--label dblab_control \
--privileged \
--publish 2345:2345 \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /var/lib/dblab:/var/lib/dblab/:rshared \
--volume ~/.dblab/server.yml:/home/dblab/configs/config.yml \
--volume ~/.dblab/sa.json:/home/dblab/sa.json \
--detach \
--restart on-failure \

Restart in the case of failure