Statistics
| Branch: | Tag: | Revision:

one / share / man / onedb.1 @ f3d57119

History | View | Annotate | Download (2.8 KB)

1
.\" generated with Ronn/v0.7.3
2
.\" http://github.com/rtomayko/ronn/tree/0.7.3
3
.
4
.TH "ONEDB" "1" "August 2015" "" "onedb(1) -- OpenNebula database migration tool"
5
.
6
.SH "NAME"
7
\fBonedb\fR \- OpenNebula database migration tool
8
.
9
.P
10
This command enables the user to manage the OpenNebula database\. It provides information about the DB version, means to upgrade it to the latest version, and backup tools\.
11
.
12
.SH "OPTIONS"
13
.
14
.nf
15

    
16
 \-f, \-\-force               Forces the backup even if the DB exists
17
 \-b, \-\-backup file         Use this file to store SQL dump
18
 \-\-slave\-server host       Slave MySQL server hostname or IP\. Defaults to
19
                           localhost
20
 \-\-slave\-port port         Slave MySQL server port\. Defaults to 3306
21
 \-\-slave\-username user     Slave MySQL username
22
 \-\-slave\-password pass     Slave MySQL password\. Leave unset to be prompted
23
                           for it
24
 \-\-slave\-dbname dbname     Slave MySQL DB name for OpenNebula
25
 \-\-slave\-backup file       Use this file to store SQL dump
26
 \-v, \-\-verbose             Verbose mode
27
 \-h, \-\-help                Show this message
28
 \-V, \-\-version             Show version and copyright information
29
 \-s, \-\-sqlite file         SQLite DB file
30
 \-S, \-\-server host         MySQL server hostname or IP\. Defaults to
31
                           localhost
32
 \-P, \-\-port port           MySQL server port\. Defaults to 3306
33
 \-u, \-\-username user       MySQL username
34
 \-p, \-\-password pass       MySQL password\. Leave unset to be prompted for it
35
 \-d, \-\-dbname dbname       MySQL DB name for OpenNebula
36
.
37
.fi
38
.
39
.SH "COMMANDS"
40
.
41
.IP "\(bu" 4
42
backup [\fIoutput_file\fR] Dumps the DB to a file specified in the argument valid options: force
43
.
44
.IP "\(bu" 4
45
version Prints the current DB version\. Use \-v flag to see also OpenNebula version
46
.
47
.IP "\(bu" 4
48
history Prints the upgrades history
49
.
50
.IP "\(bu" 4
51
restore [\fIbackup_file\fR] Restores the DB from a backup file\. Only restores backups generated from the same backend (SQLite or MySQL) valid options: force
52
.
53
.IP "\(bu" 4
54
upgrade [\fIversion\fR] Upgrades the DB to the latest version where \fIversion\fR : DB version (e\.g\. 1, 3) to upgrade\. By default the DB is upgraded to the latest version valid options: force, backup
55
.
56
.IP "\(bu" 4
57
fsck Checks the consistency of the DB, and fixes the problems found valid options: force, backup
58
.
59
.IP "\(bu" 4
60
import\-slave Imports an existing federation slave into the federation master database valid options: force, backup, slave\-server, slave\-port, slave\-username, slave\-password, slave\-dbname, slave\-backup
61
.
62
.IP "\(bu" 4
63
patch \fIfile\fR Applies a database patch file valid options: backup
64
.
65
.IP "" 0
66
.
67
.SH "ARGUMENT FORMATS"
68
.
69
.IP "\(bu" 4
70
file Path to a file
71
.
72
.IP "\(bu" 4
73
range List of id\'s in the form 1,8\.\.15
74
.
75
.IP "\(bu" 4
76
text String
77
.
78
.IP "" 0
79