Skip to content

New schemas not backed up #214

Open
Open
@bansalvinay

Description

@bansalvinay

I'm using Ubuntu Mysql image.
The backup runs fine for the databases which are created before this container is started. It runs for these databases continuously on cron as expected. But when there are new databases created, these are not backed up until this container is restarted.

Here's my composer code for mysql-backup :

db-backup:
    image: databack/mysql-backup:latest
    restart: 'always'
    container_name: 'smartsites-db-backup'
    depends_on: 
      - database
    volumes:
      - ${DB_BACKUP_DIR}:/db
      - ${DB_BACKUP_TEMP_DIR}:/tmp
    user: root
    environment:
      DB_SERVER: database
      DB_PORT: 3306
      DB_USER: root
      COMPRESSION: gzip
      DB_DUMP_BY_SCHEMA: "true"
      DB_PASS: ${MYSQL_ROOT_PASSWORD}
      DB_DUMP_CRON: "* * * * *"
      DB_DUMP_DEBUG: "true"
      DB_DUMP_TARGET: /db

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