EideardVMR / unraid-easybackup

Snapshot for virtual machines and backups for them, as well as for Docker
GNU General Public License v3.0
7 stars 1 forks source link

Disabled container path issue #9

Open Halyul opened 7 months ago

Halyul commented 7 months ago

Hi, I have two containers (nextcloud and caddy for php-fastcgi reason) share the same path (e.g. /mnt/user/appdata/nextcloud), so I disabled the nextcloud path in caddy. However, the same path in nextcloud is also disabled, causing the path not being backed up.

I can only backup the nextcloud path when I disable the backup for the whole caddy container, but not excluding the nextcloud path only.

A sample docker-compose.yaml

services:
  caddy:
    build: ./caddy
    volumes:
      - <any other voulmes for data>
      - /mnt/user/appdata/nextcloud:/var/www/html
    restart: unless-stopped

  nextcloud:
    image: nextcloud:fpm-alpine
    volumes:
      - /mnt/user/appdata/nextcloud:/var/www/html
    restart: unless-stopped

  nextcloud-cron:
    container_name: nextcloud-cron
    image: nextcloud:fpm-alpine
    restart: always
    volumes:
      - /mnt/user/appdata/nextcloud:/var/www/html:z
EideardVMR commented 7 months ago

Hi, sorry for the late reply. I was on a business trip and didn't have time to reply.

The problem is that as soon as you deactivate a path, it is blacklisted as such and no longer included in the backup.

So you only want the path to be backed up once, if I understand correctly. This is currently not possible. But I will take up the problem. I hadn't thought of such a case.