Privacy and preparation
Dataset transfer interruption recovery: when resuming is safe
By SourceX Editorial · Reviewed by Noah Loul ·
10 sections
Short answer
Resume a failed dataset transfer only after confirming the source still matches the approved manifest, reissuing access with the same narrow scope, and choosing a resume mode that verifies the bytes already received. Restart any file whose partial copy cannot be checked, issue a new manifest version if the source changed, then verify every file, record the receipt and delete partial copies and orphaned upload parts.
Redaction
Dataset transfer
Key takeaways
- Classify why the transfer stopped before rerunning anything; the safe recovery depends on the cause.
- Resume modes differ: some keep partial bytes without verifying them, so prefer verifying modes or resend the file in flight.
- Never resume across a source change; a corrected export needs a new manifest version first.
- Verification is a separate checksum comparison against the manifest, not the copy tool's exit code.
- Partial files, superseded versions, orphaned upload parts and temporary credentials all need disposal and a record.
How do you safely resume a large dataset transfer after it fails partway?
Resume only after you have shown three things: the source files are still the approved version, the access you are about to reissue is as narrow as the original, and the tool you resume with will verify the bytes it keeps as well as the bytes it adds. Then finish the transfer, verify every file against the manifest, and clean up partial copies and orphaned parts on both sides.
A transfer that stops at 92% looks like a bandwidth problem. In a licensed data delivery it is also an approval and custody question. The receiver now holds an incomplete package, possibly a half-written file, and access credentials may have been extended or reissued under time pressure. Each of those needs a decision, and the decisions should leave a record.
This page is the recovery runbook for that moment. It assumes a delivery already has a manifest of file paths, sizes and digests, and an agreed method. Choosing a method and building the manifest are covered in the linked delivery guides.
Read the failure before touching the transfer
The first step is to classify why the transfer stopped, because the safe recovery differs by cause. Write the cause down before rerunning anything; a rerun overwrites the logs and partial state you need to tell the causes apart.
| What stopped it | What may be wrong on disk | Safe next move | Who decides |
|---|---|---|---|
| Network drop or timeout | Last file partially written | Resume with a tool that verifies kept bytes | Transfer operator |
| Access link or credential expired | Nothing, but new access is needed | Reissue access with the same scope and a short expiry | Data owner |
| Process killed or host restarted | Partial files the tool could not clean up | Quarantine partials, then resume or restart them | Transfer operator |
| Receiver disk full or quota hit | Truncated files, failed writes | Free space, restart affected files from zero | Receiver |
| Source re-exported or edited mid-transfer | A mix of old and new versions | Stop; issue a new manifest version first | Data owner and receiver |
| Unexpected content seen in transferred files | Files outside the approved scope | Stop; escalate to privacy and legal review | Data owner's privacy lead |
Which resume modes keep bytes without checking them?
Most tools can resume, but they differ in whether the part already on the receiver is verified. Pick the mode that checks the kept bytes, or restart the file.
rsync deletes a partially transferred file by default when a transfer is interrupted; its --partial option keeps it, and --partial-dir keeps it in a separate directory and uses it to speed up the next run. Its --append mode updates files in place without verifying the existing content, and the manual flags it as dangerous unless you are certain the receiving copy matches the sender. --append-verify includes all of the file's data in the checksum verification. rsync also verifies each transferred file with a whole-file checksum after reconstruction.
curl's continue-at option resumes from a byte offset, and the documentation says HTTP uploads using POST or PUT cannot be resumed that way. For HTTP downloads, RFC 9110 defines If-Range so that a client holding a partial copy gets only the missing range when the server's representation is unchanged, and the whole current representation otherwise. Resume a download with a validator, not with a bare offset.
Cloud upload sessions have their own clocks. Google Cloud Storage says a resumable upload session stays active for up to a week; once the session URI is lost or expired, the upload starts again from the beginning. AzCopy can resume a failed or canceled job from its plan file, transferring only files not already done, but it needs the SAS tokens supplied again because it does not store them. For Amazon S3 multipart uploads, the parts already uploaded keep incurring storage charges until the upload is completed or stopped.
Resume, restart a file, or restart the delivery: the decision rule
Resume the delivery when the cause was transport-only and the manifest digest is unchanged. Restart individual files when their partial copy cannot be verified. Restart the delivery under a new manifest version whenever the source changed.
In practice most interrupted deliveries end up as a resume at the delivery level with a handful of file-level restarts. The files completed before the failure can be kept if a checksum comparison against the manifest confirms them. The file in flight at the moment of failure is the suspect one, and it is usually cheaper to delete and resend it than to argue about it.
What you should not do is resume across a source change. If the data owner re-exported even one file after the first run started, a resume produces a package that matches neither the old manifest nor the new one. The receiver then holds a hybrid that nobody approved.
The transfer recovery and integrity verification runbook
Run these steps in order and keep the output of each one. The tool names are examples drawn from documented behavior; use the equivalent in your own stack.
| Step | Action | Evidence to keep | Stop if |
|---|---|---|---|
| 1. Freeze | Pause schedulers and retries on both sides; save logs | Tool logs, job IDs, timestamps | Logs cannot be recovered |
| 2. Confirm the source | Recompute the manifest digest on the source export | Digest compared with the approved manifest | Digest differs from the approved version |
| 3. Quarantine partials | Move partial files and partial directories aside on the receiver | List of quarantined paths and sizes | Partial files sit in a location training jobs can read |
| 4. Reissue access | New credential or link with the same scope and a short expiry; revoke the old one | Issue and revocation records | Wider scope is requested to finish faster |
| 5. Resume | Copy only missing or differing files, comparing by checksum where both sides support it | Command, version and summary counts | Tool would append to unverified files |
| 6. Verify | Compare every file's size and digest with the manifest | Combined report of matched, missing, extra and differing files | Any file missing, extra or differing |
| 7. Reconcile | Check file count, total bytes and record counts per file | Reconciliation table signed by the receiver | Counts disagree with the manifest |
| 8. Clean up | Delete quarantined partials, abort incomplete multipart uploads, expire temporary links | Deletion and abort records | Cleanup would remove the only copy of evidence still needed |
| 9. Close | Receiver issues a receipt naming the manifest version | Receipt stored with the delivery record | Either party disputes the receipt |
How both parties confirm the exact package received
Both sides should run the same comparison against the same manifest and exchange the results, not just a tool's exit code. rclone check, for example, compares sizes and hashes between source and destination without altering either, and its combined report marks each path as identical, missing on one side, different, or failed to read.
For objects in Amazon S3, know which checksum you are comparing. AWS documents that a multipart upload can carry either a full-object checksum or a composite checksum built from the parts' checksums, and that CRC-64/NVME, CRC-32 and CRC-32C support full-object checksums. A composite value will not equal a whole-file digest computed on your side, so the manifest should state which kind it holds.
Rerunning a copy is not verification on its own. rclone copy skips files that look identical by size and modification time or MD5, which is fast but weaker than a full checksum comparison against the manifest. Treat the copy as transport and the check as proof.
Worked example (illustrative): 1,840 of 2,000 shards delivered
Illustrative example, invented to show the method; it does not describe a real company or delivery. A supplier is moving a de-identified export of 2,000 Parquet shards, about 6 TB in total, from its own object storage to a buyer's bucket. The transfer stops after 30 hours with 1,840 shards complete, which is the 92% figure on the dashboard.
The logs show two causes. The time-limited access token expired at hour 30, and shard 1,841 was mid-write when it did. A message thread also shows that on day two the supplier re-exported three earlier shards after a de-identification fix, so those three files on the receiver no longer match the source.
The data owner recomputes the manifest and finds the digest changed, so this is not a pure resume. The supplier issues manifest version 2 listing the three corrected shards with new digests and records why. The buyer quarantines shard 1,841 and the three superseded shards. A new token is issued with the same read-only scope and a 24-hour expiry, and the old token is revoked.
The resumed run sends 163 files: 159 never sent, the partial shard, and the three corrected shards. A checksum comparison against version 2 reports 2,000 identical files and nothing missing, extra or different. The buyer deletes the four quarantined files, aborts two incomplete multipart uploads left by the failed run, and issues a receipt naming manifest version 2. The superseded shards are recorded as deleted, because they contain data that the fix was meant to remove.
Partial copies, stale links and orphaned parts are still data
A failed transfer leaves material behind that the agreement still covers. Partial files contain real records, superseded versions may contain fields that were later removed, and incomplete multipart uploads hold bytes that do not show up as objects. Each needs a disposal decision and a record.
On Amazon S3, a lifecycle rule with the AbortIncompleteMultipartUpload action stops uploads not completed within a set number of days and deletes their parts; AWS notes the rule cannot use tag-based filters and that directory buckets need manual aborts. For encrypted drives used as a fallback, NIST SP 800-88 Revision 2, published in 2025, describes clear, purge and destroy as the sanitization methods for media that held the data.
Expire every temporary link and credential created during recovery, not just the one that failed. Rushed recoveries tend to create a second, broader credential that outlives the delivery. The reissue step in the runbook exists to stop that.
When to stop resuming and call privacy or legal review
Stop and escalate when the transferred files contain anything outside the approved scope, when a credential may have been exposed or used by someone else, when files reached a location other than the agreed destination, or when the two parties disagree about which manifest version governs. None of these is a transport problem, and resuming makes them harder to unwind.
Those situations can trigger contractual notice duties or a legal assessment of whether personal data was exposed. That assessment depends on the agreement, the data and the jurisdictions involved, so the people who own it should make it before anyone retries. Keep the logs, quarantined files and access records intact until they decide.
A partial delivery is also not an accepted delivery. Unless the agreement says shards are usable independently, the receiver should not load any of the package into training or evaluation until the full manifest version verifies.
How recovery fits a licensed delivery through SourceX
A SourceX delivery starts only after the company has signed an agreement fixing its scope and terms, which gives a resumed transfer an approved manifest to measure against. Because SourceX never hosts multi-terabyte sets, a big package is read from the seller's own storage or carried on encrypted drives, so during a recovery the source copy and its access controls never leave the data owner.
Companies exploring a license can start with a short company assessment; no data is uploaded at that stage.
Frequently asked questions
Is it safe to append to a partially transferred file?
Only if the tool verifies the bytes already on the receiver. rsync's manual warns that --append updates files without verifying existing content and can be dangerous, while --append-verify includes the whole file in the checksum. When in doubt, delete the partial file and resend it.
Can an expired cloud upload session be resumed?
Not on Google Cloud Storage. Its documentation says a resumable session stays active for up to a week, and after the session URI is lost or expired you start a new upload from the beginning. Plan large uploads so sessions finish well inside that window.
Do incomplete S3 multipart uploads cost anything?
Yes. AWS says you keep paying for uploaded parts until the multipart upload is completed or stopped. A lifecycle rule with the AbortIncompleteMultipartUpload action cleans them up after a set number of days.
Is rerunning the copy command enough to prove the delivery is complete?
No. A copy can skip files that merely look identical by size and time. Run a separate comparison of every file's size and digest against the manifest and keep the report as evidence.
What happens to the files sent before the source was corrected?
Treat them as superseded data. Quarantine them, delete them once the corrected version verifies, and record the deletion, because they may contain fields the correction removed.
Sources
- The rsync manual describes --partial, --partial-dir, --append (no verification of existing content) and --append-verify, and its whole-file checksum after transfer. Source
- curl's continue-at option resumes from a byte offset, and HTTP uploads using POST or PUT cannot be resumed with it. Source
- rclone check compares sizes and hashes without altering either side and can write a combined report of matching, missing and differing paths. Source
- rclone copy skips files identical by size and modification time or MD5 and does not delete destination files. Source
- RFC 9110 defines If-Range so a client with a partial copy receives only the missing range if the representation is unchanged, or the whole current representation otherwise. Source
- Cloud Storage resumable upload sessions stay active for up to a week; a lost or expired session means a new upload from the beginning. Source
- Amazon S3 bills uploaded parts until a multipart upload is completed or stopped, and the AbortIncompleteMultipartUpload lifecycle action cleans them up. Source
- Amazon S3 multipart uploads can carry full-object or composite checksums, and CRC-64/NVME, CRC-32 and CRC-32C support full-object checksums. Source
- AzCopy resumes failed or canceled jobs from the plan file and requires SAS tokens to be supplied again because it does not store them. Source
- NIST SP 800-88 Revision 2, published in 2025, sets out clear, purge and destroy as media sanitization methods. Source
See if your company qualifies
A short company assessment. No data uploads are needed.