Revision db5a8a2d scripts/gnt-backup
b/scripts/gnt-backup | ||
---|---|---|
1 | 1 |
#!/usr/bin/python |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2010 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
136 | 136 |
SRC_DIR_OPT, |
137 | 137 |
SRC_NODE_OPT, |
138 | 138 |
SUBMIT_OPT, |
139 |
DRY_RUN_OPT, |
|
139 | 140 |
] |
140 | 141 |
|
141 | 142 |
|
... | ... | |
147 | 148 |
'export': ( |
148 | 149 |
ExportInstance, ARGS_ONE_INSTANCE, |
149 | 150 |
[FORCE_OPT, SINGLE_NODE_OPT, NOSHUTDOWN_OPT, SHUTDOWN_TIMEOUT_OPT, |
150 |
REMOVE_INSTANCE_OPT, IGNORE_REMOVE_FAILURES_OPT], |
|
151 |
REMOVE_INSTANCE_OPT, IGNORE_REMOVE_FAILURES_OPT, DRY_RUN_OPT],
|
|
151 | 152 |
"-n <target_node> [opts...] <name>", |
152 | 153 |
"Exports an instance to an image"), |
153 | 154 |
'import': ( |
... | ... | |
155 | 156 |
"[...] -t disk-type -n node[:secondary-node] <name>", |
156 | 157 |
"Imports an instance from an exported image"), |
157 | 158 |
'remove': ( |
158 |
RemoveExport, [ArgUnknown(min=1, max=1)], [], |
|
159 |
RemoveExport, [ArgUnknown(min=1, max=1)], [DRY_RUN_OPT],
|
|
159 | 160 |
"<name>", "Remove exports of named instance from the filesystem."), |
160 | 161 |
} |
161 | 162 |
|
Also available in: Unified diff