Re: [BackupPC-users] Per PC config files issue

2006-12-13 Thread Craig Barratt
Holger writes:

> > $Conf{ConfDir} = '/etc/BackupPC';
> 
> in the main config.pl probably means the config files will be put somewhere
> beneath there - I take it from Lorentz Hinrichsens message in the same
> thread that the actual location is "/etc/BackupPC/pc/$host.pl" (substitute
> the hostname for $host).

Right.

> > For what it's worth, I started with 2.1.2pl2 stable and had per-machine 
> > configs for each machine working fine.  When I installed the 3.0.0beta3 
> > as an upgrade OVER the existing install, it worked fine.  Maybe there's 
> > something different about the install script that differs between 
> > upgrade and a fresh install?
> 
> As I understand it, the whole point of the $Conf{ConfDir} configuration
> variable is to let you choose where your configuration will be kept. FHS
> wants it below /etc, BackupPC 2.x.x kept it below $Conf{TopDir} (except
> there was no $Conf{TopDir} in 2.x.x ;-), which has the advantage of being
> "near" the pool, i.e. possibly on a separate hard disk. I believe, the
> install script leaves existing configuration files where they are by
> adjusting $Conf{ConfDir}. For new installations, BackupPC follows FHS and
> puts them below /etc/BackupPC, setting $Conf{ConfDir} accordingly.

Right.

In BackupPC 2.x the TopDir was hardcoded by configure.pl in
lib/BackupPC/Lib.pm so that BackupPC knew where to find the
config file (and all the pool and PC backup files, since they
were all in the same place).

In BackupPC 3.0.0, the FHS setting and the ConfigDir is hardcoded in
lib/BackupPC/Lib.pm. That's necessary so BackupPC knows where to find
the config file.  In non-FHS mode all the paths are hardcoded as
before.  BackupPC reads the config file and grabs the other directory
paths out of the config file.

So to change the config file location in 3.0.0 you have to edit both
the config file and lib/BackupPC/Lib.pm.

Craig

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Per PC config files issue

2006-12-12 Thread Craig Barratt
doc writes:

> I am using BackupPC version 3.0.0beta3.
> I am saving machines with different OS.
> I am used to BackupPC version 2 which works perfectly. I drop a config.pl in
> the .../pc// dir and no problem.
> But with this latest "beta" version it seems like the file config.pl is not
> being read. I modify it through vi and see no difference in the command
> executed. When I attempt to modify it through the cgi interface, the changes
> made on the screen do not appear in my config.pl file.
> Is this there something that I am missing.

This question is coming up more frequently.

BackupPC 3.0.0 supports two directory layouts:

  - FHS (file system hierarchy standard).  By default config files
go below /etc/BackupPC, log files below /var/log/BackupPC, etc.
This is the default for new installations.

  - non-FHS: same as BackupPC 2.x: config files go below the data
directory.  This is the default for upgrades from 2.x.

So if you do a fresh install of BackupPC 3.0.0 the config files will
default to /etc/BackupPC.  If you upgrade then all the original
locations will be used as is.

The configure.pl script accepts a --no-fhs option if you want to do
a new install using the older 2.x conventions:

--fhs   Use locations specified by the Filesystem Hierarchy Standard for
installing BackupPC. This is enabled by default for new
installations. To use the pre-3.0 installation locations, specify
--no-fhs.

