<commit_before>---
title: Ovirt-engine-backup
category: feature
authors: bobdrad, bproffitt, didi, emesika, mlipchuk, oschreib
wiki_category: Feature
wiki_title: Ovirt-engine-backup
wiki_revision_count: 16
wiki_last_updated: 2015-05-06
wiki_warnings: references, table-style
---

# Ovirt-engine-backup

## Ovirt backup and restore utility

### Summary

A simple utility to create and restore a complete ovirt-engine environment.

### Owner

*   Name: [<NAME>](User:oschreib)
*   Email: <<EMAIL>>

### Current status

*   Last updated: ,

#### Phase

In design

#### Features

| Feature | Existing implementation | Otopi implementation | Owner                                       | Priority | Target date |
|---------|-------------------------|----------------------|---------------------------------------------|----------|-------------|
| TBD     | Done                    | Not implemented      |                                             |          |             |
| TBD     | Done                    | Done [1]             | [ <NAME>](User:Oschreib) |          |             |

<references>
[2]

</references>
### Detailed Description

Scripting language: BASH Backup logic:

      * Create Temporary directory
      * Copy configuration files into temp directory
         1. /etc/ovirt-engine/  (ovirt engine configuration)
         2. /etc/sysconfig/ovirt-engine (ovirt engine configuration)
         3. /etc/exports.d  (NFS export created on setup)
         4. /etc/pki/ovirt-engine (ovirt-engine keys)
         5. Firewall
         6. Other
       * Create tar file from that directory
       * Create database backup using pgdump (database configuration should be read from /etc and written into temporary .pgpass file)

Restore: Phase one (BASH) 1. Request user to run engine-setup 2. Override DB and PKI directories

Phase two (??) 1. Gather all needed information from the backup 2. Run otopi based ovirt-engine-setup with special parameters (use pgdump, don't create new PKI)

### Benefit to oVirt

*   Easy to use backup utility
*   Easy restore of existing environments.<commit_msg>Updated Ovirt-engine-backup<commit_after>---
title: Ovirt-engine-backup
category: feature
authors: bobdrad, bproffitt, didi, emesika, mlipchuk, oschreib
wiki_category: Feature
wiki_title: Ovirt-engine-backup
wiki_revision_count: 16
wiki_last_updated: 2015-05-06
wiki_warnings: references, table-style
---

# Ovirt-engine-backup

## Ovirt backup and restore utility

### Summary

A simple utility to create and restore a complete ovirt-engine environment.

### Owner

*   Name: [<NAME>](User:oschreib)
*   Email: <<EMAIL>>

### Current status

*   Last updated: ,

#### Phase

In design

#### Features

| Feature | Existing implementation | Otopi implementation | Owner                                       | Priority | Target date |
|---------|-------------------------|----------------------|---------------------------------------------|----------|-------------|
| TBD     | Done                    | Not implemented      |                                             |          |             |
| TBD     | Done                    | Done [1]             | [ Ofer Schreiber](User:Oschreib) |          |             |

<references>
[2]

</references>
### Detailed Description

Scripting language: BASH Backup logic:

      * Create Temporary directory
      * Copy configuration files into temp directory
         1. /etc/ovirt-engine/  (ovirt engine configuration)
         2. /etc/sysconfig/ovirt-engine (ovirt engine configuration)
         3. /etc/exports.d  (NFS export created on setup)
         4. /etc/pki/ovirt-engine (ovirt-engine keys)
         5. Firewall
         6. Other
       * Create tar file from that directory
       * Create database backup using pgdump (database configuration should be read from /etc and written into temporary .pgpass file)

Restore: Phase one (BASH)

      1. Request user to run engine-setup
      2. Override DB and PKI directories

Phase two (??)

      1. Gather all needed information from the backup
      2. Run otopi based ovirt-engine-setup with special parameters (use pgdump, don't create new PKI)

### Benefit to oVirt

*   Easy to use backup utility
*   Easy restore of existing environments.
{'fraction_non_alphanumeric': 0.14447058823529413, 'fraction_numerical': 0.010352941176470589, 'mean_word_length': 1.9337474120082816, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5984419', 'n_tokens_mistral': 1352, 'n_tokens_neox': 1283, 'n_words': 387}