SearchFAQMemberlist Log in
Reply to topic Page 1 of 2
Goto page 1, 2  Next
Admin config.pl editing
Author Message
Post Admin config.pl editing 
Hi,

Is there a plan to develop a CGI-BIN to edit the config.pl files, global =
and
per host ?

Sam Przyswa.


--=20
Ce message a =E9t=E9 v=E9rifi=E9 par MailScanner et le moteur F-Prot pour
rechercher la pr=E9sence de virus et rien de suspect n'a =E9t=E9 trouv=E9=
.
Pour tous renseignements compl=E9mentaires concernant cet anti-virus
contactez Postmaster < at > arial-concept.com




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post Admin config.pl editing 
"Sam Przyswa" writes:

Is there a plan to develop a CGI-BIN to edit the config.pl files,
global and per host ?

A couple of attempts have been made, but currently there is
no active development. There was some related work started
earler to abstract the config variables so they could readily
be stored in an sql database instead of a flat file.

It would be great to have a config editing feature; it's one of the
major missing pieces of BackupPC.

The most recent effort was from Jason Pernito who implemented
a config editor based on BackupPC 1.5.0; here's an email from
him from June 2003:

First of all, I would like to thank you for providing this
software and have it open to the public. I've been using this
in our network and so far it works great, I just decided to add
an Administrator link for a Web config.pl(inclg per-pc) and
hosts configuration options. I also have included a small help
on every field the administrator to fill up and ConfigWrite()
at Lib.pm.

If it make sense, here's the link for the screenshots:

http://www.yoursource.netfirms.com/BackupPC/screenshots/

He posted the code too. The screen shots look pretty impressive - be
sure to use the "Next" link to see all 4 screendumps.

Unfortunately this was right when I released BackupPC 2.0.0, which had
a large set of changes. Jason's code was hardcoded for each config
parameter, and it wasn't clear to me how he handled compound variable
types. I sent some emails encouraging him to port his editor to 2.0.0
with some design suggestions (eg: create some meta-data describing each
config variable) so that the code was as generic as possible.

But, alas, I never heard back.

So, currently, there is no active effort.

If you or anyone else is interested in working on this I would be
happy to dig up some of my old design suggestions. For example, you
should be able to also add/delete hosts, and in fact (assuming the
admin enables it) support complete self-setup: users could register
their own hosts with no admin support and be allowed to edit a very
limited set of per-host config settings.

Craig


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post Admin config.pl editing 
Yeah !

It's just what we need, the screenshots look great, I got the source to
see the work to do for 2.0.2 compatibility.

I weel tell you more ASAP.

Sam.

Le mar 30/03/2004 =E0 10:21, Craig Barratt a =E9crit :
"Sam Przyswa" writes:
=20
Is there a plan to develop a CGI-BIN to edit the config.pl files,
global and per host ?
=20
A couple of attempts have been made, but currently there is
no active development. There was some related work started
earler to abstract the config variables so they could readily
be stored in an sql database instead of a flat file.
=20
It would be great to have a config editing feature; it's one of the
major missing pieces of BackupPC.
=20
The most recent effort was from Jason Pernito who implemented
a config editor based on BackupPC 1.5.0; here's an email from
him from June 2003:
=20
First of all, I would like to thank you for providing this
software and have it open to the public. I've been using this
in our network and so far it works great, I just decided to add
an Administrator link for a Web config.pl(inclg per-pc) and
hosts configuration options. I also have included a small help
on every field the administrator to fill up and ConfigWrite()
at Lib.pm.
=20
If it make sense, here's the link for the screenshots:
=20
http://www.yoursource.netfirms.com/BackupPC/screenshots/
=20
He posted the code too. The screen shots look pretty impressive - be
sure to use the "Next" link to see all 4 screendumps.
=20
Unfortunately this was right when I released BackupPC 2.0.0, which had
a large set of changes. Jason's code was hardcoded for each config
parameter, and it wasn't clear to me how he handled compound variable
types. I sent some emails encouraging him to port his editor to 2.0.0
with some design suggestions (eg: create some meta-data describing each
config variable) so that the code was as generic as possible.
=20
But, alas, I never heard back.
=20
So, currently, there is no active effort.
=20
If you or anyone else is interested in working on this I would be
happy to dig up some of my old design suggestions. For example, you
should be able to also add/delete hosts, and in fact (assuming the
admin enables it) support complete self-setup: users could register
their own hosts with no admin support and be allowed to edit a very
limited set of per-host config settings.
=20
Craig
--=20

Sam Przyswa - Chef de projet
Arial Concept - Int=E9grateur Internet
36, rue de Turin - 75008 - Paris - France
Tel: 01 40 54 86 04 - Fax: 01 40 54 83 01
Web: http://www.arial-concept.com - Email: Info < at > arial-concept.com


--=20
Ce message a =E9t=E9 v=E9rifi=E9 par MailScanner et le moteur F-Prot pour
rechercher la pr=E9sence de virus et rien de suspect n'a =E9t=E9 trouv=E9=
.
Pour tous renseignements compl=E9mentaires concernant cet anti-virus
contactez Postmaster < at > arial-concept.com

Post Admin config.pl editing 
Sam Przyswa writes:

It's just what we need, the screenshots look great, I got the source to
see the work to do for 2.0.2 compatibility.

I weel tell you more ASAP.

Some more history. Leon Letto funded an earlier effort (ie: paid
someone out of his own pocket) to develop an interface based on
1.5.0. He donated that code under the GPL. It does work, but
is basic and doesn't have the polish of Jason's GUI. I can
forward the code if you want - style-wise it is pretty different
to BackupPC, so it would need a lot of work if you started with
this.

Also, Josh McAllister (in Dec '03) and several other people have
expressed interest in developing a config editor.

Attached are some design notes that I sent last summer.

Craig

#################################################################
To: "jason pernito" <jm_pernito < at > hotmail.com>
cc: backuppc-devel < at > lists.sourceforge.net
From: cbarratt < at > users.sourceforge.net
Subject: [BackupPC-devel] Re: BackupPC_Admin changes & roadmap
Date: Sat, 12 Jul 2003 18:44:12 -0700

Jason, I'd really like to include this in v2.1. But I would
like to base this on Config meta data, rather than hard code
each editable field. I haven't devised the format of the
config data, but we can come up with something pretty easily.
If we devise a format for the config meta data, would you
be willing to port your config editor to use this format?

Craig, I'm very much willing. Wink

The Config meta data is also useful for future support of
an SQL backend.

Compound variables (eg: $Conf{BackupFilesOnly}) are a little
tricky; we should discuss which approach is best.


Yes indeed. Just give the go signal and I'll find time for it.

Thanks and looking forward to make sense contributions to BackupPC.

Great.

What I was thinking was we would build a simple meta data description
of which fields are editable and how they behave.

Here are some design issues:

- It should be easy to add new configuration variables to the
editing screens.

- Some values can be set on a per-PC basis, while other values
only take effect in the main config.pl file. For values that
can go in either place we need a way for the administrator to
set values either in the main config.pl file or on a per-PC
basis. It has to be clear what they are doing.

- (Advanced issue) When we upgrade the backend to use SQL we will
actually support one more class of config files (in addition to
per-PC and global). This gives three levels of config files:

- per PC: overrides any per-group and global settings.

- per group (eg: win-desktop): overrides global settings.

- global: master settings and defaults.

Currently the config editor should allow admins to edit the master
settings and admins and users can edit the per-PC settings. Later,
when we add groups, admins should also be able to edit group settings.

- We should only place values in the per-PC config.pl that are
different from the main config.pl. This allows an administrator
to set site-wide settings in the main config.pl file that aren't
overridden by the per-PC settings. It would be confusing if you
changed just one value in the per-PC config.pl file, only to have
all the master config.pl file settings replicated. There are two
choices:

- Currently you have a Default button that resets the value
to the master value. We can then only write per-PC config
values that are different from the master value.

- Or, instead of the default button, we could have a checkbox.
Selecting or deselecting the checkbox controls whether that
value is written to the per-PC config file. Whenever you
edit the value the checkbox is automatically set. Whenever
you deselect the value the text box is set to the global
value.

I prefer the latter approach since it is more explicit.

- Config values should be arranged by logical groups, eg:
Server configuration, per-PC settings etc, similar to how
you have done in your v1.5.0 work.

- It would be nice if the XferMode-specific settings only appeared
based on the XferMode. (eg: the Smb settings only appear when
XferMode is "smb" etc.) This might mean we should use some
javascript to submit and redisplay the page whenever the XferMode
is changed.

When an admin is editing the master config.pl values all settings
should appear: the XferMode-specific behavior should only be for
per-PC config editing.

- Some values are passwords, so they should be displayed with
password input boxes.

- We need to support i18n for the strings that are displayed (banners,
prompts etc). There will be a significant translation effort, but
as a start we can put the correct structure in place an at least get
English right.

- Some basic error checking would be nice, but let's keep it
simple. Making this flexible is difficult. Hardcoding some
error checking is ok.

- The per-PC config editing should be accessible from the PC CGI page.

- Changes to config settings should be logged in the log file.

- Administrators should be able to edit everything that is editable.
Users should be able to edit some things (per-PC settings).
Moreover, we should have a config parameter that allows the
administrator to specify a reduced set of parameters that
a user can edit, eg:

$Conf{CGIUserConfigEdit} = qw(
FullKeepCnt
IncrKeepCnt
BackupFilesOnly
);

- We need (somehow) to support some of the more complex data
types. For example, WakeupSchedule is an array of numbers,
DHCPAddressRanges is an array of hashes, BackupFilesOnly
is a hash of arrays. This is the most difficult area,
and it might be ok if we do some hardcoding here.

We're not trying to develop a fully-featured and flexible
editing system. What we're looking for is something that
works well and is extensible as new config parameters are
added.

Here's an example of what a menu definition might look like.
In one big data structure we define the layout of the edit
page. We could add one more layer for multiple edit pages,
but a single edit page is probably ok for now:

my < at > MenuDef = (
{
# banner text; not editable
name => 'GeneralServerConfig',
type => 'banner',
},
{
name => 'WakeupSchedule',
type => 'numeric array', # not sure if this is best.
# this would mean a comma
# separated array in one text
# box
},
{
name => 'MaxBackups',
type => 'integer',
},
{
name => 'MaxPendingCmds',
type => 'integer',
},
#
# and lots more
#

#
# Per-PC config values
#
{
# banner text; not editable
name => 'GeneralPerPCConfig',
type => 'banner',
},
{
name => 'XferMethod',
type => 'radio',
values => [qw(smb tar rsync rsyncd)],
perPC => 1,
},
{
name => 'SmbShareName',
type => 'text',
perPC => 1,
xferDepend => 'smb', # only appears if XferMethod is 'smb';
# but always appears for master edit
},
{
name => 'SmbShareUserName',
type => 'text',
perPC => 1,
xferDepend => 'smb', # only appears if XferMethod is 'smb'
# but always appears for master edit
},
{
name => 'SmbSharePasswd',
type => 'password',
perPC => 1,
xferDepend => 'smb', # only appears if XferMethod is 'smb'
# but always appears for master edit
},
{
name => 'BackupFilesOnly',
type => '???', # this is a compound type; don't know
# what to do here
perPC => 1,
},
{
name => 'BackupFilesExclude',
type => '???', # this is a compound type; don't know
# what to do here
perPC => 1,
},

#
# and lots more
#
);

So in one data structure we can describe the entire structure of
the edit screen.

The code would simple pass through the array and emit the correct
HTML. On Submit it would make the necessary updates.

All the strings to display would come from the language specific strings.
For example, the english text for the banner names would be set in
en.pm as:

$Lang{ConfigEditBanner_GeneralServer} = 'General Server Configuration';
$Lang{ConfigEditBanner_GeneralPerPC} = 'General Client Configuration';

The prompt text for each parameter would also come from $Lang, eg:

$Lang{ConfigEditParamPrompt_MaxBackups} = 'Max backups';

The help text would be implenented as you have done, or otherwise
point to the on-line documentation (although it refers to the perl
config.pl syntax, which would be confusing for users).

By the way, the configure.pl script contains code for re-writing
config.pl files.

How does this sound as a basic architecture? Anyone should submit
comments now before we lock things down.

I'll think a little more about the CGI host editing and new host features
and get back to you on that. Having a full "self-service" feature so
users could add their own hosts would be great.

Craig

Post Admin config.pl editing 
Hi Sam,

I am still around and have that code in production at a customer site. It
works but lacks polish however, it has the non-hard coded parsing of the
config.pl that you (if you are so inclined) may be able to integrate with
Josh's Interface code to make it look pretty. If you could take those two,
integrate them together and conform as much as possible to the way Craig
wants the standard, you could be onto something extraordinary Smile.

If you would like the code, drop me a line and I will send you the latest
version that seems to work with 2.0 and so should be easy for you to get
working with 2.0.2 (which has great new features). Together these could
turn BackupPC into a much easier tool for admins, who are new to Linux, to
get installed and working.

I hope you go for it. I am always willing to lend a hand where I can as
well. I am just setting up another backuppc here (with 2.0.2) so now is a
good time to get my attention Wink

Leon


"Wise men talk because they have something to say.
Fools talk because they have to say something." -- Plato

-----Original Message-----
From: Craig Barratt [mailto:craig < at > atheros.com]
Sent: Tuesday, March 30, 2004 9:15 PM
To: Sam Przyswa
Cc: Craig Barratt; BackupPC List; jm_pernito < at > hotmail.com
Subject: Re: [BackupPC-users] Admin config.pl editing

Sam Przyswa writes:

It's just what we need, the screenshots look great, I got the source
to see the work to do for 2.0.2 compatibility.

I weel tell you more ASAP.

Some more history. Leon Letto funded an earlier effort (ie: paid someone
out of his own pocket) to develop an interface based on 1.5.0. He donated
that code under the GPL. It does work, but is basic and doesn't have the
polish of Jason's GUI. I can forward the code if you want - style-wise it
is pretty different to BackupPC, so it would need a lot of work if you
started with this.

Also, Josh McAllister (in Dec '03) and several other people have expressed
interest in developing a config editor.

Attached are some design notes that I sent last summer.

Craig

#################################################################
To: "jason pernito" <jm_pernito < at > hotmail.com>
cc: backuppc-devel < at > lists.sourceforge.net
From: cbarratt < at > users.sourceforge.net
Subject: [BackupPC-devel] Re: BackupPC_Admin changes & roadmap
Date: Sat, 12 Jul 2003 18:44:12 -0700

Jason, I'd really like to include this in v2.1. But I would
like to base this on Config meta data, rather than hard code
each editable field. I haven't devised the format of the
config data, but we can come up with something pretty easily.
If we devise a format for the config meta data, would you
be willing to port your config editor to use this format?

Craig, I'm very much willing. Wink

The Config meta data is also useful for future support of
an SQL backend.

Compound variables (eg: $Conf{BackupFilesOnly}) are a little
tricky; we should discuss which approach is best.


Yes indeed. Just give the go signal and I'll find time for it.

Thanks and looking forward to make sense contributions to BackupPC.

Great.

What I was thinking was we would build a simple meta data description of
which fields are editable and how they behave.

Here are some design issues:

- It should be easy to add new configuration variables to the
editing screens.

- Some values can be set on a per-PC basis, while other values
only take effect in the main config.pl file. For values that
can go in either place we need a way for the administrator to
set values either in the main config.pl file or on a per-PC
basis. It has to be clear what they are doing.

- (Advanced issue) When we upgrade the backend to use SQL we will
actually support one more class of config files (in addition to
per-PC and global). This gives three levels of config files:

- per PC: overrides any per-group and global settings.

- per group (eg: win-desktop): overrides global settings.

- global: master settings and defaults.

Currently the config editor should allow admins to edit the master
settings and admins and users can edit the per-PC settings. Later,
when we add groups, admins should also be able to edit group settings.

- We should only place values in the per-PC config.pl that are
different from the main config.pl. This allows an administrator
to set site-wide settings in the main config.pl file that aren't
overridden by the per-PC settings. It would be confusing if you
changed just one value in the per-PC config.pl file, only to have
all the master config.pl file settings replicated. There are two
choices:

- Currently you have a Default button that resets the value
to the master value. We can then only write per-PC config
values that are different from the master value.

- Or, instead of the default button, we could have a checkbox.
Selecting or deselecting the checkbox controls whether that
value is written to the per-PC config file. Whenever you
edit the value the checkbox is automatically set. Whenever
you deselect the value the text box is set to the global
value.

I prefer the latter approach since it is more explicit.

- Config values should be arranged by logical groups, eg:
Server configuration, per-PC settings etc, similar to how
you have done in your v1.5.0 work.

- It would be nice if the XferMode-specific settings only appeared
based on the XferMode. (eg: the Smb settings only appear when
XferMode is "smb" etc.) This might mean we should use some
javascript to submit and redisplay the page whenever the XferMode
is changed.

When an admin is editing the master config.pl values all settings
should appear: the XferMode-specific behavior should only be for
per-PC config editing.

- Some values are passwords, so they should be displayed with
password input boxes.

- We need to support i18n for the strings that are displayed (banners,
prompts etc). There will be a significant translation effort, but
as a start we can put the correct structure in place an at least get
English right.

- Some basic error checking would be nice, but let's keep it
simple. Making this flexible is difficult. Hardcoding some
error checking is ok.

- The per-PC config editing should be accessible from the PC CGI page.

- Changes to config settings should be logged in the log file.

- Administrators should be able to edit everything that is editable.
Users should be able to edit some things (per-PC settings).
Moreover, we should have a config parameter that allows the
administrator to specify a reduced set of parameters that
a user can edit, eg:

$Conf{CGIUserConfigEdit} = qw(
FullKeepCnt
IncrKeepCnt
BackupFilesOnly
);

- We need (somehow) to support some of the more complex data
types. For example, WakeupSchedule is an array of numbers,
DHCPAddressRanges is an array of hashes, BackupFilesOnly
is a hash of arrays. This is the most difficult area,
and it might be ok if we do some hardcoding here.

We're not trying to develop a fully-featured and flexible editing system.
What we're looking for is something that works well and is extensible as new
config parameters are added.

Here's an example of what a menu definition might look like.
In one big data structure we define the layout of the edit page. We could
add one more layer for multiple edit pages, but a single edit page is
probably ok for now:

my < at > MenuDef = (
{
# banner text; not editable
name => 'GeneralServerConfig',
type => 'banner',
},
{
name => 'WakeupSchedule',
type => 'numeric array', # not sure if this is best.
# this would mean a comma
# separated array in one text
# box
},
{
name => 'MaxBackups',
type => 'integer',
},
{
name => 'MaxPendingCmds',
type => 'integer',
},
#
# and lots more
#

#
# Per-PC config values
#
{
# banner text; not editable
name => 'GeneralPerPCConfig',
type => 'banner',
},
{
name => 'XferMethod',
type => 'radio',
values => [qw(smb tar rsync rsyncd)],
perPC => 1,
},
{
name => 'SmbShareName',
type => 'text',
perPC => 1,
xferDepend => 'smb', # only appears if XferMethod is
'smb';
# but always appears for master edit
},
{
name => 'SmbShareUserName',
type => 'text',
perPC => 1,
xferDepend => 'smb', # only appears if XferMethod is
'smb'
# but always appears for master edit
},
{
name => 'SmbSharePasswd',
type => 'password',
perPC => 1,
xferDepend => 'smb', # only appears if XferMethod is
'smb'
# but always appears for master edit
},
{
name => 'BackupFilesOnly',
type => '???', # this is a compound type; don't know
# what to do here
perPC => 1,
},
{
name => 'BackupFilesExclude',
type => '???', # this is a compound type; don't know
# what to do here
perPC => 1,
},

#
# and lots more
#
);

So in one data structure we can describe the entire structure of the edit
screen.

The code would simple pass through the array and emit the correct HTML. On
Submit it would make the necessary updates.

All the strings to display would come from the language specific strings.
For example, the english text for the banner names would be set in en.pm as:

$Lang{ConfigEditBanner_GeneralServer} = 'General Server Configuration';
$Lang{ConfigEditBanner_GeneralPerPC} = 'General Client Configuration';

The prompt text for each parameter would also come from $Lang, eg:

$Lang{ConfigEditParamPrompt_MaxBackups} = 'Max backups';

The help text would be implenented as you have done, or otherwise point to
the on-line documentation (although it refers to the perl config.pl syntax,
which would be confusing for users).

By the way, the configure.pl script contains code for re-writing config.pl
files.

How does this sound as a basic architecture? Anyone should submit comments
now before we lock things down.

I'll think a little more about the CGI host editing and new host features
and get back to you on that. Having a full "self-service" feature so users
could add their own hosts would be great.

Craig


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial
presented by Daniel Robbins, President and CEO of GenToo technologies. Learn
everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post Admin config.pl editing 
Le mer 31/03/2004 à 05:47, Leon Letto a écrit :
Hi Sam,


Hi Leon, Hi Craig

I have started yesterday night to merge the Jason mascarinas pernito
work to 2.0.2 I plan to implement the internationalization stuffs,
cleaning some html parts for a best readability, and add the 2.0.2
features, and make some cosmetics features with CSS into the
$Conf{CgiHeaders} config file.

I am still around and have that code in production at a customer site. It
works but lacks polish however, it has the non-hard coded parsing of the
config.pl that you (if you are so inclined) may be able to integrate with
Josh's Interface code to make it look pretty. If you could take those two,
integrate them together and conform as much as possible to the way Craig
wants the standard, you could be onto something extraordinary Smile.

If you would like the code, drop me a line and I will send you the latest
version that seems to work with 2.0 and so should be easy for you to get
working with 2.0.2 (which has great new features). Together these could
turn BackupPC into a much easier tool for admins, who are new to Linux, to
get installed and working.

Ok, send me the code please I will look how to integrate it with my work
and back to the community.

I hope you go for it. I am always willing to lend a hand where I can as
well. I am just setting up another backuppc here (with 2.0.2) so now is a
good time to get my attention Wink

Ok nice ! but I go step by step, first make the admin CGI working with the
actuals features.

Sam.



--
Ce message a été vérifié par MailScanner et le moteur F-Prot pour
rechercher la présence de virus et rien de suspect n'a été trouvé.
Pour tous renseignements complémentaires concernant cet anti-virus
contactez Postmaster < at > arial-concept.com

Post Admin config.pl editing 
Very nice!

Here are the latest Binaries for my version of an admin page which edits the
config.pl and will add and remove hosts from the hosts file.

To install, backup your config.pl, hosts and per-pc config.pl files. Copy
the attached files into the config directory and update the settings.pl file
with the location of your conf and pc directories. Login and let me know
what you think.

Leon


"Wise men talk because they have something to say.
Fools talk because they have to say something." -- Plato

-----Original Message-----
From: Sam Przyswa [mailto:samp < at > arial-concept.com]
Sent: Wednesday, March 31, 2004 11:29 AM
To: Leon Letto
Cc: 'Craig Barratt'; 'Craig Barratt'; 'BackupPC List'
Subject: RE: [BackupPC-users] Admin config.pl editing

Le mer 31/03/2004 à 05:47, Leon Letto a écrit :
Hi Sam,


Hi Leon, Hi Craig

I have started yesterday night to merge the Jason mascarinas pernito work to
2.0.2 I plan to implement the internationalization stuffs, cleaning some
html parts for a best readability, and add the 2.0.2 features, and make some
cosmetics features with CSS into the $Conf{CgiHeaders} config file.

I am still around and have that code in production at a customer site.
It works but lacks polish however, it has the non-hard coded parsing
of the config.pl that you (if you are so inclined) may be able to
integrate with Josh's Interface code to make it look pretty. If you
could take those two, integrate them together and conform as much as
possible to the way Craig wants the standard, you could be onto something
extraordinary Smile.

If you would like the code, drop me a line and I will send you the
latest version that seems to work with 2.0 and so should be easy for
you to get working with 2.0.2 (which has great new features).
Together these could turn BackupPC into a much easier tool for admins,
who are new to Linux, to get installed and working.

Ok, send me the code please I will look how to integrate it with my work and
back to the community.

I hope you go for it. I am always willing to lend a hand where I can
as well. I am just setting up another backuppc here (with 2.0.2) so
now is a good time to get my attention Wink

Ok nice ! but I go step by step, first make the admin CGI working with the
actuals features.

Sam.



--
Ce message a été vérifié par MailScanner et le moteur F-Prot pour rechercher
la présence de virus et rien de suspect n'a été trouvé.
Pour tous renseignements complémentaires concernant cet anti-virus contactez
Postmaster < at > arial-concept.com

Post Admin config.pl editing 
Hi guys,

It seems that source forge is not accepting zip files so here is a link =
to
the files on my website.

http://www.leonletto.com/images/admin.zip

Leon


"Wise men talk because they have something to say.
Fools talk because they have to say something." -- Plato=20

-----Original Message-----
From: Leon Letto=20
Sent: Wednesday, March 31, 2004 12:00 PM
To: 'Sam Przyswa'
Cc: 'Craig Barratt'; 'Craig Barratt'; 'BackupPC List'
Subject: RE: [BackupPC-users] Admin config.pl editing

Very nice!

Here are the latest Binaries for my version of an admin page which =
edits the
config.pl and will add and remove hosts from the hosts file.

To install, backup your config.pl, hosts and per-pc config.pl files. =
Copy
the attached files into the config directory and update the settings.pl =
file
with the location of your conf and pc directories. Login and let me =
know
what you think.

Leon


"Wise men talk because they have something to say.
Fools talk because they have to say something." -- Plato=20

-----Original Message-----
From: Sam Przyswa [mailto:samp < at > arial-concept.com]
Sent: Wednesday, March 31, 2004 11:29 AM
To: Leon Letto
Cc: 'Craig Barratt'; 'Craig Barratt'; 'BackupPC List'
Subject: RE: [BackupPC-users] Admin config.pl editing

Le mer 31/03/2004 =E0 05:47, Leon Letto a =E9crit :
Hi Sam,
=20

Hi Leon, Hi Craig

I have started yesterday night to merge the Jason mascarinas pernito =
work to
2.0.2 I plan to implement the internationalization stuffs, cleaning =
some
html parts for a best readability, and add the 2.0.2 features, and make =
some
cosmetics features with CSS into the $Conf{CgiHeaders} config file.

I am still around and have that code in production at a customer =
site. =20
It works but lacks polish however, it has the non-hard coded parsing=20
of the config.pl that you (if you are so inclined) may be able to=20
integrate with Josh's Interface code to make it look pretty. If you=20
could take those two, integrate them together and conform as much as=20
possible to the way Craig wants the standard, you could be onto=20
something
extraordinary Smile.
=20
If you would like the code, drop me a line and I will send you the=20
latest version that seems to work with 2.0 and so should be easy for=20
you to get working with 2.0.2 (which has great new features).
Together these could turn BackupPC into a much easier tool for =
admins,=20
who are new to Linux, to get installed and working.

Ok, send me the code please I will look how to integrate it with my =
work and
back to the community.

I hope you go for it. I am always willing to lend a hand where I can =

as well. I am just setting up another backuppc here (with 2.0.2) so=20
now is a good time to get my attention Wink

Ok nice ! but I go step by step, first make the admin CGI working with =
the
actuals features.

Sam.



--
Ce message a =E9t=E9 v=E9rifi=E9 par MailScanner et le moteur F-Prot =
pour rechercher
la pr=E9sence de virus et rien de suspect n'a =E9t=E9 trouv=E9.
Pour tous renseignements compl=E9mentaires concernant cet anti-virus =
contactez
Postmaster < at > arial-concept.com

Post Admin config.pl editing 
Sam Przyswa writes:

Le mer 31/03/2004 à 05:47, Leon Letto a écrit :

I have started yesterday night to merge the Jason mascarinas pernito
work to 2.0.2 I plan to implement the internationalization stuffs,
cleaning some html parts for a best readability, and add the 2.0.2
features, and make some cosmetics features with CSS into the
$Conf{CgiHeaders} config file.

Please start with the current CVS!! There have been a huge number
of changes since 2.0.2, including splitting BackupPC_Admin into
separate modules for each action, the wide use of CSS throughout
the html, and the addition of an Admin page (which is where the
config editing links can go).

Craig


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post Admin config.pl editing 
Le mer 31/03/2004 =E0 21:42, Craig Barratt a =E9crit :
Sam Przyswa writes:
=20
Le mer 31/03/2004 =E0 05:47, Leon Letto a =E9crit :
=20
I have started yesterday night to merge the Jason mascarinas pernito
work to 2.0.2 I plan to implement the internationalization stuffs,
cleaning some html parts for a best readability, and add the 2.0.2
features, and make some cosmetics features with CSS into the
$Conf{CgiHeaders} config file.
=20
Please start with the current CVS!! There have been a huge number
of changes since 2.0.2, including splitting BackupPC_Admin into
separate modules for each action, the wide use of CSS throughout
the html, and the addition of an Admin page (which is where the
config editing links can go).
=20

At this moment we are testing the stable 2.0.2 version for customers and
we need to add the Admin config files, does the CVS is stable enough for
a production backup system ? - or perhaps is there a RC version ?

We have a plan to test on our office the CVS version and contribute to
the development too, but the first need is to install one or two stables
versions and then take the time to test and validate a RC version from
the CVS to upgrade our previous installed version.

Sam.





--=20
Ce message a =E9t=E9 v=E9rifi=E9 par MailScanner et le moteur F-Prot pour
rechercher la pr=E9sence de virus et rien de suspect n'a =E9t=E9 trouv=E9=
.
Pour tous renseignements compl=E9mentaires concernant cet anti-virus
contactez Postmaster < at > arial-concept.com

Post Admin config.pl editing 
Sam Przyswa writes:

Le mer 31/03/2004 21:42, Craig Barratt wrote:

Please start with the current CVS!! There have been a huge number
of changes since 2.0.2, including splitting BackupPC_Admin into
separate modules for each action, the wide use of CSS throughout
the html, and the addition of an Admin page (which is where the
config editing links can go).

At this moment we are testing the stable 2.0.2 version for customers and
we need to add the Admin config files, does the CVS is stable enough for
a production backup system ? - or perhaps is there a RC version ?

We have a plan to test on our office the CVS version and contribute to
the development too, but the first need is to install one or two stables
versions and then take the time to test and validate a RC version from
the CVS to upgrade our previous installed version.

There is already a BackupPC-2.1.0beta0 released. There will probably
be a beta1 in the next week or so. CVS is only slightly changed
from BackupPC-2.1.0beta0.

I'd recommend deploying 2.0.2, but developing with BackupPC-2.1.0betaX.
If things go well, and assuming I don't try to add too many new features
(like I'm doing right now with BackupPC_nightly), BackupPC-2.1.0 shouldn't
be too far away.

So if you start developing with BackupPC-2.1.0beta0 or BackupPC-2.1.0beta1,
rather than CVS, that would be fine too.

I'm just concerned about a lot of new work porting an implementation
for 2.0.2 to 2.1.x.

Craig


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post Admin config.pl editing 
At 11:42 AM 3/31/2004 -0800, Craig Barratt wrote:
Sam Przyswa writes:

Le mer 31/03/2004 =E0 05:47, Leon Letto a =E9crit :

I have started yesterday night to merge the Jason mascarinas pernito
work to 2.0.2 I plan to implement the internationalization stuffs,
cleaning some html parts for a best readability, and add the 2.0.2
features, and make some cosmetics features with CSS into the
$Conf{CgiHeaders} config file.

Please start with the current CVS!! There have been a huge number
of changes since 2.0.2, including splitting BackupPC_Admin into
separate modules for each action, the wide use of CSS throughout
the html, and the addition of an Admin page (which is where the
config editing links can go).

I had a thought about the config.pl files that I never implemented, and=20
this latest work to edit the config.pl file with web forms complicates th=
e=20
idea. But, I'll just put the idea out there, anyway, to see what others t=
hink.

It always bothered me that the configuration files were actually executab=
le=20
perl files. Yes, it works, but not exactly user friendly for those who=20
don't know perl.

I have worked with perl XML modules, and realized that it would be quite=20
easy to convert the config.pl files into XML format. A simple perl=20
conversion script could suck in each config.pl and spit out the equivalen=
t XML.

Then, in BackupPC itself, whenever the code read a config.pl file, a=20
replacement routine would instead read the XML file, and then recreate th=
e=20
equivalent perl data structures that the rest of the program expects. Eas=
y!

Switching to XML at this point would actually have a few advantages:

1) The copious comments in the config.pl (which are important to the=20
BackupPC user, but just noise to the perl script) could instead become=20
additional first class data elements in the XML file. These comments coul=
d=20
then be descriptions/help to be displayed when doing web-based configurat=
ion.

2) Probably easier for configuration web pages to read and write XML than=
=20
to read and write valid perl (especially if you are trying to preserve th=
e=20
comments).

3) Localization / internationalization? XML is often written in=20
utf-8. Need I say more?