configure.pl does *not* automatically copy config files from the old
locations to the new ones.  So if you have BackupPC 2.x and you want
to use FHS for 3.0.0, you will need to treat it as a new install and
merge (don't copy, since you 3.0.0 comes with several new settings!)
the old config file at /etc/BackupPC/config.pl and copy the per-client
config files to /etc/BackupPC/pc/HOST.pl

Craig

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Per PC config files issue

2006-12-12 Thread Holger Parplies
Hi,

Jason Hughes wrote:
> JW Smythe wrote:
> >   Ahhh, so I'm not crazy. :)
> >
> >   I posted the same thing a few days ago.

and I replied off-list that setting 

> $Conf{ConfDir} = '/etc/BackupPC';

in the main config.pl probably means the config files will be put somewhere
beneath there - I take it from Lorentz Hinrichsens message in the same
thread that the actual location is "/etc/BackupPC/pc/$host.pl" (substitute
the hostname for $host).

> For what it's worth, I started with 2.1.2pl2 stable and had per-machine 
> configs for each machine working fine.  When I installed the 3.0.0beta3 
> as an upgrade OVER the existing install, it worked fine.  Maybe there's 
> something different about the install script that differs between 
> upgrade and a fresh install?

As I understand it, the whole point of the $Conf{ConfDir} configuration
variable is to let you choose where your configuration will be kept. FHS
wants it below /etc, BackupPC 2.x.x kept it below $Conf{TopDir} (except
there was no $Conf{TopDir} in 2.x.x ;-), which has the advantage of being
"near" the pool, i.e. possibly on a separate hard disk. I believe, the
install script leaves existing configuration files where they are by
adjusting $Conf{ConfDir}. For new installations, BackupPC follows FHS and
puts them below /etc/BackupPC, setting $Conf{ConfDir} accordingly.

Please note that I am mainly guessing from what I've read on this list,
because I don't have a BackupPC 3.0.0 installation yet where I could check.
Please correct me if I'm wrong.


So, regarding "doc Hyde"s problem:
> But with this latest "beta" version it seems like the file config.pl is not
> being read. I modify it through vi and see no difference in the command
> executed. When I attempt to modify it through the cgi interface, the changes
> made on the screen do not appear in my config.pl file.
> Is this there something that I am missing.

I would guess that you are modifying (and looking at) files below
/var/lib/backuppc, whereas BackupPC is using (and modifying) files below
/etc/BackupPC. Check your setting of $Conf{ConfDir} in the main
configuration file, which I would guess to be /etc/BackupPC/config.pl.
Also note that it's probably $host.pl and not $host/config.pl (in my Debian
packaged 2.1.1 it was also $host.pl; I have no idea whether that was Debian
specific), though I wouldn't be surprised if both work equally or even in
combination ;-).

Regards,
Holger

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Per PC config files issue

2006-12-12 Thread Jason Hughes
For what it's worth, I started with 2.1.2pl2 stable and had per-machine 
configs for each machine working fine.  When I installed the 3.0.0beta3 
as an upgrade OVER the existing install, it worked fine.  Maybe there's 
something different about the install script that differs between 
upgrade and a fresh install?

I seem to remember reading that the config files changed for 3.0.0 to be 
/pc/machinename.pl rather than /pc/machinename/config.pl?  For sure, 
though, I didn't move or rename any files by hand and it works for me.

If you want to use the newest beta, you could try installing the stable, 
then update to the beta over your install...

JH

JW Smythe wrote:
>   Ahhh, so I'm not crazy. :)
>
>   I posted the same thing a few days ago.  I was trying to do a fresh
> install with the beta, which made me think I was doing something
> stupid.  I reinstalled with the stable version and it's all working
> for me now.
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Per PC config files issue

2006-12-12 Thread JW Smythe
  Ahhh, so I'm not crazy. :)

  I posted the same thing a few days ago.  I was trying to do a fresh
install with the beta, which made me think I was doing something
stupid.  I reinstalled with the stable version and it's all working
for me now.

On 12/12/06, doc Hyde <[EMAIL PROTECTED]> wrote:
> Hello.
>
> I am using BackupPC version 3.0.0beta3.
> I am saving machines with different OS.
> I am used to BackupPC version 2 which works perfectly. I drop a config.pl in
> the .../pc// dir and no problem.
> But with this latest "beta" version it seems like the file config.pl is not
> being read. I modify it through vi and see no difference in the command
> executed. When I attempt to modify it through the cgi interface, the changes
> made on the screen do not appear in my config.pl file.
>  Is this there something that I am missing.
>
> Thank you for your help :)
>
> Al

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Per PC config files issue

2006-12-12 Thread doc Hyde

Hello.

I am using BackupPC version 3.0.0beta3.
I am saving machines with different OS.
I am used to BackupPC version 2 which works perfectly. I drop a config.pl in
the .../pc// dir and no problem.
But with this latest "beta" version it seems like the file config.pl is not
being read. I modify it through vi and see no difference in the command
executed. When I attempt to modify it through the cgi interface, the changes
made on the screen do not appear in my config.pl file.
Is this there something that I am missing.

Thank you for your help :)

Al
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/