Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to backup EteSync data when using Postgres? #97

Closed
King-of-penguins opened this issue Sep 27, 2021 · 1 comment
Closed

How to backup EteSync data when using Postgres? #97

King-of-penguins opened this issue Sep 27, 2021 · 1 comment

Comments

@King-of-penguins
Copy link

King-of-penguins commented Sep 27, 2021

Hello.
I'm using EteBase docker-container with Postgres, just like in your example.
I found an instruction of how to backup EteSync data without using a container.
Only I did not understand how best to backup EteSync data when using Postgres container?
As I understand I should backup secret.txt file. I can copy this file to my host machine by command: docker cp <name-of-my-etebase-app-container>:/data/secret.txt ~/
And as I understand I should make dump of Postgres to backup data with my calendars, tasks and contacts and copy this dump to my host machine. But I don't know how to do this.
Could you give me an example on how to do this?
Am I going to use a good backup method? Maybe there is an easier and more convenient method?

@King-of-penguins
Copy link
Author

I have switched to the use of Etebase with SQLite database.
Here my docker-compose.yml file. Perhaps will be useful for someone.

version: '3'

volumes:
  etebase_static:

services:
  etebase:
    image: victorrds/etebase:latest
    container_name: "etebase-app"
    volumes:
      - /path/to/EteBase/storage/:/data:rw
      - etebase_static:${STATIC_PATH}:rw
    environment:
      SERVER: asgi
      SUPER_USER: ${ADMIN_USER}
      SUPER_PASS: ${ADMIN_PASS}
      DB_ENGINE: sqlite
      DATABASE_NAME: /data/etesync-sqlite-db.sqlite3
    restart: always

  nginx:
    image: nginx:stable-alpine
    container_name: "etebase-nginx"
    volumes:
      - etebase_static:${STATIC_PATH}:ro
      - ./nginx/default-ssl.conf:/etc/nginx/conf.d/default.conf
      - ./nginx/certs:/certs:ro
    ports:
      - "443:443"
    depends_on:
      - etebase
    restart: always

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant