How to restore an sqlite db? Examples could be provided at https://docs.opennebula.org/5.4/deployment/references/onedb.html#onedb-restore
[oneadmin@frontend ~]$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[oneadmin@frontend ~]$ rpm -q opennebula
opennebula-5.4.0-1.x86_64
[oneadmin@frontend ~]$ gem list | grep sqlite
sqlite3 (1.3.11)
[oneadmin@frontend ~]$ onedb version -v --sqlite /var/lib/one/one.db
Shared tables version: 5.4.0
Timestamp: 07/21 22:48:45
Comment: OpenNebula 5.4.0 daemon bootstrap
Local tables version: 5.4.0
Timestamp: 07/21 22:48:44
Comment: OpenNebula 5.4.0 daemon bootstrap
[oneadmin@frontend ~]$ onedb backup -v --sqlite /var/lib/one/one.db /tmp/my_backup.db
Sqlite database backup stored in /tmp/my_backup.db
Use 'onedb restore' to restore the DB.
[oneadmin@frontend ~]$ file /tmp/my_backup.db
/tmp/my_backup.db: ASCII text, with very long lines, with CRLF, LF line terminators
[oneadmin@frontend ~]$ onedb restore --sqlite /tmp/my_backup.db --dbname opennebula
Command restore requires one parameter to run
## USAGE
restore <backup_file>
Restores the DB from a backup file. Only restores backups generated
from the same backend (SQLite or MySQL)
valid options: force, federated
...
[oneadmin@frontend ~]$ echo $?
255
Also: the valid options in USAGE description look obsolete.