BackupPC-users

Re: [BackupPC-users] Cant find how to set what is backed up!

2009-10-21 12:52:28
Subject: Re: [BackupPC-users] Cant find how to set what is backed up!
From: Holger Parplies <wbppc AT parplies DOT de>
To: Andrew Schulman <andrex AT alumni.utexas DOT net>
Date: Wed, 21 Oct 2009 18:43:59 +0200
Hi,

Andrew Schulman wrote on 2009-10-21 05:49:59 -0400 [Re: [BackupPC-users] Cant 
find how to set what is backed up!]:
> > Le mardi 20 octobre 2009 à 19:23 -0400, giorgio p a écrit :
> > > I'm trying to get backuppc configured.
> > > I thought I had done the required setup... 
> > > 
> > > In the /etc/backuppc/config.pl file I have:
> > > $Conf{XferMethod} = 'rsync';
> > > $Conf{RsyncShareName} = ['/home/storage','/home/george'];
> > > 
> > > In the /etc/backuppc/hosts file I have:
> > > localhost   0       backuppc
> > > 
> > > However when the backup runs it appears to just backup the /etc directory 
> > > which isn't even specified.
> 
> I think this last point is the clue. I you've edited config.pl as root, it
> may have become owned by root and not readable by backuppc or www-data (or
> whatever your web server user is).

actually, I doubt that.

The Debian package provides an example localhost.pl which specifies backups
of /etc. It is overriding your settings from config.pl. The whole point of a
host specific configuration file is to be able to override global settings on
a per-host basis. You should either specify your settings for localhost in
localhost.pl rather than config.pl (preferred) or leave them in config.pl and
delete localhost.pl (or at least remove the settings you don't want to
override).

> In that case, backuppc will fall back to a default config, which just backs
> up /etc.

Actually, I can't see any defaults for share names in the code, and I wouldn't
think there is any point in defaulting them. How should BackupPC guess *what*
to back up if you've failed to configure it? There's a default config.pl which
you are supposed to edit and which is extensively commented. Removing that (or
making it inaccessible to BackupPC) is always a configuration error. There's
not much good (but a lot of harm) that could come from just backing up
something that "seems to make sense" when you encounter an identifiable
misconfiguration.

> This happens to me all the time.  If you edit a file as root, some editors
> will preserve the file ownership when you save, others (emacs) will change
> it back to root.

You run emacs as root? Small tip: "sudoedit". You can use any editor you want,
and it will be run with your priviledges on a tmp file. "sudoedit" should
preserve ownership, if I'm not completely mistaken.

Regards,
Holger

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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/