How chrisliebaer/salvage works
Main Components
a) Core Components:
• Salvage Service (Central orchestrator)
• Docker Daemon (External system)
• Tides (Backup schedules)
• Cranes (Backup executors)
• Volumes (Backup targets)
• Containers (Volume users)
• Reporting System (Discord webhooks)
b) Key Interactions:
• Docker API communication
• Volume mounting
• Container state management
• Backup execution flow
• Reporting webhooks
Specific Implementation Details
Key architectural elements:
┌─ Salvage Service ─────────────────────┐
• Tide Management │
• Grouping Strategies │
• Container State Management │
• Stop/Pause Actions │
• Pre/Post Commands │
• Volume Management │
• Discovery │
• Mounting │
• Reporting │
• ┘
Flow Indicators
• Configuration flow (labels → service)
• Backup operation flow (service → containers → volumes → cranes)
• State management flow (service ↔ containers)
• Reporting flow (service → webhooks)
Important Notes
• Read-only nature of volume access
• Isolation between different tides
• Crane interface (/salvage/volume and /salvage/meta paths)
• Machine name and crane name environment variables
• Relationship between containers and volumes through labels
Technical Details
• Docker socket connection (/var/run/docker.sock)
• Volume mount points
• Configuration label structure
• Cron scheduling for tides
• Webhook endpoints