Skip to content

docker-volume-backup

docker-volume-backup (dvb) is used to backup Docker volumes locally or to any S3, WebDAV, Azure Blob Storage, Dropbox or SSH compatible storage.

🛠 Installation

dvb is used as a docker container inside of an already existing Docker compose file.

⚙ Config

This example backs up two volumes in the same compose volume, postgres_data and minio_data.

compose.yaml

name: reactive_resume

      - AWS_ACCESS_KEY_ID=seaweedfs
      - AWS_SECRET_ACCESS_KEY=seaweedfs
    volumes:
      - seaweedfs_data:/data
    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://localhost:8888"]
      start_period: 10s
      interval: 30s
      timeout: 10s
      retries: 3

  seaweedfs_create_bucket:
    image: quay.io/minio/mc:latest
    restart: on-failure
    entrypoint: >
      /bin/sh -c "
        sleep 5;
        mc alias set seaweedfs http://seaweedfs:8333 seaweedfs seaweedfs;
        mc mb seaweedfs/reactive-resume;
        exit 0;
      "
    depends_on:
      seaweedfs:
        condition: service_healthy

  reactive_resume:
    # image: amruthpillai/reactive-resume:latest
    image: ghcr.io/amruthpillai/reactive-resume:v5.0.16
    env_file:
      - .env
    environment:
      # Server
      - TZ=Etc/UTC

📝 Usage

Backup Manually

docker exec <container_ref> backup

🔗 References