wiki:005

Box Backup 0.05

Upgrading Configuration from 0.04 to 0.05

When upgrading from 0.04 to 0.05, you can either rename the 0.04 configuration directory, run bbackup-config again, and copy the keys and certificates to the new directory, or follow the instructions below to modify your configuration files.

Edit bbackup.conf. Change StoreFullNotifyScript to just NotifyScript, so it looks like this:

# This script is run whenever bbackupd encounters a problem which requires
# the system administrator to assist:
# 1) The store is full, and no more data can be uploaded.
# 2) Some files or directories were not readable.
# The default script emails the system administrator.

NotifyScript = /etc/box/bbackupd/NotifySysadmin.sh

This script now takes an argument which specifies what is to be reported, so you may wish to edit the script to reflect this. (An example is at the end of this page.)

Add this section:

# The limit on how much time is spent diffing files. Most files shouldn't take very long,
# but if you have really big files you can use this to limit the time spent diffing them.
# * Reduce if you are having problems with processor usage.
# * Increase if you have large files, and think the upload of changes is too large and want
#   to spend more time searching for unchanged blocks.

MaximumDiffingTime = 20

Make any changes to the notify script requried. This is an example script generated by bbackupd-config:

#!/bin/sh

SUBJECT="BACKUP PROBLEM on host boxdevel.fluffy.co.uk"
SENDTO="ben"

if [ $1 = store-full ]
then
/usr/sbin/sendmail $SENDTO <<EOM
Subject: $SUBJECT (store full)
To: $SENDTO


The store account for boxdevel.fluffy.co.uk is full.

=============================
FILES ARE NOT BEING BACKED UP
=============================

Please adjust the limits on account 45 on server localhost.

EOM
elif [ $1 = read-error ]
then
/usr/sbin/sendmail $SENDTO <<EOM
Subject: $SUBJECT (read errors)
To: $SENDTO


Errors occured reading some files or directories for backup on boxdevel.fluffy.co.uk.

===================================
THESE FILES ARE NOT BEING BACKED UP
===================================

Check the logs on boxdevel.fluffy.co.uk for the files and directories which caused
these errors, and take appropraite action.

Other files are being backed up.

EOM
else
/usr/sbin/sendmail $SENDTO <<EOM
Subject: $SUBJECT (unknown)
To: $SENDTO


The backup daemon on boxdevel.fluffy.co.uk reported an unknown error.

==========================
FILES MAY NOT BE BACKED UP
==========================

Please check the logs on boxdevel.fluffy.co.uk.

EOM
fi
Last modified 12 years ago Last modified on Nov 24, 2006, 8:06:52 AM