aknosis.com

webdev && sysadmin quips, tips, articles + more

Backing Up XenServer VMs via Command Line

| Comments

Quick and easy steps to backup a vm via the command line.

On your host server:

backup.sh
1
2
3
4
[root@xenhost ~]# xe vm-list
-- Note your vm's uuid here (you can use tab completion to autofill in the uuid so no need to copy entirely) --
[root@xenhost ~]# xe vm-shutdown uuid=x
[root@xenhost ~]# xe vm-export uuid=x filename=/backup/vmfile.xva

It’s that simple.

Comments