Revision f5c0c206

b/lib/client/gnt_backup.py
80 80
                              remove_instance=opts.remove_instance,
81 81
                              ignore_remove_failures=ignore_remove_failures)
82 82

  
83
  SubmitOpCode(op, opts=opts)
83
  SubmitOrSend(op, opts)
84 84
  return 0
85 85

  
86 86

  
......
106 106
  """
107 107
  op = opcodes.OpBackupRemove(instance_name=args[0])
108 108

  
109
  SubmitOpCode(op, opts=opts)
109
  SubmitOrSend(op, opts)
110 110
  return 0
111 111

  
112 112

  
......
128 128
    ExportInstance, ARGS_ONE_INSTANCE,
129 129
    [FORCE_OPT, SINGLE_NODE_OPT, NOSHUTDOWN_OPT, SHUTDOWN_TIMEOUT_OPT,
130 130
     REMOVE_INSTANCE_OPT, IGNORE_REMOVE_FAILURES_OPT, DRY_RUN_OPT,
131
     PRIORITY_OPT],
131
     PRIORITY_OPT, SUBMIT_OPT],
132 132
    "-n <target_node> [opts...] <name>",
133 133
    "Exports an instance to an image"),
134 134
  "import": (
......
136 136
    "[...] -t disk-type -n node[:secondary-node] <name>",
137 137
    "Imports an instance from an exported image"),
138 138
  "remove": (
139
    RemoveExport, [ArgUnknown(min=1, max=1)], [DRY_RUN_OPT, PRIORITY_OPT],
139
    RemoveExport, [ArgUnknown(min=1, max=1)],
140
    [DRY_RUN_OPT, PRIORITY_OPT, SUBMIT_OPT],
140 141
    "<name>", "Remove exports of named instance from the filesystem."),
141 142
  }
142 143

  
b/man/gnt-backup.rst
24 24
EXPORT
25 25
~~~~~~
26 26

  
27
**export** {-n *node*} [\--shutdown-timeout=*N*] [\--noshutdown]
28
[\--remove-instance] [\--ignore-remove-failures] {*instance*}
27
| **export** {-n *node*} [\--shutdown-timeout=*N*] [\--noshutdown]
28
| [\--remove-instance] [\--ignore-remove-failures] [\--submit]
29
| {*instance*}
29 30

  
30 31
Exports an instance to the target node. All the instance data and
31 32
its configuration will be exported under the
......
53 54
that for any non-zero exit code, the backup is considered invalid,
54 55
and retried.
55 56

  
57
See **ganeti(7)** for a description of ``--submit`` and other common
58
options.
59

  
56 60
Example::
57 61

  
58 62
    # gnt-backup export -n node1.example.com instance3.example.com
......
71 75
| [-t [diskless | plain | drbd | file]]
72 76
| [\--identify-defaults]
73 77
| [\--ignore-ipolicy]
78
| [\--submit]
74 79
| {*instance*}
75 80

  
76 81
Imports a new instance from an export residing on *source-node* in
......
205 210
affect the hypervisor, backend and NIC parameters, both read from
206 211
the export file and passed in via the command line.
207 212

  
213
See **ganeti(7)** for a description of ``--submit`` and other common
214
options.
215

  
208 216
Example for identical instance import::
209 217

  
210 218
    # gnt-backup import -n node1.example.com instance3.example.com

Also available in: Unified diff