To disable direct restores, the docs say to set "$Conf{RsyncRestoreArgs} =
undef;". This works great.
However you cannot do this via the CGI. It sets the value to "[]" if you
remove all of the args, and "[]" does not disable direct restores. So this
change must be made by editing the config.pl file directly.
However any subsequent global config changes via the CGI re-writes the
$Conf{RsyncRestoreArgs} variable and sets the value back to "[]", which
re-enables direct restores.
The following change fixes this bug. Removing all RsyncRestoreArgs
via the CGI correctly sets "$Conf{RsyncRestoreArgs} = undef;".
*** BackupPC-3.0.0/lib/BackupPC/Config/Meta.pm.orig 2007-10-10 11:26:17.000000000 -0400
--- BackupPC-3.0.0/lib/BackupPC/Config/Meta.pm 2007-10-10 11:39:33.000000000 -0400
***************
*** 238,248 ****
--- 238,250 ----
RsyncArgs => {
type => "list",
emptyOk => 1,
+ undefIfEmpty => 1,
child => "string",
},
RsyncRestoreArgs => {
type => "list",
emptyOk => 1,
+ undefIfEmpty => 1,
child => "string",
},
Cheers, Stephen
--
Stephen Joyce
Systems Administrator P A N I C
Physics & Astronomy Department Physics & Astronomy
University of North Carolina at Chapel Hill Network Infrastructure
voice: (919) 962-7214 and Computing
fax: (919) 962-0480 http://www.panic.unc.edu
|