:: 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 the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
sysadmin.id
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
sysadmin.id
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
sysadmin.id
15 sec read