BackupPC Customizations
Some of the non standard customisations you might make to BackupPC on a global basis or per host.
Disable Regular Backups per hostEdit the hosts config.pl and add
$Conf{FullPeriod} = -1;
$Conf{EMailNotifyOldBackupDays} = 365.0;
$Conf{EMailNotifyMinDays} = 365;
-1 says no regular full backups, but still manually requested via the cgi will work.
Only notify after 365 days if a backup has not been done,
then only send additional notifications every 365 days there after.
Change the Blackout Period per host
$Conf{BlackoutPeriods} = [
{
hourBegin => 8.0,
hourEnd => 9.5,
weekDays => [1, 2, 3, 4, 5],
},
{
hourBegin => 20.5,
hourEnd => 22.5,
weekDays => [1, 2, 3, 4, 5],
},
];
Ensure Blackout periods are enforced
# Don't do backups between 8am and Midnight
# Servers should be backed up overnight
$Conf{BlackoutGoodCnt} = 0;
$Conf{BlackoutBadPingLimit} = 3;
Notify Users when Backups Start and EndYou can use....
$Conf{DumpPreUserCmd} = '/mnt/backup/conf/startbkpemail.sh $user $xferOK $host $type $client $cmdType';
$Conf{DumpPostUserCmd} = '/mnt/backup/conf/endbkpemail.sh $user $xferOK $host $type $client $cmdType';
to specify scripts to run before and after backups. Sometimes it is nice for the end user to know when a backup is running.
Download
this file and extract it into your BackupPC Conf directory. Then follow the instructions in the README.bkpemail
other Linux Related Tips...