Skip to content

Instantly share code, notes, and snippets.

@timbot
Created October 17, 2013 00:17
Show Gist options
  • Save timbot/7017247 to your computer and use it in GitHub Desktop.
Save timbot/7017247 to your computer and use it in GitHub Desktop.
Veta novaclient examples
$ 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 |
+------------+------------------+-------------------+--------+
$ 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)
$ nova backup-schedule-delete test b-s64bz49p
+------------+------------+------------------+--------+
| ID | Frequency | Retention | Active |
+------------+------------+------------------+--------+
| b-0eseoaea | Every hour | For the last day | True |
+------------+------------+------------------+--------+
$ 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
$ nova backup-schedule-disable test b-0eseoaea
+------------+------------+------------------+--------+
| ID | Frequency | Retention | Active |
+------------+------------+------------------+--------+
| b-0eseoaea | Every hour | For the last day | False |
+------------+------------+------------------+--------+
$ 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
$ nova backup-schedule-enable test b-0eseoaea
+------------+------------+------------------+--------+
| ID | Frequency | Retention | Active |
+------------+------------+------------------+--------+
| b-0eseoaea | Every hour | For the last day | True |
+------------+------------+------------------+--------+
$ 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
$ nova backup-schedule-list test
+------------+------------------+-------------------+--------+
| ID | Frequency | Retention | Active |
+------------+------------------+-------------------+--------+
| b-s64bz49p | Every 10 minutes | For the last hour | True |
+------------+------------------+-------------------+--------+
$ 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
$ 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