[ovirt-users] Re: restore from dump

2019-04-17 Thread misaamelia2569
I was never a truly agreeable individual, so not many individuals outside of 
family thought about my suicide endeavor. Those that did, be that as it may, 
treated me with child gloves at https://www.homeworkclock.com. 
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/FY5IUPE7P2OQ2XVH6ETK6KMAUBHY5KIT/


[ovirt-users] Re: restore from dump

2019-04-17 Thread Yedidyah Bar David
On Tue, Apr 16, 2019 at 10:10 PM Florian Rädler
 wrote:
>
> Hi,
>
>
>
> is it possible to restore an engine from dump file?

Define "restore an engine" and "dump file".

Assuming "restore an engine" means "Install a fresh OS+engine and make
it behave like an old one", and "dump file" being a pg_dump dump file,
the answer is "not easily, and not fully". You will have to do
something like:

1. Install OS+engine
2. Manually provision PG (init, create user/db, etc)
3. Restore your dump (pg_restore or psql, depending on format). Use
the user you created, not postgres, for restoring - this will have
much better chances to get permissions right
4. Run engine-setup and provide it the credentials of the database you restored

It should mostly work, and I heard about people doing that, although
didn't try this myself.

Notably, you will have to reinstall all your hosts (move to
maintenance, reinstall).

If you have also a backup of /etc, that's a different case. Then, you
can selectively restore files there before engine-setup. To see a list
of the files you should restore, check the source of the engine-backup
script - it has an internal variable called 'BACKUP_PATHS'.

Good luck and best regards,
-- 
Didi
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/235AIDT2J2M2MTJGEYPW7VP4FK4NWXCK/