VM Backup best practice

Hi,

I have read that opennebula offer two backup method.
I need to backup each VM (Linux, FreeBSD and Windows) running or not.

What is the best method to do this ?

Thanks,
Yannick

Hello, now I’m doing this (I think, my way isn’t “best practice” :slight_smile: )
First script are :

  1. Checking VM_STATE (POWEROFF, RUNNING, SUSPENDED)
  2. Calling onevm disk-saveas for each desired disk
  3. Waiting for transition image to rdy state
  4. Writing mapping ImageName = FileName to logfile

Second script (because my Image datastore is small):

  1. Finding backup images in datastore
  2. Checking image state for rdy
  3. Moving rdy Image to backup storage
  4. Removing image from opennebula

Hi,

Could you share scripts with us ?

Thanks,
Yannick

No problem:

  1. backup list - what we going to save (I’m going to start 2 queues, so I have 2 lists)
  2. backup_start.sh - Parent script, that work with list of backup disks vm’s (It calls from cron.d)
  3. vm_disk_dump.sh - Saves vm’s disk in image store, with *.bak name
  4. vm_disk_move.sh - Finds all *.bak images and transfer its to backup store

Here link to download

1 Like