• CE Phoenix Add-Ons
  • Contact
  • CE Phoenix Add-Ons
  • Contact
home/KB/Ovirt 4.2.x Backup/Restore/Migrate

Backup Hosted Engine

625 views 1 March 31, 2018 August 24, 2018 zipadmin

It’s a good idea to know this simple backup process to make sure you hosted engine can be recovered:

engine-backup --mode=backup --file=backup1 --log=backup1.log

Ref: https://www.ovirt.org/develop/release-management/features/integration/engine-backup/

 


If you are interested in automating your engine backups, here is what I do:

 

On Your Engine VM

  • vi /etc/fstab
    192.168.1.50:/some/path/to/your/nfs/share /mnt/backups nfs rw,async,hard,intr,noexec 0 0
  • mkdir /mnt/backups
  • mount /mnt/backups
  • mkdir /mnt/backups/engine
  • vi /root/backup_my_engine.sh
    • #!/bin/bash
      
      #required for cronjob
      DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
      cd $DIR
      
      export TERM=xterm
      
      BUDATE=$(date +%Y-%m-%d-%H%M%S)
      
      engine-backup --mode=backup --scope=all --file="engine-backup${BUDATE}.bak" --log="engine-backup${BUDATE}.log"
      
      cp /root/engine-backup${BUDATE}* /mnt/backups/engine/
      rm /root/engine-backup${BUDATE}*

  • chmod 700 /root/backup_my_engine.sh
  • vi /etc/crontab
    1 1 * * * root /root/backup_my_engine.sh > /dev/null 2>&1

     

    That should do it. Now each day at 1:01 AM, your Engine will backup to your NFS with a date stamped backup/log file.

Was this helpful?

1 Yes  No
Related Articles
  • oVirt 4.2.x Backup/Restore Solution
  • Migrate Citrix 7.2 Xen VM to oVIRT 4.2 VM (vhd to qcow2)
  • Migrate Citrix 7.2 Xen VM to oVIRT 4.2 VM (clonezilla)
  • Citrix Xen Server Migrate to oVirt
Ovirt 4.2.x Backup/Restore/Migrate
  • Backup Hosted Engine
  • oVirt 4.2.x Backup/Restore Solution
  • Migrate Citrix 7.2 Xen VM to oVIRT 4.2 VM (vhd to qcow2)
  • Migrate Citrix 7.2 Xen VM to oVIRT 4.2 VM (clonezilla)
  • Citrix Xen Server Migrate to oVirt
Recent Docs

    I am working on writing some docs on how to modify CE Phoenix.

    Let me know if you have any requests.


    Also keep in mind these docs are currently being written,
    so try not to be too critical over omissions.

    • Contact Info
    • Copyright Intricate Networks Inc.