OpenVZ Forum


Home » Mailing lists » Users » Backups
Backups [message #10551] Wed, 21 February 2007 14:15 Go to next message
jbravo is currently offline  jbravo
Messages: 20
Registered: May 2006
Junior Member
Hi,

Im doing every night backups with rdiff-backup, im running rdiff-backup
to the directory /vz/private, then im doing backups of each VPS in the HN.

Im thinking about a disaster recovery stratregy, if the disk of my HN
crash, for example, can I just:
Re-install the same OS, install openvz, create the same VPS with the
same VID and same IP address and just restore /vz/private/VID/* it will
work?

rdiff-backup preserves subdirectories, hard links, dev files,
permissions, uid/gid ownership, and modification times

Im doing dumps of mysql and postgresql, every night. Then I can restore
the databases manually. Its not a problem

--
José David Bravo Álvarez
Gerente General
Colombia Hosting
Tel. (2) 6832660 ext. 120
Cel. (300) 6174073
Av. 4 # 48n43 Of. 301
http://www.colombiahosting.com.co
Re: Backups [message #10554 is a reply to message #10551] Wed, 21 February 2007 16:55 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

José,

don't forget to backup /vz/conf/<VEID>.conf file also.
if you do dumps of databases everything else should be quite fine.

anyway, it is better take another machine disconnected from the network and
just check that your backups do work after restore. Just to be 100% sure
in yourself.

Thanks,
Kirill

> Hi,
>
> Im doing every night backups with rdiff-backup, im running rdiff-backup
> to the directory /vz/private, then im doing backups of each VPS in the HN.
>
> Im thinking about a disaster recovery stratregy, if the disk of my HN
> crash, for example, can I just:
> Re-install the same OS, install openvz, create the same VPS with the
> same VID and same IP address and just restore /vz/private/VID/* it will
> work?
>
> rdiff-backup preserves subdirectories, hard links, dev files,
> permissions, uid/gid ownership, and modification times
>
> Im doing dumps of mysql and postgresql, every night. Then I can restore
> the databases manually. Its not a problem
>
Re: Backups [message #10555 is a reply to message #10554] Wed, 21 February 2007 17:13 Go to previous message
Mike Holloway is currently offline  Mike Holloway
Messages: 8
Registered: February 2007
Junior Member
As Kirill pointed out, be sure to also backup the veid.conf file
(mine are in /etc/sysconfig/vz-scripts) as well as the /vz/private
directories.


I use this procedure along with a heartbeat program to have one
server automatically launch a VE when it detects the primary server
is down, works great.

There is no need to re-create the VE (vzctl create) after re-
installing the os and openvz kernel, just restore the veid.conf and /
vz/private directories and then 'vzctl start veid'. The veid.conf
file you backed up already holds the previously assigned IP address
for the VE.


-mike




On Feb 21, 2007, at 11:00 AM, Kirill Korotaev wrote:

> José,
>
> don't forget to backup /vz/conf/<VEID>.conf file also.
> if you do dumps of databases everything else should be quite fine.
>
> anyway, it is better take another machine disconnected from the
> network and
> just check that your backups do work after restore. Just to be 100%
> sure
> in yourself.
>
> Thanks,
> Kirill
>
>> Hi,
>>
>> Im doing every night backups with rdiff-backup, im running rdiff-
>> backup
>> to the directory /vz/private, then im doing backups of each VPS in
>> the HN.
>>
>> Im thinking about a disaster recovery stratregy, if the disk of my HN
>> crash, for example, can I just:
>> Re-install the same OS, install openvz, create the same VPS with the
>> same VID and same IP address and just restore /vz/private/VID/* it
>> will
>> work?
>>
>> rdiff-backup preserves subdirectories, hard links, dev files,
>> permissions, uid/gid ownership, and modification times
>>
>> Im doing dumps of mysql and postgresql, every night. Then I can
>> restore
>> the databases manually. Its not a problem
>>
>
Previous Topic: Kernel 2.6.18 with OpenVZ does not support PPP Filtering?
Next Topic: I/O stall with SuSE 10 Kernel
Goto Forum:
  


Current Time: Tue Mar 19 02:17:20 GMT 2024

Total time taken to generate the page: 0.02313 seconds