## Summary If DataLad/git-annex/S3 upload fails mid-way, users cannot resume. They must start over with a new dataset ID. ## Proposed Solution `nemar dataset upload` should: 1. Detect existing dataset (by path or dataset ID) 2. Check what's already on GitHub and S3 3. Resume/sync rather than fail git-annex handles this natively with `git annex copy` (only copies missing files). ## Implementation 1. Check if dataset already exists: - Look for `.datalad` directory - Query backend for dataset status 2. If resuming: - Clone existing repo (if not present locally) - Compare local files with S3 (`git annex whereis`) - Upload only missing files 3. Handle edge cases: - Partial git push (local commits not on remote) - Partial S3 upload (some files missing) - Metadata updates (changes to JSON sidecars) ## Related - Issue #40: User reports "almost worked", needs resume support ## Parent Issue Part of #41
Activity
feat: add resume capability for failed uploads
feat: add resume capability for failed uploads (#50)