Revision 064c21f8 scripts/gnt-backup
b/scripts/gnt-backup | ||
---|---|---|
210 | 210 |
|
211 | 211 |
# this is defined separately due to readability only |
212 | 212 |
import_opts = [ |
213 |
DEBUG_OPT, |
|
214 | 213 |
NODE_PLACEMENT_OPT, |
215 | 214 |
BACKEND_OPT, |
216 | 215 |
DISK_TEMPLATE_OPT, |
... | ... | |
231 | 230 |
commands = { |
232 | 231 |
'list': ( |
233 | 232 |
PrintExportList, ARGS_NONE, |
234 |
[DEBUG_OPT, NODE_LIST_OPT],
|
|
233 |
[NODE_LIST_OPT], |
|
235 | 234 |
"", "Lists instance exports available in the ganeti cluster"), |
236 | 235 |
'export': ( |
237 | 236 |
ExportInstance, ARGS_ONE_INSTANCE, |
238 |
[DEBUG_OPT, FORCE_OPT, SINGLE_NODE_OPT, NOSHUTDOWN_OPT],
|
|
237 |
[FORCE_OPT, SINGLE_NODE_OPT, NOSHUTDOWN_OPT], |
|
239 | 238 |
"-n <target_node> [opts...] <name>", |
240 | 239 |
"Exports an instance to an image"), |
241 | 240 |
'import': ( |
... | ... | |
243 | 242 |
"[...] -t disk-type -n node[:secondary-node] <name>", |
244 | 243 |
"Imports an instance from an exported image"), |
245 | 244 |
'remove': ( |
246 |
RemoveExport, [ArgUnknown(min=1, max=1)], |
|
247 |
[DEBUG_OPT], |
|
245 |
RemoveExport, [ArgUnknown(min=1, max=1)], [], |
|
248 | 246 |
"<name>", "Remove exports of named instance from the filesystem."), |
249 | 247 |
} |
250 | 248 |
|
Also available in: Unified diff