R. Steve McKown [Tue, 15 Jan 2013 06:38:50 +0000 (23:38 -0700)]
BackupPC_ovz: increase snapshot size
Mail server writes nearly 2GB during the backup window, so the previous
setting of 1GB for the snapshot partition is too small. Because the
vecommon partition holds pretty much all the CTs, then the cumulative
write requirements of al CT's on that node using vecommon must be taken
into account when properly sizing the snapshot volume size.
25GB seems like a reasonable number for now. That is at the moment
about 10% of the free space in the volume group.
R. Steve McKown [Fri, 12 Oct 2012 23:27:45 +0000 (17:27 -0600)]
bpcdump: allow removal of any VE backup
When looking to free space for the new backup, allow removal of older
backups for any VE, not just for the current VEID. Since the typical
use case now is to back up just a single BackupPC container, a change in
VEID is going to be due to a replacement BackupPC container, such as in
a major upgrade scenario.
If these scripts are in fact used in the future to back up multiple
BackupPC containers, additional work will be required on the script.
R. Steve McKown [Fri, 12 Oct 2012 23:24:30 +0000 (17:24 -0600)]
bpcdump: correct defect that removes all data
If when looking for space to reclaim for a new backup the ls that scans
for old backups finds nothing, the empty result ends up causing a
recursive removal of the entire contents of the destination directory
(usually a mount point for a partition on a removeable drive).
The correct behavior is to error with a message indicating not enough
space in such situations.
Adding BackupPC_verifyPool to the backuppc scripts. This was written by
another user but is not included in the standard bpc distro. It seems
quite useful.
smckown [Fri, 11 Jan 2008 00:46:58 +0000 (00:46 +0000)]
Code has now been tested for restore operation. A VE can restore to itself,
another VE or a non-VE server. Also, remove the unneeded runServer_test sub.