:: Backup / Restore OpenVZ Container

30 sec read

:: What is vzdump
Vzdump is a utility to make consistent snapshots of running OpenVZ containers (and KVM virtual machines if you are using Proxmox VE). It basically creates a tar archive of the container’s private area, which also includes the CT configuration files.
 
:: How to backup OpenVZ Container
+ backup one of VPS

vzdump --compress --suspend VEID

or

vzdump --compress --stop VEID

+ backup all of vps

vzdump --compress --suspend --all

or

vzdump --compress --stop --all

all backup files will saving on /vz/dump/, if you want save to another directory, you can add –dumpdir

vzdump --compress --dumpdir /backup --suspend --all

 

:: How to restore OpenVZ dump files

vzrestore /vz/dump/vzdump-VEID.tgz VEID

or

vzdump --restore /backup/vzdump-VEID.tgz NEW_VEID

VEID = vps id, you can see it using command vzlist
 
:: Links
+ Google
+ OpenVZ
+ HowToForge

How to fix problem with…

Facing a Git error with the 'vi' editor? Discover how to easily fix it by checking your Vim path and configuring Git to use...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

Learn how to enable MP4 streaming in Apache with the installation of the mod_h264 streaming module, making your video content accessible and efficient. Follow...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV…

Learn how to effortlessly configure Apache for FLV streaming by installing the mod_flvx module and updating your httpd.conf file. Discover the simple steps to...
Sysadmin.ID
15 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *