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
default "weed export to current enabled store"
Chris Lu85d1d99459f7
diff --git a/weed/command/filer_export.go b/weed/command/filer_export.goindex 85259408e2..c1a5dce7ff 100644--- a/weed/command/filer_export.go+++ b/weed/command/filer_export.go@@ -32,7 +32,7 @@ var cmdFilerExport = &Command{var (// filerExportOutputFile = cmdFilerExport.Flag.String("output", "", "the output file. If empty, only list out the directory tree")- filerExportSourceStore = cmdFilerExport.Flag.String("sourceStore", "", "the source store name in filer.toml")+ filerExportSourceStore = cmdFilerExport.Flag.String("sourceStore", "", "the source store name in filer.toml, default to currently enabled store")filerExportTargetStore = cmdFilerExport.Flag.String("targetStore", "", "the target store name in filer.toml, or \"notification\" to export all files to message queue")dir = cmdFilerExport.Flag.String("dir", "/", "only process files under this directory")dirListLimit = cmdFilerExport.Flag.Int("dirListLimit", 100000, "limit directory list size")@@ -52,7 +52,7 @@ func runFilerExport(cmd *Command, args []string) bool {var sourceStore, targetStore filer2.FilerStorefor _, store := range filer2.Stores {- if store.GetName() == *filerExportSourceStore {+ if store.GetName() == *filerExportSourceStore || *filerExportSourceStore == "" && config.GetBool(store.GetName()+".enabled") {viperSub := config.Sub(store.GetName())if err := store.Initialize(viperSub); err != nil {glog.Fatalf("Failed to initialize source store for %s: %+v",