tiup 批量下发文件命令:
tiup cluster push -h 查看用法
tiup cluster push -h
Usage:
tiup cluster push <cluster-name> <local-path> <remote-path> [flags]
Flags:
-h, --help help for push
-N, --node strings Only exec on host with specified nodes
-R, --role strings Only exec on host with specified roles
Global Flags:
-c, --concurrency int max number of parallel tasks allowed (default 5)
--format string (EXPERIMENTAL) The format of output, available values are [default, json] (default "default")
--ssh string (EXPERIMENTAL) The executor type: 'builtin', 'system', 'none'.
--ssh-timeout uint Timeout in seconds to connect host via SSH, ignored for operations that don't need an SSH connection. (default 5)
--wait-timeout uint Timeout in seconds to wait for an operation to complete, ignored for operations that don't fit. (default 120)
-y, --yes Skip all confirmations and assumes 'yes'