Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

Issue 60: weed export -collection doesn't work

Chris Lubd6e1a8a70b9
diff --git a/go/weed/export.go b/go/weed/export.go
index e6644adc76..2ab197652c 100644
--- a/go/weed/export.go
+++ b/go/weed/export.go
@@ -82,6 +82,9 @@ func runExport(cmd *Command, args []string) bool {
}
fileName := strconv.Itoa(*exportVolumeId)
+ if *exportCollection!=""{
+ fileName = *exportCollection + "_" + fileName
+ }
vid := storage.VolumeId(*exportVolumeId)
indexFile, err := os.OpenFile(path.Join(*exportVolumePath, fileName+".idx"), os.O_RDONLY, 0644)
if err != nil {