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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
option to filer.copy with public volume server url
chrislu6df44d3c9521
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.goindex 4cef053fcb..e1a8999f33 100644--- a/weed/command/filer_copy.go+++ b/weed/command/filer_copy.go@@ -46,6 +46,7 @@ type CopyOptions struct {ttlSec int32checkSize *boolverbose *bool+ volumeServerAccess *string}func init() {@@ -61,6 +62,7 @@ func init() {copy.concurrentChunks = cmdFilerCopy.Flag.Int("concurrentChunks", 8, "concurrent chunk copy goroutines for each file")copy.checkSize = cmdFilerCopy.Flag.Bool("check.size", false, "copy when the target file size is different from the source file")copy.verbose = cmdFilerCopy.Flag.Bool("verbose", false, "print out details during copying")+ copy.volumeServerAccess = cmdMount.Flag.String("volumeServerAccess", "direct", "access volume servers by [direct|publicUrl|filerProxy]")}var cmdFilerCopy = &Command{@@ -580,6 +582,9 @@ func (worker *FileCopyWorker) WithFilerClient(streamingMode bool, fn func(filer_}func (worker *FileCopyWorker) AdjustedUrl(location *filer_pb.Location) string {+ if *worker.options.volumeServerAccess == "publicUrl" {+ return location.PublicUrl+ }return location.Url}