Skip to content

Backup by volumes, not containers #56

Description

@lvu

Wouldn't it be nice to allow specifying what to backup on a volume level, not on a container one? Some volumes are shared between containers, and keeping track of where to backup which volume consumes mental capacity :)

I'd like to be able to configure my backups like this:

services:
  postgres:
    image: postgres:11
    labels:
      stack-back.postgres: true
    volumes:
      - pgdata:/var/lib/postgresql/data
...

volumes:
  pgdata:
  shared-state:
    labels:
      stack-back.backup: true
  my-files:
    # instead of bind mount, to specify labels
    labels:
      stack-back.backup: true
    driver_opts:
      type: none
      o: bind
      device: /srv/data

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions