onedb(1)

onedb1

Options

 -f, --force               Forces the backup even if the DB exists
 -b, --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

Commands

•

backup [output_file]

Dumps the DB to a file specified in the argument
valid options: force
•

version

Prints the current DB version.
Use -v flag to see also OpenNebula version
•

history

Prints the upgrades history
•

restore [backup_file]

Restores the DB from a backup file. Only restores backups generated
from the same backend (SQLite or MySQL)
valid options: force
•

upgrade [version]

Upgrades the DB to the latest version
where <version> : DB version (e.g. 1, 3) to upgrade.
                  By default the DB is upgraded to the latest version
valid options: force, backup

Argument formats

•

file

Path to a file
•

range

List of id´s in the form 1,8..15
•

text

String

From opennebula 3.4.1-3.1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.