OpenVZ Forum


Home » General » Support » vzdump how to restore xdelta backup file ?
vzdump how to restore xdelta backup file ? [message #32543] Fri, 15 August 2008 03:17 Go to next message
ft.linux is currently offline  ft.linux
Messages: 6
Registered: August 2008
Junior Member
[root@openvz dump]# pwd
/vz/dump

drwxr-xr-x 2 root root 4096 Aug 15 10:46 .
drwxr-xr-x 9 root root 4096 Aug 11 16:03 ..
-rw-r--r-- 1 root root 461 Aug 15 10:46 vzdump-162.log
-rw-r--r-- 1 root root 1667942400 Aug 15 10:32 vzdump-162.tar
-rw-r--r-- 1 root root 6752 Aug 15 10:46 vzdump-162.xdelta

[root@openvz dump]# vzdump --restore /vz/dump/vzdump-162.tar 163

VEID NPROC STATUS IP_ADDR HOSTNAME
162 53 running 10.10.20.162 openvz162.com
163 35 running 10.10.20.163 openvz163.com

As subject how to restore the differential backup vzdump-162.xdelta to VE 163 ??
Re: vzdump how to restore xdelta backup file ? [message #32582 is a reply to message #32543] Mon, 18 August 2008 07:29 Go to previous messageGo to next message
ft.linux is currently offline  ft.linux
Messages: 6
Registered: August 2008
Junior Member
Sad anyone can help me ??
Re: vzdump how to restore xdelta backup file ? [message #32588 is a reply to message #32543] Mon, 18 August 2008 10:09 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

1.
vzdump --restore /vz/dump/vzdump-162.tar 163

What is it "vzdump"?

2.
Could you please describe your problem in more detail?
You have several dump files associated with VE 162, haven't you? Do you want to use dump file from 162 VE to restore VE with another number?
I think you could try to do it but you have to create two things for this purpose:
- private are for 163 VE (the same as 162 had during the vzdump-162.xdelta creation)
cp -a /vz/private/162 /vz/private/163

- config file for VE 163
cp /etc/vz/conf/162.conf /etc/vz/conf/163.conf


vzctl restore 163 --dumpfile /vz/dump/vzdump-162.xdelta
Re: vzdump how to restore xdelta backup file ? [message #32605 is a reply to message #32543] Tue, 19 August 2008 06:29 Go to previous messageGo to next message
ft.linux is currently offline  ft.linux
Messages: 6
Registered: August 2008
Junior Member
Thank you for your dedication to help, but you do not like the correct way.
VZdump in the introduction to this address can see. http://wiki.openvz.org/Backup_of_a_running_VE_with_vzdump Razz
Re: vzdump how to restore xdelta backup file ? [message #32607 is a reply to message #32605] Tue, 19 August 2008 08:49 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

yes, my bad. I've never heard about vzdump Embarassed
But as far as I understand you should do the following:

- we suppose that vzdump-162.xdelta was created as a delta between vzdump-162.tar and newer CT 162 state.
-
# cd /vz/dump
# xdelta patch vzdump-162.xdelta vzdump-162.tar vzdump-163.tar
# vzdump --restore /vz/dump/vzdump-163.tar 163
Previous Topic: problem compiling Kernel RHEL5 028stab057.2
Next Topic: Strange issue: Vsftpd
Goto Forum:
  


Current Time: Wed Oct 16 06:38:48 GMT 2024

Total time taken to generate the page: 0.05056 seconds