But, others have started down a different path, and I'm not sure how easy=
=20
it might be to make the switch. Perhaps after that other work is=20
completed, I can look at how easy/hard it is to replace the config.pl=20
reading and writing routines with XML reading and writing routines.


Marlin Prowell
Cadalog, Inc.

Post Admin config.pl editing 
When I first contracted out to have an admin interface written, they =
did
this without telling me and I had them rewrite it as it just added too =
much
complication to what should be something easy. Having more conversions
going on is not where we need to go in my opinion. That being said, =
that is
just my opinion and Craig has the last say.

Leon

"Wise men talk because they have something to say.
Fools talk because they have to say something." -- Plato=20


-----Original Message-----
From: Marlin Prowell [mailto:mbp < at > cadalog-inc.com]=20
Sent: Thursday, April 01, 2004 12:11 PM
To: Craig Barratt; Sam Przyswa
Cc: 'BackupPC List'
Subject: Re: [BackupPC-users] Admin config.pl editing=20


At 11:42 AM 3/31/2004 -0800, Craig Barratt wrote:
Sam Przyswa writes:

Le mer 31/03/2004 =E0 05:47, Leon Letto a =E9crit :

I have started yesterday night to merge the Jason mascarinas =
pernito=20
work to 2.0.2 I plan to implement the internationalization stuffs,=20
cleaning some html parts for a best readability, and add the 2.0.2=20
features, and make some cosmetics features with CSS into the=20
$Conf{CgiHeaders} config file.

