feat: Partition Backup/Restore — dump and restore AKAI partitions #5

Open
opened 2026-06-22 02:37:30 +00:00 by david · 0 comments
Owner

Feature: Partition Backup/Restore

As a sample library archivist
I want to back up individual partitions from a multi-partition AKAI disk
So that I can archive specific sample collections without storing the entire disk image

Acceptance Criteria

Scenario: Export a single partition

Given a multi-partition AKAI disk image with 8 partitions
When I select Partition C in Disk Browser and click "Export Partition"
Then a file ./output/backups/my-disk-part-C.img is created
And the Disk Browser shows the export size and completion

Scenario: Restore a previously exported partition

Given a partition backup file ./output/backups/my-disk-part-C.img
And the original disk image is present
When I click "Restore Partition" and select the backup file
Then Partition C on the disk image is replaced with the backup contents
And browsing shows the restored sample files

Scenario: Restore to wrong disk type

Given an S1000-formatted partition backup
When I attempt to restore it to an S900 disk
Then I see a warning: "Partition type mismatch — S1000 vs S900. Continue at your own risk."

Implementation

  • akaiutil commands: getpart /disk0/C backup.img and putpart backup.img /disk0/C
  • Endpoints: POST /api/partition/export and POST /api/partition/import
  • Both require read-write mode on the disk image
  • Show file size and operation result

Karpathy Principle

Export first (read-only, safe). Import second. Simple file-based I/O, no new parsing needed.

## Feature: Partition Backup/Restore **As a** sample library archivist **I want to** back up individual partitions from a multi-partition AKAI disk **So that** I can archive specific sample collections without storing the entire disk image ### Acceptance Criteria **Scenario: Export a single partition** ``` Given a multi-partition AKAI disk image with 8 partitions When I select Partition C in Disk Browser and click "Export Partition" Then a file ./output/backups/my-disk-part-C.img is created And the Disk Browser shows the export size and completion ``` **Scenario: Restore a previously exported partition** ``` Given a partition backup file ./output/backups/my-disk-part-C.img And the original disk image is present When I click "Restore Partition" and select the backup file Then Partition C on the disk image is replaced with the backup contents And browsing shows the restored sample files ``` **Scenario: Restore to wrong disk type** ``` Given an S1000-formatted partition backup When I attempt to restore it to an S900 disk Then I see a warning: "Partition type mismatch — S1000 vs S900. Continue at your own risk." ``` ### Implementation - akaiutil commands: `getpart /disk0/C backup.img` and `putpart backup.img /disk0/C` - Endpoints: `POST /api/partition/export` and `POST /api/partition/import` - Both require read-write mode on the disk image - Show file size and operation result ### Karpathy Principle Export first (read-only, safe). Import second. Simple file-based I/O, no new parsing needed.
david added the featuredisk-ops labels 2026-06-22 02:37:30 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: david/akai-utils#5