Skip to content

0.1.0-beta.3 — Backup verification and restore recovery

Pre-release
Pre-release

Choose a tag to compare

@gh-slee gh-slee released this 20 Oct 22:32
74087bf

0.1.0-beta.3 — Backup verification and restore recovery

This prerelease adds independent backup verification, read-only target preflight
and journal-bound recovery for interrupted restores. Runtime remains macOS,
Python 3.9+ and the standard library, with the stable xteink_sd_migrate.py entry point.

Changes since beta.2

  • --verify-backup BACKUP.zip checks the legacy manifest, whole ZIP SHA-256,
    archive entries and every file hash without querying an SD card.
  • --restore BACKUP.zip --dry-run previews identity, protected storage, capacity
    and filesystem limits without formatting, copying, creating backup/journal/lock
    files or ejecting.
  • --check-restore BACKUP.zip and --resume BACKUP.zip --dry-run inspect a
    journal-bound interrupted target without writes.
  • Confirmed --resume BACKUP.zip never formats. It preserves verified complete
    files, creates missing files and appends only to the recorded partial file after
    checking every existing byte against the backup. Conflicts or unexpected data
    stop recovery. Full file/tree verification and eject precede journal cleanup.
  • Private recovery journals/locks are ignored by Git and excluded from source
    exports. Tests cover root/nested files and forced staging.
  • Add journal persistence, ENOSPC, sync-error, Ctrl-C, completion-checkpoint and
    cleanup-failure tests with verified retries. Update recovery and release guides.

Compatibility and privacy

The xteink-x3-migrate-v1 schema, v1.6 backups, historical backup names and
xteink-x3-backup/ beside the script remain compatible. The workflow is model-neutral
for compatible CrossInk XTEINK layouts, including X3 and X4-family devices.

Normal restores retain the guarded erase entry point, both erase confirmations,
source-card protection, protected-storage and mount checks. Backups and journals
stay local and are not encrypted. This release contains reviewed Git source only;
there are no attached backups, reader data, logs or private owner instructions.

Validation

  • Merged-main macOS CI
    passed on Python 3.9 and 3.12 for commit 74087bf42c6c123639a00ccd610443b1999d736d.
    Each job passed 153 synthetic tests, publication audits, compilation and CLI checks.
  • Local Python 3.12.2: 153 full tests, Python 3.9 grammar, version/help and 44 local
    documentation targets passed. An audited 30-file source export matched Git and
    passed isolated CLI checks; its tree equals the merged release candidate.
  • No real backup was inspected or real SD card formatted during development/testing.

Known limits

Automatic resume requires the new matching journal and recorded target UUID. Older
interrupted jobs, interruptions during format or before journal creation, conflicting
bytes and damaged filesystems cannot be automatically recovered. A directory-sync
failure after journal rename can leave a newer journal visible; normal recovery
reloads and validates it before writing.

Dry-run cannot establish actual post-format free space. Hotplug races and cloned
UUID ambiguity cannot be eliminated. Physical evidence remains the historical X3
migration with the internal v1.6 predecessor. The new public workflow and other
device/card/reader combinations still need hardware validation.

Keep the original card and verified backup until the replacement works in the reader.