oVirt version = 3.6.5 on CentOS 7.2
I have Data Warehouse and Reports database
Method 1:
In the Manager machine:
engine-backup --mode=backup --file=/home/cnscadmin/engine-3.6.bck --log=/home/cnscadmin/backup.log
less /home/cnscadmin/backup.log
2016-05-23 11:43:30 3585: Start of engine-backup mode backup scope all file /home/cnscadmin/engine-3.6.bck
2016-05-23 11:43:30 3585: OUTPUT: Backing up:
2016-05-23 11:43:30 3585: Generating pgpass
2016-05-23 11:43:30 3585: OUTPUT: Notifying engine
2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('files', now(), 0, 'Started', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('db', now(), 0, 'Started', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 0, 'Started', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
2016-05-23 11:43:30 3585: pg_cmd running: psql -w -U engine -h localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 0, 'Started', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
2016-05-23 11:43:30 3585: Creating temp folder /tmp/engine-backup.UwsBOUPMGT/tar
2016-05-23 11:43:30 3585: OUTPUT: - Files
2016-05-23 11:43:30 3585: Backing up files to /tmp/engine-backup.UwsBOUPMGT/tar/files
2016-05-23 11:43:30 3585: OUTPUT: - Engine database 'engine'
2016-05-23 11:43:30 3585: Backing up database to /tmp/engine-backup.UwsBOUPMGT/tar/db/engine_backup.db
2016-05-23 11:43:30 3585: pg_cmd running: pg_dump -w -U engine -h localhost -p 5432 engine -E UTF8 --disable-dollar-quoting --disable-triggers --format=custom
2016-05-23 11:43:31 3585: OUTPUT: - DWH database 'ovirt_engine_history'
2016-05-23 11:43:31 3585: Backing up dwh database to /tmp/engine-backup.UwsBOUPMGT/tar/db/dwh_backup.db
2016-05-23 11:43:31 3585: pg_cmd running: pg_dump -w -U ovirt_engine_history -h localhost -p 5432 ovirt_engine_history -E UTF8 --disable-dollar-quoting --disable-triggers --format=custom
2016-05-23 11:43:32 3585: OUTPUT: - Reports database 'ovirt_engine_reports'
2016-05-23 11:43:32 3585: Backing up reports database to /tmp/engine-backup.UwsBOUPMGT/tar/db/reports_backup.db
2016-05-23 11:43:32 3585: pg_cmd running: pg_dump -w -U ovirt_engine_reports -h localhost -p 5432 ovirt_engine_reports -E UTF8 --disable-dollar-quoting --disable-triggers --format=custom
2016-05-23 11:43:33 3585: Creating md5sum at /tmp/engine-backup.UwsBOUPMGT/tar/md5sum
2016-05-23 11:43:33 3585: OUTPUT: Packing into file '/home/cnscadmin/engine-3.6.bck'
2016-05-23 11:43:33 3585: Creating tarball /home/cnscadmin/engine-3.6.bck
2016-05-23 11:43:33 3585: OUTPUT: Notifying engine
2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('files', now(), 1, 'Finished', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('db', now(), 1, 'Finished', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('dwhdb', now(), 1, 'Finished', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
2016-05-23 11:43:33 3585: pg_cmd running: psql -w -U engine -h localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('reportsdb', now(), 1, 'Finished', '
ovirt1.cnsc.net', '/home/cnscadmin/backup.log');
2016-05-23 11:43:33 3585: OUTPUT: Done.
engine-backup --mode=restore --file=/home/cnscadmin/engine-3.6.bck --log=/home/cnscadmin/restore.log --provision-db --no-restore-permissions