Ismael,

----- Original Message -----
> Hi,
> I'll be running 1 VPS on each server normally.
> I'd like to be able to replicate each VPS to its backup server(s). For
> example:
> 
> • SERVER1 = VPS1 (VPS2's backup server)
> • SERVER2 = VPS2 (VPS1's backup server)
> I thought to user a modified vzmigrate script for mantain a copy of
> VPS2 (in the case of SERVER 1). If SERVER 2 fails, i can get up the
> VPS 2 quickly.
> 
> What modifications should i do in the vzmigrate?

If I understand you correctly, you'd basically like to backup a container's 
filesystem and config to a separate host node periodically so in case of a 
hardware failure, you could start up the container on the other host.

My question to you is how often do you want the backup to be done or another 
way of putting it is... how close does the backup have to be to the original in 
case of a failure?  If you are trying to make a sort of High Availability setup 
where the original and the backup are in sync as much as possible, I'd 
recommend you check out some of the HA related wiki pages.

If a once-a-day backup is all you are looking for, I'd recommend creating a 
simple script that does an rsync of the container's filesystem and config while 
it runs and then does a shutdown and a second rsync and starts it back up.

vzdump is also something you'd probably want to look at as it'll give you some 
more options.

As you can imagine there is a broad range of backup scenarios, and what you'd 
want to do would vary.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]

_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users

Reply via email to