Please start with the current CVS!! There have been a huge number of=20
changes since 2.0.2, including splitting BackupPC_Admin into separate=20
modules for each action, the wide use of CSS throughout the html, and=20
the addition of an Admin page (which is where the config editing links =

can go).

I had a thought about the config.pl files that I never implemented, and =

this latest work to edit the config.pl file with web forms complicates =
the=20
idea. But, I'll just put the idea out there, anyway, to see what others
think.

It always bothered me that the configuration files were actually =
executable=20
perl files. Yes, it works, but not exactly user friendly for those who=20
don't know perl.

I have worked with perl XML modules, and realized that it would be =
quite=20
easy to convert the config.pl files into XML format. A simple perl=20
conversion script could suck in each config.pl and spit out the =
equivalent
XML.

Then, in BackupPC itself, whenever the code read a config.pl file, a=20
replacement routine would instead read the XML file, and then recreate =
the=20
equivalent perl data structures that the rest of the program expects. =
Easy!

Switching to XML at this point would actually have a few advantages:

1) The copious comments in the config.pl (which are important to the=20
BackupPC user, but just noise to the perl script) could instead become=20
additional first class data elements in the XML file. These comments =
could=20
then be descriptions/help to be displayed when doing web-based
configuration.

2) Probably easier for configuration web pages to read and write XML =
than=20
to read and write valid perl (especially if you are trying to preserve =
the=20
comments).

3) Localization / internationalization? XML is often written in=20
utf-8. Need I say more?

But, others have started down a different path, and I'm not sure how =
easy=20
it might be to make the switch. Perhaps after that other work is=20
completed, I can look at how easy/hard it is to replace the config.pl=20
reading and writing routines with XML reading and writing routines.


Marlin Prowell
Cadalog, Inc.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of =
GenToo
technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick
_______________________________________________
BackupPC-users mailing list BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post Admin config.pl editing 
Marlin Prowell wrote:

[...]
Switching to XML at this point would actually have a few advantages:

We use xml configuration in our ctrlproxy project.
This has averages but can also cause many problems.

XML configs are not easy to edit for a user.
When you use a dom, you can not reread the config (depends on your
program design, its possible but it can be complicated)

With perl configs, you have the power to have a dynamic config, which is
more complicated with a xml design.


XML is very good for managing descriptions, possible parameters,...

This is a example from a module doc we use:

<configuration>
<element name="sslkeyfile">
<description>Name of file to load private SSL
key from. Only required when acting as a server</description>
</element>

<element name="sslcertfile">
<description>Name of file to load certificate
from. Only required when acting as a server</description>
</element>

<element name="tos" type="bool">
<attribute name="value">
<description>TOS value for outgoing
packages. Has to be 'Minimize-Delay', 'Maximize-Throughput',
'Maximize-Reliability', 'Minimize-Cost' or 'Normal-Service'
(default)</description>
</attribute>
</element>

</configuration>

We use libxml2, because there a many bindings to script languages, so
the interaction between the python module and the c core is really smooth.

I would suggest, that the config should be as it is. But all parameters
should be described in a xml file. This could be easy parsed for the
config.pl.

regards
Daniel


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post Admin config.pl editing 
Marlin Prowell writes:

At 11:42 AM 3/31/2004 -0800, Craig Barratt wrote:
Sam Przyswa writes:

Le mer 31/03/2004 =E0 05:47, Leon Letto a =E9crit :

I have started yesterday night to merge the Jason mascarinas pernito
work to 2.0.2 I plan to implement the internationalization stuffs,
cleaning some html parts for a best readability, and add the 2.0.2
features, and make some cosmetics features with CSS into the
$Conf{CgiHeaders} config file.

Please start with the current CVS!! There have been a huge number
of changes since 2.0.2, including splitting BackupPC_Admin into
separate modules for each action, the wide use of CSS throughout
the html, and the addition of an Admin page (which is where the
config editing links can go).

I had a thought about the config.pl files that I never implemented, and
this latest work to edit the config.pl file with web forms complicates the
idea. But, I'll just put the idea out there, anyway, to see what others
think.

It always bothered me that the configuration files were actually
executable perl files. Yes, it works, but not exactly user friendly
for those who don't know perl.

Let's move this thread to backuppc-devel < at > lists.sourceforge.net.

I'll reply there.

Craig


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 2
Goto page 1, 2  Next
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB