Implement actual backup and restore operations #6

Closed
opened 2026-03-21 21:13:52 +00:00 by Mark · 0 comments
Owner

Description

Implement the actual backup and restore operations for Docker volumes.

Current State

  • volumesApi.backup() returns mock job object
  • No actual backup files are created
  • volumesApi.restore() returns success message

Required Changes

Backup Operations

  1. Create volume snapshot
  2. Compress data (gzip, zstd)
  3. Calculate checksums
  4. Transfer to backup target
  5. Verify integrity
  6. Update job status

Restore Operations

  1. Fetch backup from target
  2. Verify checksums
  3. Decompress
  4. Restore to volume (or new volume)

Backup Types

  • Full: Complete volume copy
  • Incremental: Only changed blocks
  • Delta: Block-level diffs

Targets to Support

  • Local filesystem
  • NFS mounts
  • AWS S3 / compatible (MinIO)
  • Google Cloud Storage
  • Azure Blob Storage

Files Affected

  • src/lib/api.ts (backup/restore methods)
  • Backend: backup execution logic

Acceptance Criteria

  • Backups complete successfully
  • Restores work correctly
  • Progress is reported accurately
  • All target types work
## Description Implement the actual backup and restore operations for Docker volumes. ## Current State - `volumesApi.backup()` returns mock job object - No actual backup files are created - `volumesApi.restore()` returns success message ## Required Changes ### Backup Operations 1. Create volume snapshot 2. Compress data (gzip, zstd) 3. Calculate checksums 4. Transfer to backup target 5. Verify integrity 6. Update job status ### Restore Operations 1. Fetch backup from target 2. Verify checksums 3. Decompress 4. Restore to volume (or new volume) ### Backup Types - **Full**: Complete volume copy - **Incremental**: Only changed blocks - **Delta**: Block-level diffs ### Targets to Support - Local filesystem - NFS mounts - AWS S3 / compatible (MinIO) - Google Cloud Storage - Azure Blob Storage ## Files Affected - `src/lib/api.ts` (backup/restore methods) - Backend: backup execution logic ## Acceptance Criteria - [ ] Backups complete successfully - [ ] Restores work correctly - [ ] Progress is reported accurately - [ ] All target types work
Mark 2026-05-28 00:22:13 +00:00
Sign in to join this conversation.
No description provided.