Paul Mantz wrote:
> On Mon, May 11, 2009 at 11:46 AM, Daniel Berteaud
> <daniel AT firewall-services DOT com> wrote:
>> Instead of modifying the package, you can simply create some symlinks so
>> the logs and configuration are stored on the data disk:
>> Before installing the rpm (and after having mounted the dedicated
>> partition in /var/lib/BackupPC), just do:
>>
>> mkdir -p /var/lib/BackupPC/{etc,log}
>> ln -s /var/lib/BackupPC/etc /etc/BackupPC
>> ln -s /var/lib/BackupPC/log /var/log/BackupPC
>>
>> I do this on a lot of servers so I can simply take the disk off one
>> server, and plug into another, and the data+config are immediately
>> available.
>> I don't use this rpm but the one in the EPEL repo on Centos 4 based
>> system (SME Server). I think it'll work the same way with this one.
>>
>
> I haven't looked at the EPEL repo, but I can't imagine that they're
> doing anything radically different from us.
>
> I think this option is the best approach if you would like to have all
> your BackupPC files contained in one location, but it isn't
> LSB-compliant.
I believe there are other examples of rpm-packaged programs that just
put the symlink under /etc for LSB compatibility with the actual files
elsewhere. But it can be surprising if you expect a backup of /etc to
have all of the machine configuration without following symlinks.
--
Les Mikesell
lesmikesell AT gmail DOT com
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
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/
|