1 import glob
2
3 from starcluster import exception
4 from completers import ClusterCompleter
5
6
8 """
9 get [options] <cluster_tag> [<remote_file_or_dir> ...] <local_destination>
10
11 Copy one or more files from a running cluster to your local machine
12
13 Examples:
14
15 # Copy a file or dir from the master as root
16 $ starcluster get mycluster /path/on/remote/server /local/file/or/dir
17
18 # Copy a file and a dir from the master as root
19 $ starcluster get mycluster /remote/file /remote/dir /local/dir
20
21 # Copy a file or dir from the master as normal user
22 $ starcluster get mycluster --user myuser /remote/path /local/path
23
24 # Copy a file or dir from a node (node001 in this example)
25 $ starcluster get mycluster --node node001 /remote/path /local/path
26
27 """
28 names = ['get']
29
31 parser.add_option("-u", "--user", dest="user", default=None,
32 help="Transfer files as USER ")
33 parser.add_option("-n", "--node", dest="node", default="master",
34 help="Transfer files to NODE (defaults to master)")
35
54