Feature #314
Central backup of Windows VPS's
| Status: | In Progress | Start date: | 07/27/2010 | ||
|---|---|---|---|---|---|
| Priority: | Normal | Due date: | |||
| Assignee: | % 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.
History
Updated by Danny Terweij 3 months ago
- Target version set to 2.2.x
