2
My goal is to automate VM backup tasks. I recently discovered the use of on line command Vboxmanage
and got some nice results.
However I'm puzzled with the command:
VBoxManage clonevm "name of the vm"
It works just fine creating a new folder with a VDI copy, but not a new VM by itself.
There's no new VM in the GUI and
VBoxManage list vms
does not list more VMs than before. Also, the .Virtualbox/VirtualBox.xml
remains untouched.
My final goal is a script that will:
- Stop a running VM,
- Clone it fully,
- Copy it to another media (external USB drive), and
- Restart the initial VM
I'd like the process to do it again each night and delete the older VM on maybe a 3 day cycle.