varun2784 / weed-fs

Automatically exported from code.google.com/p/weed-fs
0 stars 0 forks source link

export to stdout #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. weed export -dir=/tmp -volumeId=1 -o=-

What is the expected output? What do you see instead?
Dump the tar to stdout. Instead it requires that tar filename end with .tar

What version of the product are you using? On what operating system?
0.28beta

Please provide any additional information below.
I've modified the export filename (inside tar), and then back - so eventually 
the mime is a directory, than the Id, and the last is the original filename.
The mask is [mime]/[id]:[filename]

Maybe we should add a parameter for export mask?

Original issue reported on code.google.com by tgulacs...@gmail.com on 21 Jan 2013 at 12:10

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks! patched to the HEAD

It will be great to use an optional parameter for the export name format.

Original comment by chris...@gmail.com on 22 Jan 2013 at 8:27

GoogleCodeExporter commented 8 years ago
Aye, aye , Sir!

Original comment by tgulacs...@gmail.com on 22 Jan 2013 at 8:02

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks a lot! The formatting is added with some adjustment to the parameter 
name, and also adding "Key" to the format option.

Original comment by chris...@gmail.com on 22 Jan 2013 at 11:12