Revision a8005e17 scripts/gnt-backup
b/scripts/gnt-backup | ||
---|---|---|
35 | 35 |
|
36 | 36 |
_VALUE_TRUE = "true" |
37 | 37 |
|
38 |
|
|
38 | 39 |
def PrintExportList(opts, args): |
39 | 40 |
"""Prints a list of all the exported system images. |
40 | 41 |
|
... | ... | |
259 | 260 |
] |
260 | 261 |
|
261 | 262 |
commands = { |
262 |
'list': (PrintExportList, ARGS_NONE,
|
|
263 |
'list': (PrintExportList, [],
|
|
263 | 264 |
[DEBUG_OPT, |
264 | 265 |
make_option("--node", dest="nodes", default=[], action="append", |
265 | 266 |
help="List only backups stored on this node" |
266 | 267 |
" (can be used multiple times)"), |
267 | 268 |
], |
268 | 269 |
"", "Lists instance exports available in the ganeti cluster"), |
269 |
'export': (ExportInstance, ARGS_ONE,
|
|
270 |
'export': (ExportInstance, [ArgInstance(min=1, max=1)],
|
|
270 | 271 |
[DEBUG_OPT, FORCE_OPT, |
271 | 272 |
make_option("-n", "--node", dest="node", help="Target node", |
272 | 273 |
metavar="<node>"), |
... | ... | |
275 | 276 |
help="Don't shutdown the instance (unsafe)"), ], |
276 | 277 |
"-n <target_node> [opts...] <name>", |
277 | 278 |
"Exports an instance to an image"), |
278 |
'import': (ImportInstance, ARGS_ONE, import_opts,
|
|
279 |
'import': (ImportInstance, [ArgInstance(min=1, max=1)], import_opts,
|
|
279 | 280 |
("[...] -t disk-type -n node[:secondary-node]" |
280 | 281 |
" <name>"), |
281 | 282 |
"Imports an instance from an exported image"), |
282 |
'remove': (RemoveExport, ARGS_ONE,
|
|
283 |
'remove': (RemoveExport, [ArgUnknown(min=1, max=1)],
|
|
283 | 284 |
[DEBUG_OPT], |
284 | 285 |
"<name>", |
285 | 286 |
"Remove exports of named instance from the filesystem."), |
286 | 287 |
} |
287 | 288 |
|
289 |
|
|
288 | 290 |
if __name__ == '__main__': |
289 | 291 |
sys.exit(GenericMain(commands)) |
Also available in: Unified diff