1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00
one/share/scripts/backup_vms
2021-02-23 10:06:52 +01:00

10 lines
216 B
Bash
Executable File

#!/bin/bash
read -r -d '' VMS < <( onevm list --extended -x | \
/var/lib/one/remotes/datastore/xpath.rb --stdin \
%m%/VM_POOL/VM/USER_TEMPLATE/BACKUP/../../ID )
for VM in $VMS; do
onevm backup $VM
done