Create ftp account in the Backup server (You will need the login credentials of FTP account while configuring backup in solusvm)
*Note Make sure port 21 is open in backup-server.
Login to solusVM
Admin control-panel >> Nodes >> List >> Manage Node (On the Node you wish to backup) >> Auto FTP Backup
Under FTP Server Settings
Profile —-(Make it default)
IP or Hostname—-backup-server.com (FTP server ip or hostname)
Username—-(FTP user name)
Password—-(FTP user password)
Port—-(port 21)
Passive—-(Enable)
Directory—-(/ is default)
IP or Hostname—-backup-server.com (FTP server ip or hostname)
Username—-(FTP user name)
Password—-(FTP user password)
Port—-(port 21)
Passive—-(Enable)
Directory—-(/ is default)
Under Backup Settings
Enabled—-(Enable)
Frequency—-( Run the backup every day, week or month)
Run Time—-(00-23 hours, 00-59 mins)
Day—-(Only required for weekly)
Day of Month—-(Only required for monthly)
Rotation—-(Value=1)
Ionice Priority—-(Value=0)
Ionice Class—-(Value=0)
Nice—-(Value=19)
Xen HVM/KVM Compression Type—- (bzip2)
pbzip2 Threads (Xen/KVM)—-(Value=1)
OpenVZ Backup Type—-(Online)
KVM/Xen Backup Type—-(Online)
OpenVZ Temp Directory—-(/vz/dump)
KVM/Xen Temp Directory—-(/tmp)
Exclude VPS—-(CTRL + Click to select multiple)
Frequency—-( Run the backup every day, week or month)
Run Time—-(00-23 hours, 00-59 mins)
Day—-(Only required for weekly)
Day of Month—-(Only required for monthly)
Rotation—-(Value=1)
Ionice Priority—-(Value=0)
Ionice Class—-(Value=0)
Nice—-(Value=19)
Xen HVM/KVM Compression Type—- (bzip2)
pbzip2 Threads (Xen/KVM)—-(Value=1)
OpenVZ Backup Type—-(Online)
KVM/Xen Backup Type—-(Online)
OpenVZ Temp Directory—-(/vz/dump)
KVM/Xen Temp Directory—-(/tmp)
Exclude VPS—-(CTRL + Click to select multiple)
Then click “update”
Restoring container through backup
Migrate backup file from backup server to hardware node.
User the command to restore backup.
/usr/sbin/vzdump –restore /path/to/backup/file NEW-CONTAINER-ID
make sure the new-container-id assigned does not belong to any other existing container.
Start the Container
vzctl start NEW-CONTAINER-ID
*Note you can also see the logs of current proceeding of backup process in the solusVM by following the steps belowAdmin control-panel >> Nodes > List > Manage Node (On the Node you wish to backup) > Auto FTP Backup.
At the bottom of the page you can see the live logs.
5 comments:
Simple and detailed ..... :-)
Thanx Monty ...... :)
Hi is there is any way have incremental backup for openVZ
Hi martin,
SolusVM doesn't provide incremental backup via auto ftp but if you have very huge data like in tera byte and cant afford daily backup, you can create a shell script which will create the incremental data for you below are the directories required for a container to work.
What you can do is create a script to take backup of these files use delete option with rsync for incrimental.
***Note 10693 is the Container-ID of the VPS server whose backup you want to have.
/vz/private/10693/ This is the directory which contains all the files of a VPS container.
/etc/sysconfig/vz-scripts/10693.conf It is the configuration file of the VPS it contains details about the package assigned ram and hard disk assigned.
/var/lib/vzctl/veip/10693 This file contains the main server IP of the VPS container.
If you have a lot of containers take backup of below.
/vz/private/
/etc/sysconfig/vz-scripts/
/var/lib/vzctl/veip/
Now you have all the files required for a container to work for restoration method will be below.
test case for container having id 10693
copy below data from above folders to below locations.
/vz/private/10693
/etc/sysconfig/vz-scripts/10693.conf
/var/lib/vzctl/veip/10693
now data is readu just mount the server and start it.
vzctl mount 10693
vzctl start 10693
your server will be working now to make it visible in control panel you have import it use below steps to import it.
To enable Import Mode from the admincp go to Configuration » Settings » Other and tick Import Mode. Please note that enabling Import Mode will disable the admin API
1 Select Virtual Servers » Add Virtual Server
2 Select OpenVZ
3 Select the Node & Plan then click Continue
4 Enter the container id of the virtual server you want to import (as show under vzlist -a on the host node) in the Container ID field
5 Fill in the rest of the fields
6 Click the Create Virtual Server button
7 Add any extras ip's etc.. to the virtual server
This is an unofficial tested method.
Thanx Ronak for the help It was such a detailed description and had everything in it.
i tested it and it really worked fine and the idea to do it via script was really good You Techno indians rock as always :)
Post a Comment
Do Write about the Blog and Welcome to the world where open source is every thing :-)