Revision 4a265c08 scripts/gnt-backup
b/scripts/gnt-backup | ||
---|---|---|
261 | 261 |
] |
262 | 262 |
|
263 | 263 |
commands = { |
264 |
'list': (PrintExportList, [],
|
|
264 |
'list': (PrintExportList, ARGS_NONE,
|
|
265 | 265 |
[DEBUG_OPT, |
266 | 266 |
cli_option("--node", dest="nodes", default=[], action="append", |
267 | 267 |
help="List only backups stored on this node" |
268 | 268 |
" (can be used multiple times)"), |
269 | 269 |
], |
270 | 270 |
"", "Lists instance exports available in the ganeti cluster"), |
271 |
'export': (ExportInstance, [ArgInstance(min=1, max=1)],
|
|
271 |
'export': (ExportInstance, ARGS_ONE_INSTANCE,
|
|
272 | 272 |
[DEBUG_OPT, FORCE_OPT, |
273 | 273 |
cli_option("-n", "--node", dest="node", help="Target node", |
274 | 274 |
metavar="<node>"), |
... | ... | |
277 | 277 |
help="Don't shutdown the instance (unsafe)"), ], |
278 | 278 |
"-n <target_node> [opts...] <name>", |
279 | 279 |
"Exports an instance to an image"), |
280 |
'import': (ImportInstance, [ArgInstance(min=1, max=1)], import_opts,
|
|
280 |
'import': (ImportInstance, ARGS_ONE_INSTANCE, import_opts,
|
|
281 | 281 |
("[...] -t disk-type -n node[:secondary-node]" |
282 | 282 |
" <name>"), |
283 | 283 |
"Imports an instance from an exported image"), |
Also available in: Unified diff