title: OpenVZ + BackupPC
linktitle: ovzbpc
parent: TOP
ctime: 2008-06-09

Repositories: [backuppc](http://repo/gitweb/?p=backuppc.git;a=tree),
[ovz](http://repo/gitweb/?p=ovz.git;a=tree),
[esata](http://repo/gitweb/?p=esata.git;a=tree).

# TMI backup strategy

TMI hosts its compute resources in [OpenVZ](http://www.openvz.org) Virtual
Environments (VE) running on a cluster of Dell PE1800 servers.  The contents
of each VE, as well as the servers hosting them, are backed up using
[BackupPC](http://backuppc.sourceforge.net).  Periodically, a clone of the
BackupPC disk archive is made on one of a pool of external eSATA drives, which
are rotated off-site for disaster recovery.  TMI has authored a few program
scripts which integrate these backup components.

* [BackupPC_ovz](http://repo/gitweb/?p=backuppc.git;a=blob;f=README;hb=HEAD)
  allows an OpenVZ VE to be backed up and restored via BackupPC without
  special configuration of the VE, nor with BackupPC being told on which
  hardware node the VE is running.

* bpcdump and friends support cloning the BackupPC VE to a removeable eSATA
  drive for disaster recovery.  See [README.recover](http://repo/gitweb/?p=ovz.git;a=blob;f=README.recover;hb=HEAD)
  for more information.

* The [esata](http://repo/gitweb/?p=esata.git;a=tree) wraps the `scsiadd`
  utility for properly handling eSATA drives on Dell PE1800 and PE1900
  platforms.  Newer hardware and better Linux kernel support will someday make
  scripts like this unnecessary.  See the included
  [README](http://repo/gitweb/?p=esata.git;a=blob;f=README;hb=HEAD) for more
  information.
