mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-21 18:03:38 +03:00
80 lines
2.8 KiB
Groff
80 lines
2.8 KiB
Groff
.\" generated with Ronn/v0.7.3
|
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
|
.
|
|
.TH "ONEDB" "1" "October 2015" "" "onedb(1) -- OpenNebula database migration tool"
|
|
.
|
|
.SH "NAME"
|
|
\fBonedb\fR \- OpenNebula database migration tool
|
|
.
|
|
.P
|
|
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\.
|
|
.
|
|
.SH "OPTIONS"
|
|
.
|
|
.nf
|
|
|
|
\-f, \-\-force Forces the backup even if the DB exists
|
|
\-b, \-\-backup file Use this file to store SQL dump
|
|
\-\-slave\-server host Slave MySQL server hostname or IP\. Defaults to
|
|
localhost
|
|
\-\-slave\-port port Slave MySQL server port\. Defaults to 3306
|
|
\-\-slave\-username user Slave MySQL username
|
|
\-\-slave\-password pass Slave MySQL password\. Leave unset to be prompted
|
|
for it
|
|
\-\-slave\-dbname dbname Slave MySQL DB name for OpenNebula
|
|
\-\-slave\-backup file Use this file to store SQL dump
|
|
\-v, \-\-verbose Verbose mode
|
|
\-h, \-\-help Show this message
|
|
\-V, \-\-version Show version and copyright information
|
|
\-s, \-\-sqlite file SQLite DB file
|
|
\-S, \-\-server host MySQL server hostname or IP\. Defaults to
|
|
localhost
|
|
\-P, \-\-port port MySQL server port\. Defaults to 3306
|
|
\-u, \-\-username user MySQL username
|
|
\-p, \-\-password pass MySQL password\. Leave unset to be prompted for it
|
|
\-d, \-\-dbname dbname MySQL DB name for OpenNebula
|
|
.
|
|
.fi
|
|
.
|
|
.SH "COMMANDS"
|
|
.
|
|
.IP "\(bu" 4
|
|
backup [\fIoutput_file\fR] Dumps the DB to a file specified in the argument valid options: force
|
|
.
|
|
.IP "\(bu" 4
|
|
version Prints the current DB version\. Use \-v flag to see also OpenNebula version
|
|
.
|
|
.IP "\(bu" 4
|
|
history Prints the upgrades history
|
|
.
|
|
.IP "\(bu" 4
|
|
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
|
|
.
|
|
.IP "\(bu" 4
|
|
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
|
|
.
|
|
.IP "\(bu" 4
|
|
fsck Checks the consistency of the DB, and fixes the problems found valid options: force, backup
|
|
.
|
|
.IP "\(bu" 4
|
|
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
|
|
.
|
|
.IP "\(bu" 4
|
|
patch \fIfile\fR Applies a database patch file valid options: backup
|
|
.
|
|
.IP "" 0
|
|
.
|
|
.SH "ARGUMENT FORMATS"
|
|
.
|
|
.IP "\(bu" 4
|
|
file Path to a file
|
|
.
|
|
.IP "\(bu" 4
|
|
range List of id\'s in the form 1,8\.\.15
|
|
.
|
|
.IP "\(bu" 4
|
|
text String
|
|
.
|
|
.IP "" 0
|
|
|