How arkeep-io/arkeep works
Arkeep is a self-hosted backup manager: users configure agents, policies and destinations in a web dashboard; the server schedules work, agents run Restic backups, and users can browse and restore snapshots. The map preserves Docker discovery, retention and integrity checks, snapshot synchronization, and notifications as distinct capabilities. Relationships are based on the README and shown source excerpts or SOURCE INDEX references; several unsampled subsystems are represented at their documented directory paths, with uncertain wiring omitted.
Main entry points: router.go REST API · agentmanager/manager.go Agent registry · connection/manager.go Agent connection · executor.go Job executor
Components 24
Web interface
- Web dashboard
gui/src/App.vue - Management pages
gui/src/pages - API client
gui/src/services/api.ts
Server control plane
- REST API
server/internal/api/router.go - Authentication
server/internal/auth/service.go - Job scheduling
server/internal/scheduler - Agent registry
server/internal/agentmanager/manager.go - Agent gRPC
server/internal/grpc/server.go - Persistent state
server/internal/db/db.go
Agent execution
- Backup agent
agent/cmd/agent/main.go - Agent connection
agent/internal/connection/manager.go - Job executor
agent/internal/executor/executor.go - Docker discovery
agent/internal/docker/discovery.go
Backup and recovery
- Retention checks
server/internal/retentionscheduler/retentionscheduler.go - Restic operations
agent/internal/restic/wrapper.go - Backup destinations
server/internal/destutil - Snapshot browsing
server/internal/api/snapshots.go - Restore workflow
gui/src/components/snapshots/RestoreSheet.vue - Snapshot synchronization
server/internal/snapshotsync/service.go
Operations
- Notifications
server/internal/notification/service.go - Job reports
server/internal/jobreport/service.go
Other components
- Administrator
- Backup storage
- Email and webhooks
Connections 24
- Administrator → Web dashboard: manages backups
README.md - Web dashboard → Management pages: shows workflows
gui/src/App.vue - Management pages → API client: requests data
- API client → REST API: calls REST API
- REST API → Authentication: authenticates
server/internal/api/router.go - REST API → Persistent state: serves management data
- REST API → Job scheduling: configures jobs
server/internal/api/router.go - Job scheduling → Agent registry: dispatches jobs
server/internal/agentmanager/manager.go - Retention checks → Agent registry: requests agent work
- Agent gRPC → Agent registry: registers agents
server/internal/grpc/server.go - Agent gRPC → Persistent state: persists agent data
server/internal/grpc/server.go - Backup agent → Agent connection: starts connection
agent/cmd/agent/main.go - Agent connection → Agent gRPC: connects over gRPC
README.md - Agent connection → Job executor: forwards assignments
agent/internal/connection/manager.go - Job executor → Restic operations: runs backup jobs
agent/internal/executor/executor.go - Job executor → Docker discovery: discovers volumes
agent/internal/executor/executor.go - Restic operations → Backup storage: reads and writes snapshots
README.md - REST API → Backup destinations: manages destinations
- REST API → Snapshot browsing: serves snapshot actions
server/internal/api/router.go - Snapshot browsing → Restore workflow: supports restore
README.md - Snapshot synchronization → Agent registry: requests repository import
server/internal/snapshotsync/service.go - Snapshot synchronization → Persistent state: updates snapshot records
- Notifications → Email and webhooks: delivers alerts
server/internal/notification/service.go - Job reports → Notifications: sends scheduled reports