BackupPC-users

[BackupPC-users] [SPAM] Setting up backups

2008-11-04 13:08:14
Subject: [BackupPC-users] [SPAM] Setting up backups
From: Bradley Alexander <storm AT tux DOT org>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 4 Nov 2008 12:46:31 -0500 (EST)
Hi,

Is it possible to set up a base list of directories in the config.pl and add directories in the host-specific config file?

My scenario:

I have numerous Debian and Ubuntu boxes on which I would like to back up some Debian-specific directories, such as '/var/backups', '/var/cache/apt', '/var/lib/apt', '/var/lib/dpkg' on all boxes. Can I put these directories into the config.pl then put specific directories (such as /var/lib/mysql or /var/www) into the host-specific file? Perhaps by prepending the list in the host config with a comma?

Ideally, what I would like to see is the following (since I also have a few scattered SuSE and CentOS boxes around),

In config.pl:

$Conf{RsyncShareName} = [ '/boot', '/lib/modules', '/home', '/etc', '/var/backups', '/var/cache/apt', '/var/lib/apt', '/var/lib/dpkg', '/root', '/var/log', '/usr/local' ];

In <debian-host>.pl:

$Conf{RsyncShareName} = [  , '/var/www', '/var/lib/mediawiki1.7', '/usr/share/mediawiki1.7' ];

and in <non-debian-host>.pl:

$Conf{RsyncShareName} = [ '/boot', '/lib/modules', '/home', '/etc', '/root', '/var/log', '/usr/local', '/var/www', '/var/lib/mediawiki1.7', '/usr/share/mediawiki1.7' ];

So that the non-debian-host does not try to back up non-existent directories, since this tends to give BackupPC heartburn.

Is it possible to do something like this?

Thanks,
--b
--
========================================================================
Bradley M. Alexander                       |
IA Analyst, SysAdmin, Security Engineer    |   storm [at] tux.org
Debian/GNU Linux Developer                 |   storm [at] debian.org
Host and producer, the Armored Penguin podcast, http://www.armoredpenguin.net
========================================================================
Key fingerprints:
DSA 0x54434E65: 37F6 BCA6 621D 920C E02E  E3C8 73B2 C019 5443 4E65
RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A  C8 9C F0 93 75 A0 01 34
========================================================================
Sharks are as tough as those football fans who take their shirts off during
games in Chicago in January, only more intelligent.
                            --Dave Barry
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>
  • [BackupPC-users] [SPAM] Setting up backups, Bradley Alexander <=