Feature #314

Central backup of Windows VPS's

Added by Lars Nordseth over 1 year ago. Updated 3 months ago.

Status:In Progress Start date:07/27/2010
Priority:Normal Due date:
Assignee:Lars Nordseth % Done:

50%

Category:- Spent time: -
Target version:2.2.x
Affected version : Resolution:

Description

Files:
/usr/local/lxlabs/hypervm/bin/vpsbackup
/usr/local/lxlabs/hypervm/httpdocs/lib/vps/driver/vps__xenlib.php

Changed/new functions:
vpsbackup.php, changed: backup_one_vps
vpsbackup.php, new: run_ntfsclone
vps__xenllib.php, changed: do_backup
vps__xenllib.php, changed: do_backup_cleanup

It is testet on production servers in a master/slave setup and it works, but needs better logging and more checking of return values from shell commands.

The result is placed in <backuproot>/<vpsname>/daily.0:
<vpsname>.mbr - Master boot record
<vpsname>.part<1-n>.gz - NTFS partitions (usually one)

Disk space requirement on the backup server:
Used blocks x gzip compression ratio x backup_num

Example: Windows VPS, 100GB LVM, 37GB used, backup size 20GB

There is no need for temporary storage on the slave server.

vpsbackup.php (8.5 kB) Lars Nordseth, 07/27/2010 01:58 am

vps__xenlib.php (48.6 kB) Lars Nordseth, 07/27/2010 01:58 am

History

Updated by Danny Terweij 3 months ago

  • Target version set to 2.2.x

Also available in: Atom PDF