Retry an interrupted SFTP transfer

Recover an interrupted SFTP transfer by resuming only an unchanged download, restarting uploads from byte zero, and verifying complete bytes.

Last reviewed

Download recovery and upload recovery are different on the current SFTP gateway. Reads accept offsets, so a client can resume an unchanged remote download. Write handles start empty and are committed only at CLOSE; the server does not reload an existing prefix, so upload Resume, Append, reput, and put -a can produce missing-prefix bytes and must not be used.

Four-step workflow for classifying an interrupted transfer, resuming only an unchanged download, restarting an incomplete upload, and verifying the CLOSE result and bytes.
Four-step workflow for classifying an interrupted transfer, resuming only an unchanged download, restarting an incomplete upload, and verifying the CLOSE result and bytes. Open full-size screenshot.

An interrupted upload that never reached a successful CLOSE normally leaves no committed remote file. If the client lost the response after the commit, a complete file or new version may already exist; inspect Dosya before replaying to avoid an unnecessary replacement.

Steps

  1. Record whether the failed operation was upload or download, the source and destination paths, the last client message, and the sizes currently visible on both sides. Do not press a generic Resume button yet.
  2. For a download, confirm the remote name, byte size, and version have not changed since the partial local copy began. If any value changed, delete or quarantine the partial local file and restart from byte zero.
  3. Resume an unchanged download with the client’s offset-read feature, then compare the final size and a local checksum with a trusted source. Dosya serves large reads from a bounded range cache once the file is at least 64 MiB.
  4. For an upload, inspect the target folder in Dosya Files and relist it over SFTP. Keep any already complete destination; otherwise restart the entire local file from offset zero under a unique temporary name.
  5. Wait for the restarted upload’s final CLOSE response, then compare name and size in the remote listing and download it back for a checksum check. Only after verification should you replace or remove another copy.
  6. If the retry returns API 429, honor the reported backoff; if CLOSE is ambiguous after a network or 5xx error, inspect the destination again before another write. Preserve both files when their contents differ.
Dosya SFTP overview with the Transfer card showing put and get, the two directions classified before recovery.
Dosya SFTP overview with the Transfer card showing put and get, the two directions classified before recovery. Open full-size screenshot.

A complete upload to an existing name follows Dosya’s versioned write path and can replace current bytes while retaining a prior version under retention rules. Restarting to a new name avoids changing the existing file’s current bytes until verification is complete. Empty uploads are not committed by the current gateway.

The deployed upload ceiling is 352 MiB, and workspace policy, remaining storage, role limits, or credential limits can refuse a smaller file. A failure above the active cap requires another supported upload path rather than offset tricks.

Expected result

An unchanged download resumes to a complete verified local file, or an upload restarts from byte zero and commits exactly one verified remote copy. No partial prefix is treated as a valid Dosya upload.

Was this helpful?

Loading helpfulness results…

Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.

Questions and replies

Ask about the steps in this guide. Questions are reviewed before publication.

Keep account details, credentials and private files out of public questions. Use private support for those.

Loading questions…

    Sign in to your Dosya account to ask a question.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.