]> oss.titaniummirror.com Git - ovzbpc.git/log
ovzbpc.git
10 years agoBackupPC_ovz: report entry to more functions in debug master
R. Steve McKown [Mon, 9 Dec 2013 16:09:46 +0000 (09:09 -0700)]
BackupPC_ovz: report entry to more functions in debug

10 years agoBackupPC_ovz: add extra debug for lvremove
R. Steve McKown [Mon, 9 Dec 2013 16:09:02 +0000 (09:09 -0700)]
BackupPC_ovz: add extra debug for lvremove

To help in tracking down sporadic lvremove issue.

10 years agoBackupPC_ovz: control of debug output
R. Steve McKown [Mon, 9 Dec 2013 16:07:49 +0000 (09:07 -0700)]
BackupPC_ovz: control of debug output

Write to the debug file only if the debug file is already present at
script start.  This is a simple way to control whether debug output is
generated or not.

10 years agoBackupPC_ovz: add debug for executed commands
R. Steve McKown [Tue, 3 Dec 2013 15:39:58 +0000 (08:39 -0700)]
BackupPC_ovz: add debug for executed commands

10 years agoBackupPC_ovz: implment a ping command
R. Steve McKown [Tue, 26 Nov 2013 16:59:22 +0000 (09:59 -0700)]
BackupPC_ovz: implment a ping command

BackupPC entries for VEs can use this as their PingCmd:

/usr/bin/BackupPC_ovz ping $host $pingPath -c 1 $host

The Backup_PC_ovz script will run the command which is the text starting
with the token '$pingPath', substituting '$host' for its HN if '$host'
is found to be a VE.

10 years agoBackupPC_ovz: implement a debug output file
R. Steve McKown [Tue, 26 Nov 2013 16:58:10 +0000 (09:58 -0700)]
BackupPC_ovz: implement a debug output file

Debug is stored in the file /tmp/BackupPC_ovz.debug.  For now, selecting
debug on or off requires editing the script.  A better solution would be
to pass something in on the command line.

11 years agoDynamically find SCSIDEV
R. Steve McKown [Thu, 7 Feb 2013 23:27:47 +0000 (16:27 -0700)]
Dynamically find SCSIDEV

Working from the expected device, BASEDEV, determine the SCSI host value
by interrogating the /sys filesystem.  This prevents registration from
working, but now the device should automatically register when plugged
in (hot swap drive on a sil3132 chipset).  This allows the device to be
properly unregistered regardless of the attached scsi host.

11 years agoesata: new known state partitioned
R. Steve McKown [Tue, 29 Jan 2013 03:57:00 +0000 (20:57 -0700)]
esata: new known state partitioned

Properly determines a registered state independently of a partitioned
drive.  Before, the script simply looked for /dev/sdX2 to determine
registration state.  This would be inaccurate when a drive with no
partition table was registered.

11 years agobpcdump: capture all log output
R. Steve McKown [Fri, 18 Jan 2013 01:18:01 +0000 (18:18 -0700)]
bpcdump: capture all log output

When bpcdump starts, use a temporary file in /tmp to capture log output
from the info() and error() functions.  Then, which the correct home for
the info file is created, move the temporary file to that name and
continue along.

Prior to this commit, all of the output from info() and error() prior to
INFO being redefined were not also captured into the info file.

11 years agobpcdump: ouput end date with more description
R. Steve McKown [Fri, 18 Jan 2013 01:15:37 +0000 (18:15 -0700)]
bpcdump: ouput end date with more description

11 years agoDo not attempt to tee to $INFO if blank
R. Steve McKown [Fri, 18 Jan 2013 01:14:16 +0000 (18:14 -0700)]
Do not attempt to tee to $INFO if blank

11 years agoBackupPC_ovz: increase snapshot size
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.

11 years agoClarify how BackupPC_ovz is installed
R. Steve McKown [Tue, 15 Jan 2013 06:17:33 +0000 (23:17 -0700)]
Clarify how BackupPC_ovz is installed

11 years agoOops, mount option nouuid not supported
R. Steve McKown [Tue, 15 Jan 2013 06:14:10 +0000 (23:14 -0700)]
Oops, mount option nouuid not supported

This was recently added back in by mistake.

11 years agomake chmod 755
R. Steve McKown [Tue, 15 Jan 2013 01:53:09 +0000 (18:53 -0700)]
make chmod 755

