OpenMediaVault-Plugin-Developers / openmediavault-compose

openmediavault plugin for docker-compose
17 stars 5 forks source link

Backup files fails for container with trailing "/" in volume path #34

Open dariusaurius opened 6 days ago

dariusaurius commented 6 days ago

Hi,

thanks for your nice plugin, I love it! I noticed that the file backup for a compose file is not processed when the volume path ends with a "/" for the container side.

This error is logged:

[composebackup] no docker compose config match found for /docker/data/vaultwarden/data:/data

My volume configuration looked like this:

    volumes:
      - /docker/data/vaultwarden/data:/data/

After changing it to this, it copied the files to the backup location:

    volumes:
      - /docker/data/vaultwarden/data:/data

I confirmed it with other compose files.

Regards

ryecoaaron commented 5 days ago

Will be fixed in next release (sometime today) https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-compose/commit/72c3bd4df7cffd4b95bdab3ca015ba5e1ec1ba00