Hi there,

On Thu, 20 Nov 2025, Paul Fox wrote:

...
it seems that backuppc issue #486 is moot, and can be closed ...

It's closed.

There might be an easy way to do something like what could have been
intended by the Debian patch.  My idea is to have the Web UI editor
write to a new file (called 'site-config.pl' for example, so there's
no confusion with any 'localconfig.pl' that's still lying around).

The Web UI would only write to 'site-config.pl' those configuration
elements which are changed from the defaults installed in 'config.pl'.
(The main pain in coding would be that part, but it's fairly easily
doable.)  The Web UI would no longer change the existing 'config.pl'.
Ever.

The config in 'site-config.pl' would take precedence over the existing
'config.pl'.  So there'd be no need to make any changes at all to the
configuration file which was provided when BackupPC was installed.

It wouldn't be too difficult also to look for any 'localconfig.pl' and
to do something with it if something in 'site-config.pl' permitted it.

So everybody would be happy.  I think.

It seems like not a big job, but I don't have time to actually do any
of this at the moment.  I throw this out for discussion in case there
are interested parties who can see pitfalls or suggest improvements to
the ideas.  Please keep the discussion here on the Mailing List until
there's some sort of a consensus on best the way forward.  After that,
if anyone would like to provide a PR I'd be very grateful.

When the Web UI writes a new configuration, at present it will rename
the old configuration file with the extension '.old' before writing a
new file.  I'd much prefer to write 'site-config.pl.old.$timestamp' or
something like that [*] (emacs does something similar here, for almost
everything that I edit with a text editor).

--

73,
Ged.

[*] See Mr. Mikesell's post:
https://sourceforge.net/p/backuppc/mailman/message/59260402/


_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to