Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support streaming uploads #326

Closed
JustAnotherArchivist opened this issue Jan 31, 2020 · 2 comments
Closed

Support streaming uploads #326

JustAnotherArchivist opened this issue Jan 31, 2020 · 2 comments

Comments

@JustAnotherArchivist
Copy link
Contributor

It would be great if ia upload supported streaming uploads, e.g. reading from stdin or a FIFO, without using temporary files:

some-process-generating-lots-of-data | ia upload identifier -

See #77 and #173 for example use cases. A further idea is directly piping megawarc output to IA instead of writing it to disk and then re-reading it (multiple times), massively reducing disk I/O.

An implementation would, as far as I can tell, require server-side support on IA S3 for chunked transfer encoding and trailers. The former is needed to avoid having to know the size in advance, the latter for --verify and --delete by computing the MD5 hash during the upload and sending the Content-MD5 header at the end.

@TheSneakySniper
Copy link

Yeah, this would be a very useful feature.

@jjjake
Copy link
Owner

jjjake commented Jul 8, 2020

IA-S3 does not currently support streaming uploads, and there aren't any plans to as far as I know. I'm going to close the issue, but happy to revisit it if server-side support ever comes. If you have more questions about server-side support, please email info@archive.org. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants