Export to GitHub

weed-fs - issue #14

export to stdout


Posted on Jan 21, 2013 by Quick Horse

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?

Attachments

Comment #1

Posted on Jan 22, 2013 by Grumpy Cat

Thanks! patched to the HEAD

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

Comment #2

Posted on Jan 22, 2013 by Quick Horse

Aye, aye , Sir!

Attachments

Comment #3

Posted on Jan 22, 2013 by Grumpy Cat

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

Status: Fixed

Labels:
Type-Defect Priority-Medium