Created
October 17, 2013 00:17
-
-
Save timbot/7017247 to your computer and use it in GitHub Desktop.
Veta novaclient examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova backup-schedule-add test 1h 1d | |
+------------+------------------+-------------------+--------+ | |
| ID | Frequency | Retention | Active | | |
+------------+------------------+-------------------+--------+ | |
| b-s64bz49p | Every 10 minutes | For the last hour | True | | |
| b-0eseoaea | Every hour | For the last day | True | | |
+------------+------------------+-------------------+--------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova help backup-schedule-add | |
usage: nova backup-schedule-add <server> <frequency> <retention> | |
Add a backup schedule rule to this instance. | |
Positional arguments: | |
<server> ID or name of the instance | |
<frequency> Frequency with which to perform backups (e.g. 10m, 1h, 1d | |
<retention> Number of backups to retain (e.g. 1h, 1d, 1w) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova backup-schedule-delete test b-s64bz49p | |
+------------+------------+------------------+--------+ | |
| ID | Frequency | Retention | Active | | |
+------------+------------+------------------+--------+ | |
| b-0eseoaea | Every hour | For the last day | True | | |
+------------+------------+------------------+--------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova help backup-schedule-delete | |
usage: nova backup-schedule-delete <server> <schedule-id> | |
Delete a backup schedule rule and all associated backups. | |
Positional arguments: | |
<server> ID or name of the instance | |
<schedule-id> ID of schedule item to delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova backup-schedule-disable test b-0eseoaea | |
+------------+------------+------------------+--------+ | |
| ID | Frequency | Retention | Active | | |
+------------+------------+------------------+--------+ | |
| b-0eseoaea | Every hour | For the last day | False | | |
+------------+------------+------------------+--------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova help backup-schedule-disable | |
usage: nova backup-schedule-disable <server> <schedule-id> | |
Disable a backup schedule rule. | |
Positional arguments: | |
<server> ID or name of the instance | |
<schedule-id> ID of schedule item to disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova backup-schedule-enable test b-0eseoaea | |
+------------+------------+------------------+--------+ | |
| ID | Frequency | Retention | Active | | |
+------------+------------+------------------+--------+ | |
| b-0eseoaea | Every hour | For the last day | True | | |
+------------+------------+------------------+--------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova help backup-schedule-enable | |
usage: nova backup-schedule-enable <server> <schedule-id> | |
Enable a backup schedule rule. | |
Positional arguments: | |
<server> ID or name of the instance | |
<schedule-id> ID of schedule item to disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova backup-schedule-list test | |
+------------+------------------+-------------------+--------+ | |
| ID | Frequency | Retention | Active | | |
+------------+------------------+-------------------+--------+ | |
| b-s64bz49p | Every 10 minutes | For the last hour | True | | |
+------------+------------------+-------------------+--------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova help backup-schedule-list | |
usage: nova backup-schedule-list [--raw] <server> | |
List the backup schedule of this instance. | |
Positional arguments: | |
<server> ID or name of the instance | |
Optional arguments: | |
--raw Print raw backup schedules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nova help |grep backup-schedule | |
backup-schedule-add | |
backup-schedule-clear | |
backup-schedule-delete | |
backup-schedule-disable | |
backup-schedule-enable | |
backup-schedule-list | |
backup-schedule-list-backups | |
backup-schedule-update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment