Summary

Add support for restoring/importing backups in ServiceDatabase (Docker Compose databases).

Changes

  • Add ServiceDatabase case in buildRestoreCommand() method
  • Handle ServiceDatabase container naming in getContainers() (uses name-service.uuid format)
  • Support PostgreSQL, MySQL, MariaDB, MongoDB detection via databaseType()
  • Mark unsupported ServiceDatabase types (Redis, KeyDB, Dragonfly, Clickhouse)
  • Update updatedDumpAll() to handle ServiceDatabase dump-all mode

Technical Details

The implementation uses the existing ServiceDatabase::databaseType() method to detect the database type and build the appropriate restore command, following the same pattern as standalone databases.

Testing

  • Test with PostgreSQL ServiceDatabase
  • Test with MySQL ServiceDatabase
  • Test with MariaDB ServiceDatabase
  • Test with MongoDB ServiceDatabase

Related Issue

/claim #7529

Demo Video

(Will be added after testing)

Claim

Total prize pool $25
Total paid $0
Status Pending
Submitted December 09, 2025
Last updated December 09, 2025

Contributors

MU

Murat Aslan

@murataslan1

100%

Sponsors

IL

Ilias Ism

@me

$25