11 years agoAdd makefile to 'build' version into scripts 0.2
R. Steve McKown [Mon, 14 Jan 2013 19:29:00 +0000 (12:29 -0700)]
Add makefile to 'build' version into scripts

11 years agobpcdump: allow removal of any VE backup
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.

11 years agobpcdump: correct defect that removes all data
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.

11 years agoAdd container conf file to dump
R. Steve McKown [Mon, 17 Sep 2012 17:08:29 +0000 (11:08 -0600)]
Add container conf file to dump

14 years agoMerge the old svn esata repo, whose history is in the esata branch.
R. Steve McKown [Wed, 16 Dec 2009 17:44:34 +0000 (10:44 -0700)]
Merge the old svn esata repo, whose history is in the esata branch.

14 years agoMerge the svn ovz repo, whose history is in the ovz branch.
R. Steve McKown [Wed, 16 Dec 2009 17:43:39 +0000 (10:43 -0700)]
Merge the svn ovz repo, whose history is in the ovz branch.

14 years agoThis script can selectively remove backups. old/backuppc
smckown [Mon, 9 Nov 2009 15:04:19 +0000 (15:04 +0000)]
This script can selectively remove backups.

Be sure no backuppc tasks run during execution of this script, and call
BackupPC_nightly afterward.

15 years ago0.1 released to sf.net/projects/backuppc-ovz backuppc-ovz-0.1
smckown [Fri, 6 Jun 2008 01:34:13 +0000 (01:34 +0000)]
0.1 released to sf.net/projects/backuppc-ovz

15 years agoDocumentation fixups
smckown [Fri, 6 Jun 2008 01:33:48 +0000 (01:33 +0000)]
Documentation fixups

16 years agoAdding BackupPC_verifyPool to the backuppc scripts. This was written by
smckown [Fri, 4 Apr 2008 19:30:24 +0000 (19:30 +0000)]
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.

16 years agoAdd SSH key notes and the tested configuration.
smckown [Thu, 24 Jan 2008 00:37:11 +0000 (00:37 +0000)]
Add SSH key notes and the tested configuration.

16 years agoClean up the README file a bit.
smckown [Thu, 24 Jan 2008 00:32:24 +0000 (00:32 +0000)]
Clean up the README file a bit.

16 years agoBackupPC_ovz now gets its list of HNs from /etc/backuppc/BackupPC_ovz.hnlist.
smckown [Fri, 11 Jan 2008 01:08:24 +0000 (01:08 +0000)]
BackupPC_ovz now gets its list of HNs from /etc/backuppc/BackupPC_ovz.hnlist.

16 years agoChange README to reflect that the 'BackupPC_ovz refresh' command needs to be
smckown [Fri, 11 Jan 2008 00:58:20 +0000 (00:58 +0000)]
Change README to reflect that the 'BackupPC_ovz refresh' command needs to be
called form both DumpPreUserCmd and RestorePreUserCmd.

16 years agoCode has now been tested for restore operation. A VE can restore to itself,
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.

16 years agoSave VE configuration files from HN on VE backup.
smckown [Thu, 10 Jan 2008 23:00:36 +0000 (23:00 +0000)]
Save VE configuration files from HN on VE backup.

16 years agoThe velist file now goes into the log subdirectory and its name is derived
smckown [Thu, 10 Jan 2008 22:59:07 +0000 (22:59 +0000)]
The velist file now goes into the log subdirectory and its name is derived
from the script's basename.

16 years agoMinor fixes to README description.
smckown [Thu, 10 Jan 2008 22:13:17 +0000 (22:13 +0000)]
Minor fixes to README description.

16 years agoFix indents to 2 spaces at a time.
smckown [Thu, 10 Jan 2008 21:19:01 +0000 (21:19 +0000)]
Fix indents to 2 spaces at a time.

16 years agoFirst check-in of the BackupPC_ovz utility and a README file. Original versions...
smckown [Thu, 10 Jan 2008 16:31:26 +0000 (16:31 +0000)]
First check-in of the BackupPC_ovz utility and a README file.  Original versions of this script were called vzxfer_bpc.

16 years agoFix a typo
smckown [Thu, 10 Jan 2008 15:16:36 +0000 (15:16 +0000)]
Fix a typo

16 years agoImport the structure for the backuppc enhancement project
smckown [Thu, 10 Jan 2008 15:15:40 +0000 (15:15 +0000)]
Import the structure for the backuppc enhancement project