INNER CODE UNIT · Go
main
backube/volsync · diskrsync-tcp/main.go:51
func main() {
var (
sourceMode = flag.Bool("source", false, "Source mode")
targetMode = flag.Bool("target", false, "Target mode")
targetAddress = flag.String("target-address", "", "address of the server, source only")
controlFile = flag.String("control-file", "", "name and path to file to write when finished")
port = flag.Int("port", 8000, "port to listen on or connect to")
)
opts := options{}
flag.BoolVar(&opts.noCompress, "no-compress", false, "Store target as a raw file")
flag.BoolVar(&opts.verbose, "verbose", true, "Print statistics, progress, and some debug info")
zapopts := zap.Options{
Development: true,
TimeEncoder: zapcore.ISO8601TimeEncoder,
DestWriter: os.Stdout,
}