package shell import ( "flag" "fmt" "io" "os" "sync" "sync/atomic" "time" "github.com/golang/protobuf/proto" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "github.com/chrislusf/seaweedfs/weed/util" ) func init() { Commands = append(Commands, &commandFsMetaSave{}) } type commandFsMetaSave struct { } func (c *commandFsMetaSave) Name() string { return "fs.meta.save" } func (c *commandFsMetaSave) Help() string { return `save all directory and file meta data to a local file for metadata backup. fs.meta.save / # save from the root fs.meta.save -v -o t.meta / # save from the root, output to t.meta file. fs.meta.save /path/to/save # save from the directory /path/to/save fs.meta.save . # save from current directory fs.meta.save # save from current directory The meta data will be saved into a local --