mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-08 13:08:21 +09:00
F #6063: Backup Jobs for OpenNebula
Includes the following changes:
- xml-schema for Backup Job and Scheduled Actions
- GO, Java api
- Deprecate onevm update-chart, delete-chart
* The commands are replaced by sched-update and sched-delete
* Refactor method deprecate_command, it's still possible to run the
command
* Delete 'shutdown' and 'delete' commands deprecated years ago
* Fix --verbose option for sched-update and sched-delete
- Re-implementation of scheduled actions, now are managed and executed
by oned
- Backup Job objects, API, and CLI commands
This commit is contained in:
116 files changed
+8303
-2562
No files matched your search
@@ -373,4 +373,42 @@ namespace one_db
|
||||
"oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, "
|
||||
"gid INTEGER, owner_u INTEGER, group_u INTEGER, other_u INTEGER, "
|
||||
"UNIQUE(name))";
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
/* Backup Job tables */
|
||||
/* ---------------------------------------------------------------------- */
|
||||
const char * backup_job_table = "backupjob_pool";
|
||||
|
||||
const char * backup_job_db_names =
|
||||
"oid, name, body, uid, gid, owner_u, group_u, other_u, priority, outdated_vms";
|
||||
|
||||
const char * backup_job_db_bootstrap =
|
||||
"CREATE TABLE IF NOT EXISTS backupjob_pool ("
|
||||
" oid INTEGER PRIMARY KEY,"
|
||||
" name VARCHAR(128),"
|
||||
" body MEDIUMTEXT,"
|
||||
" uid INTEGER,"
|
||||
" gid INTEGER,"
|
||||
" owner_u INTEGER,"
|
||||
" group_u INTEGER,"
|
||||
" other_u INTEGER,"
|
||||
" priority INTEGER,"
|
||||
" outdated_vms INTEGER)";
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
/* Scheduled Action tables */
|
||||
/* ---------------------------------------------------------------------- */
|
||||
const char * scheduled_action_table = "schedaction_pool";
|
||||
|
||||
const char * scheduled_action_db_names =
|
||||
"oid, parent_id, type, body, time, done";
|
||||
|
||||
const char * scheduled_action_db_bootstrap =
|
||||
"CREATE TABLE IF NOT EXISTS schedaction_pool ("
|
||||
" oid INTEGER PRIMARY KEY,"
|
||||
" parent_id INTEGER,"
|
||||
" type VARCHAR(128),"
|
||||
" body MEDIUMTEXT,"
|
||||
" time INTEGER,"
|
||||
" done INTEGER)";
|
||||
}
|
||||
Reference in new issue
Block a user