Skip to content

Restore from s3://path/to/xxx.tgz does not work in docker-compose.yml #432

@human211

Description

@human211

My docker-compose.yml

version: "3.9"

services:
  mysql-restore:
    image: databack/mysql-backup:1.2.2
    container_name: mysql-restore
    hostname: mysql-restore
    restart: no
    environment:
      DB_SERVER: ${DB_HOST}
      DB_USER: ${DB_USER}
      DB_PASS: ${DB_PASSWORD}
      DB_RESTORE_TARGET: s3://db/db_backup_2025-04-19T19:42:11Z.tgz
      AWS_ACCESS_KEY_ID: ${S3_KEY}
      AWS_SECRET_ACCESS_KEY: ${S3_SECRET_KEY}
      AWS_ENDPOINT_URL: "https://${S3_HOST}/"
      AWS_DEFAULT_REGION: eu-central1
      COMPRESSION: gzip
      DB_DUMP_DEBUG: "true"
    command: restore
    networks:
      - intranet
networks:
  intranet:
    name: intranet
    external: true

I get an error

time="2025-04-19T22:21:58Z" level=fatal msg="requires at least 1 arg(s), only received 0"
mysql-restore exited with code 1

Аlso my attempts to change

DB_RESTORE_TARGET: s3://db/ db_backup_2025-04-19T19:42:11Z.tgz (with space before filename)
DB_RESTORE_TARGET: s3://db/ restore db_backup_2025-04-19T19:42:11Z.tgz

DB_RESTORE_TARGET: s3://db/
with one of
command: restore --target=db_backup_2025-04-19T19:42:11Z.tgz
command: restore --target db_backup_2025-04-19T19:42:11Z.tgz
command: restore db_backup_2025-04-19T19:42:11Z.tgz

But nothing helps. in the documentation everything is different everywhere. it is not clear how it should be. I also tried to request a docker-compose.yml from the grok but also unsuccessfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions