Revision d937cc33 share/man/onedb.1

View differences:

share/man/onedb.1
1 1
.\" generated with Ronn/v0.7.3
2 2
.\" http://github.com/rtomayko/ronn/tree/0.7.3
3 3
.
4
.TH "ONEDB" "1" "January 2013" "" "onedb(1) -- OpenNebula database migration tool"
4
.TH "ONEDB" "1" "March 2013" "" "onedb(1) -- OpenNebula database migration tool"
5 5
.
6 6
.SH "NAME"
7 7
\fBonedb\fR
......
19 19
 \-h, \-\-help                Show this message
20 20
 \-V, \-\-version             Show version and copyright information
21 21
 \-s, \-\-sqlite file         SQLite DB file
22
 \-S, \-\-server host         MySQL server hostname or IP\. Defaults to localhost
22
 \-S, \-\-server host         MySQL server hostname or IP\. Defaults to
23
                           localhost
23 24
 \-P, \-\-port port           MySQL server port\. Defaults to 3306
24 25
 \-u, \-\-username user       MySQL username
25 26
 \-p, \-\-password pass       MySQL password\. Leave unset to be prompted for it
......
30 31
.SH "COMMANDS"
31 32
.
32 33
.IP "\(bu" 4
33
backup [\fIoutput_file\fR]
34
.
35
.IP "" 4
36
.
37
.nf
38

  
39
Dumps the DB to a file specified in the argument
40
valid options: force
41
.
42
.fi
43
.
44
.IP "" 0
45

  
34
backup [\fIoutput_file\fR] Dumps the DB to a file specified in the argument valid options: force
46 35
.
47 36
.IP "\(bu" 4
48
version
49
.
50
.IP "" 4
51
.
52
.nf
53

  
54
Prints the current DB version\.
55
Use \-v flag to see also OpenNebula version
56
.
57
.fi
58
.
59
.IP "" 0
60

  
37
version Prints the current DB version\. Use \-v flag to see also OpenNebula version
61 38
.
62 39
.IP "\(bu" 4
63
history
64
.
65
.IP "" 4
66
.
67
.nf
68

  
69
Prints the upgrades history
70
.
71
.fi
72
.
73
.IP "" 0
74

  
40
history Prints the upgrades history
75 41
.
76 42
.IP "\(bu" 4
77
restore [\fIbackup_file\fR]
78
.
79
.IP "" 4
80
.
81
.nf
82

  
83
Restores the DB from a backup file\. Only restores backups generated
84
from the same backend (SQLite or MySQL)
85
valid options: force
86
.
87
.fi
88
.
89
.IP "" 0
90

  
43
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
91 44
.
92 45
.IP "\(bu" 4
93
upgrade [\fIversion\fR]
94
.
95
.IP "" 4
96
.
97
.nf
98

  
99
Upgrades the DB to the latest version
100
where <version> : DB version (e\.g\. 1, 3) to upgrade\.
101
                  By default the DB is upgraded to the latest version
102
valid options: force, backup
103
.
104
.fi
105
.
106
.IP "" 0
107

  
46
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
108 47
.
109 48
.IP "\(bu" 4
110
fsck
111
.
112
.IP "" 4
113
.
114
.nf
115

  
116
Checks the consistency of the DB, and fixes the problems found
117
valid options: force, backup
118
.
119
.fi
120
.
121
.IP "" 0
122

  
49
fsck Checks the consistency of the DB, and fixes the problems found valid options: force, backup
123 50
.
124 51
.IP "" 0
125 52
.
126 53
.SH "ARGUMENT FORMATS"
127 54
.
128 55
.IP "\(bu" 4
129
file
130
.
131
.IP "" 4
132
.
133
.nf
134

  
135
Path to a file
136
.
137
.fi
138
.
139
.IP "" 0
140

  
56
file Path to a file
141 57
.
142 58
.IP "\(bu" 4
143
range
144
.
145
.IP "" 4
146
.
147
.nf
148

  
149
List of id\'s in the form 1,8\.\.15
150
.
151
.fi
152
.
153
.IP "" 0
154

  
59
range List of id\'s in the form 1,8\.\.15
155 60
.
156 61
.IP "\(bu" 4
157
text
158
.
159
.IP "" 4
160
.
161
.nf
162

  
163
String
164
.
165
.fi
166
.
167
.IP "" 0
168

  
62
text String
169 63
.
170 64
.IP "" 0
171 65

  

Also available in: Unified diff