Automatic backup / export (and import)


#1

Hi,

I’m looking for way, how to programmatically do backup (export) of data and ideally by the same way do import (however it could be finished by “hand” too).

As far as I’m, I’m now on this state:

Automate model (done by bin/rake evm:automate:export|import DOMAIN=*, then remove static ones (ManageIQ))
Custom reports (still no luck how to)
Database backup (bin/rake evm:db:backup:local …)
Dialogs & buttons (still no luck how to)
General configuration files. (it should be just list - GUID, REGION, certs/v2_key, config/database.yml)

so… how to get those Custom reports and Dialogs & buttons by some non click-GUI way. Do some-one know?

edit: Just find bin/rake dialogs:export, so looks like reports are the only one left…
edit2: Unfortunately, on dialog export buttons are missing, so buttons and reports are still left to go.


#2

I would suggest taking a look at https://github.com/rhtconsulting/miq-ci and https://github.com/ramrexx/CloudForms_Essentials.

@ramrexx @pemcg Any advice or examples you can recommend?


#3

The Red Hat consulting scripts here: https://github.com/rhtconsulting/cfme-rhconsulting-scripts will help you do pretty much all of what you need I think. I’ve known several companies use them as part of a Jenkins CI workflow.

Regards,
pemcg


#4

Wow, it looks like exactly what I looking for. Thank you!