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