Meta.pm (BackupPC-4.3.2) | : | Meta.pm (BackupPC-4.4.0) | ||
---|---|---|---|---|
skipping to change at line 30 | skipping to change at line 30 | |||
# This program is distributed in the hope that it will be useful, | # This program is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
# GNU General Public License for more details. | # GNU General Public License for more details. | |||
# | # | |||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | |||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
# | # | |||
#======================================================================== | #======================================================================== | |||
# | # | |||
# Version 4.3.2, released 17 Feb 2020. | # Version 4.4.0, released 20 Jun 2020. | |||
# | # | |||
# See http://backuppc.sourceforge.net. | # See http://backuppc.sourceforge.net. | |||
# | # | |||
#======================================================================== | #======================================================================== | |||
package BackupPC::Config::Meta; | package BackupPC::Config::Meta; | |||
use strict; | use strict; | |||
require Exporter; | require Exporter; | |||
use vars qw( @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS ); | use vars qw( @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS ); | |||
use vars qw(%ConfigMeta); | use vars qw(%ConfigMeta); | |||
@ISA = qw(Exporter); | @ISA = qw(Exporter); | |||
@EXPORT = qw( ); | @EXPORT = qw( ); | |||
@EXPORT_OK = qw( | @EXPORT_OK = qw( | |||
%ConfigMeta | %ConfigMeta | |||
); | ||||
%EXPORT_TAGS = ( | ||||
'all' => [ @EXPORT_OK ], | ||||
); | ); | |||
%EXPORT_TAGS = ('all' => [@EXPORT_OK]); | ||||
# | # | |||
# Define the data types for all the config variables | # Define the data types for all the config variables | |||
# | # | |||
%ConfigMeta = ( | %ConfigMeta = ( | |||
###################################################################### | ###################################################################### | |||
# General server configuration | # General server configuration | |||
###################################################################### | ###################################################################### | |||
ServerHost => "string", | ServerHost => "string", | |||
ServerPort => "integer", | ServerPort => "integer", | |||
ServerMesgSecret => "string", | ServerMesgSecret => "string", | |||
MyPath => {type => "string", undefIfEmpty => 1}, | MyPath => {type => "string", undefIfEmpty => 1}, | |||
UmaskMode => "integer", | UmaskMode => "integer", | |||
WakeupSchedule => { | WakeupSchedule => { | |||
type => "shortlist", | type => "shortlist", | |||
child => "float", | child => "float", | |||
}, | ||||
PoolV3Enabled => "boolean", | ||||
MaxBackups => "integer", | ||||
MaxUserBackups => "integer", | ||||
MaxPendingCmds => "integer", | ||||
MaxBackupPCNightlyJobs => "integer", | ||||
BackupPCNightlyPeriod => "integer", | ||||
PoolSizeNightlyUpdatePeriod => "integer", | ||||
PoolNightlyDigestCheckPercent => "integer", | ||||
MaxOldLogFiles => "integer", | ||||
CmdQueueNice => "integer", | ||||
SshPath => {type => "execPath", undefIfEmpty => 1}, | ||||
NmbLookupPath => {type => "execPath", undefIfEmpty => 1}, | ||||
PingPath => {type => "execPath", undefIfEmpty => 1}, | ||||
Ping6Path => {type => "execPath", undefIfEmpty => 1}, | ||||
DfPath => {type => "execPath", undefIfEmpty => 1}, | ||||
DfCmd => "string", | ||||
DfInodeUsageCmd => "string", | ||||
SplitPath => {type => "execPath", undefIfEmpty => 1}, | ||||
ParPath => {type => "execPath", undefIfEmpty => 1}, | ||||
CatPath => {type => "execPath", undefIfEmpty => 1}, | ||||
GzipPath => {type => "execPath", undefIfEmpty => 1}, | ||||
Bzip2Path => {type => "execPath", undefIfEmpty => 1}, | ||||
RrdToolPath => {type => "execPath", undefIfEmpty => 1}, | ||||
DfMaxUsagePct => "float", | ||||
DfMaxInodeUsagePct => "float", | ||||
DHCPAddressRanges => { | ||||
type => "list", | ||||
emptyOk => 1, | ||||
child => { | ||||
type => "hash", | ||||
noKeyEdit => 1, | ||||
order => [qw(ipAddrBase first last)], | ||||
child => { | ||||
ipAddrBase => "string", | ||||
first => "integer", | ||||
last => "integer", | ||||
}, | ||||
}, | }, | |||
PoolV3Enabled => "boolean", | ||||
MaxBackups => "integer", | ||||
MaxUserBackups => "integer", | ||||
MaxPendingCmds => "integer", | ||||
MaxBackupPCNightlyJobs => "integer", | ||||
BackupPCNightlyPeriod => "integer", | ||||
PoolSizeNightlyUpdatePeriod => "integer", | ||||
MaxOldLogFiles => "integer", | ||||
CmdQueueNice => "integer", | ||||
SshPath => {type => "execPath", undefIfEmpty => 1}, | ||||
NmbLookupPath => {type => "execPath", undefIfEmpty => 1}, | ||||
PingPath => {type => "execPath", undefIfEmpty => 1}, | ||||
Ping6Path => {type => "execPath", undefIfEmpty => 1}, | ||||
DfPath => {type => "execPath", undefIfEmpty => 1}, | ||||
DfCmd => "string", | ||||
DfInodeUsageCmd => "string", | ||||
SplitPath => {type => "execPath", undefIfEmpty => 1}, | ||||
ParPath => {type => "execPath", undefIfEmpty => 1}, | ||||
CatPath => {type => "execPath", undefIfEmpty => 1}, | ||||
GzipPath => {type => "execPath", undefIfEmpty => 1}, | ||||
Bzip2Path => {type => "execPath", undefIfEmpty => 1}, | ||||
RrdToolPath => {type => "execPath", undefIfEmpty => 1}, | ||||
DfMaxUsagePct => "float", | ||||
DfMaxInodeUsagePct => "float", | ||||
DHCPAddressRanges => { | ||||
type => "list", | ||||
emptyOk => 1, | ||||
child => { | ||||
type => "hash", | ||||
noKeyEdit => 1, | ||||
order => [qw(ipAddrBase first last)], | ||||
child => { | ||||
ipAddrBase => "string", | ||||
first => "integer", | ||||
last => "integer", | ||||
}, | ||||
}, | ||||
}, | }, | |||
BackupPCUser => "string", | BackupPCUser => "string", | |||
CgiDir => "string", | CgiDir => "string", | |||
InstallDir => "string", | InstallDir => "string", | |||
TopDir => "string", | TopDir => "string", | |||
ConfDir => "string", | ConfDir => "string", | |||
LogDir => "string", | LogDir => "string", | |||
RunDir => "string", | RunDir => "string", | |||
BackupPCUserVerify => "boolean", | BackupPCUserVerify => "boolean", | |||
HardLinkMax => "integer", | HardLinkMax => "integer", | |||
PerlModuleLoad => { | PerlModuleLoad => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
undefIfEmpty => 1, | undefIfEmpty => 1, | |||
child => "string", | child => "string", | |||
}, | }, | |||
ServerInitdPath => {type => "string", undefIfEmpty => 1}, | ServerInitdPath => {type => "string", undefIfEmpty => 1}, | |||
ServerInitdStartCmd => "string", | ServerInitdStartCmd => "string", | |||
###################################################################### | ###################################################################### | |||
# What to backup and when to do it | # What to backup and when to do it | |||
# (can be overridden in the per-PC config.pl) | # (can be overridden in the per-PC config.pl) | |||
###################################################################### | ###################################################################### | |||
FullPeriod => "float", | FullPeriod => "float", | |||
IncrPeriod => "float", | IncrPeriod => "float", | |||
FillCycle => "integer", | FillCycle => "integer", | |||
FullKeepCnt => { | FullKeepCnt => { | |||
type => "shortlist", | type => "shortlist", | |||
child => "integer", | child => "integer", | |||
}, | }, | |||
FullKeepCntMin => "integer", | FullKeepCntMin => "integer", | |||
FullAgeMax => "float", | FullAgeMax => "float", | |||
IncrKeepCnt => "integer", | IncrKeepCnt => "integer", | |||
IncrKeepCntMin => "integer", | IncrKeepCntMin => "integer", | |||
IncrAgeMax => "float", | IncrAgeMax => "float", | |||
BackupsDisable => "integer", | BackupsDisable => "integer", | |||
RestoreInfoKeepCnt => "integer", | RestoreInfoKeepCnt => "integer", | |||
ArchiveInfoKeepCnt => "integer", | ArchiveInfoKeepCnt => "integer", | |||
BackupFilesOnly => { | BackupFilesOnly => { | |||
type => "hash", | type => "hash", | |||
keyText => "CfgEdit_Button_New_Share", | keyText => "CfgEdit_Button_New_Share", | |||
emptyOk => 1, | emptyOk => 1, | |||
childType => { | childType => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
child => "string", | child => "string", | |||
}, | }, | |||
}, | }, | |||
BackupFilesExclude => { | BackupFilesExclude => { | |||
type => "hash", | type => "hash", | |||
keyText => "CfgEdit_Button_New_Share", | keyText => "CfgEdit_Button_New_Share", | |||
emptyOk => 1, | emptyOk => 1, | |||
childType => { | childType => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
child => "string", | child => "string", | |||
}, | }, | |||
}, | }, | |||
BlackoutBadPingLimit => "integer", | BlackoutBadPingLimit => "integer", | |||
BlackoutGoodCnt => "integer", | BlackoutGoodCnt => "integer", | |||
BlackoutPeriods => { | BlackoutPeriods => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
child => { | child => { | |||
type => "hash", | type => "hash", | |||
noKeyEdit => 1, | noKeyEdit => 1, | |||
child => { | child => { | |||
hourBegin => "float", | hourBegin => "float", | |||
hourEnd => "float", | hourEnd => "float", | |||
weekDays => { | weekDays => { | |||
type => "shortlist", | type => "shortlist", | |||
child => "integer", | child => "integer", | |||
}, | ||||
}, | }, | |||
}, | }, | |||
}, | }, | |||
}, | ||||
BackupZeroFilesIsFatal => "boolean", | BackupZeroFilesIsFatal => "boolean", | |||
###################################################################### | ###################################################################### | |||
# How to backup a client | # How to backup a client | |||
###################################################################### | ###################################################################### | |||
XferMethod => { | XferMethod => { | |||
type => "select", | type => "select", | |||
values => [qw(archive ftp rsync rsyncd smb tar)], | values => [qw(archive ftp rsync rsyncd smb tar)], | |||
}, | }, | |||
XferLogLevel => "integer", | XferLogLevel => "integer", | |||
ClientCharset => "string", | ClientCharset => "string", | |||
ClientCharsetLegacy => "string", | ClientCharsetLegacy => "string", | |||
ClientShareName2Path => { | ClientShareName2Path => { | |||
type => "hash", | type => "hash", | |||
keyText => "CfgEdit_Button_New_Share", | keyText => "CfgEdit_Button_New_Share", | |||
emptyOk => 1, | emptyOk => 1, | |||
childType => "string", | childType => "string", | |||
}, | }, | |||
RefCntFsck => "integer", | RefCntFsck => "integer", | |||
###################################################################### | ###################################################################### | |||
# Smb Configuration | # Smb Configuration | |||
###################################################################### | ###################################################################### | |||
SmbShareName => { | SmbShareName => { | |||
type => "list", | type => "list", | |||
child => "string", | child => "string", | |||
}, | }, | |||
SmbShareUserName => "string", | SmbShareUserName => "string", | |||
SmbSharePasswd => "string", | SmbSharePasswd => "string", | |||
SmbClientPath => {type => "execPath", undefIfEmpty => 1}, | SmbClientPath => {type => "execPath", undefIfEmpty => 1}, | |||
SmbClientFullCmd => "string", | SmbClientFullCmd => "string", | |||
SmbClientIncrCmd => "string", | SmbClientIncrCmd => "string", | |||
SmbClientRestoreCmd => {type => "string", undefIfEmpty => 1}, | SmbClientRestoreCmd => {type => "string", undefIfEmpty => 1}, | |||
###################################################################### | ###################################################################### | |||
# Tar Configuration | # Tar Configuration | |||
###################################################################### | ###################################################################### | |||
TarShareName => { | TarShareName => { | |||
type => "list", | type => "list", | |||
child => "string", | child => "string", | |||
}, | }, | |||
TarClientCmd => "string", | TarClientCmd => "string", | |||
TarFullArgs => "string", | TarFullArgs => "string", | |||
TarIncrArgs => "string", | TarIncrArgs => "string", | |||
TarClientRestoreCmd => {type => "string", undefIfEmpty => 1}, | TarClientRestoreCmd => {type => "string", undefIfEmpty => 1}, | |||
TarClientPath => {type => "string", undefIfEmpty => 1}, | TarClientPath => {type => "string", undefIfEmpty => 1}, | |||
###################################################################### | ###################################################################### | |||
# Rsync Configuration | # Rsync Configuration | |||
###################################################################### | ###################################################################### | |||
RsyncShareName => { | RsyncShareName => { | |||
type => "list", | type => "list", | |||
child => "string", | child => "string", | |||
}, | }, | |||
RsyncBackupPCPath => {type => "execPath", undefIfEmpty => 1}, | RsyncBackupPCPath => {type => "execPath", undefIfEmpty => 1}, | |||
RsyncClientPath => {type => "string", undefIfEmpty => 1}, | RsyncClientPath => {type => "string", undefIfEmpty => 1}, | |||
RsyncSshArgs => { | RsyncSshArgs => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
child => "string", | child => "string", | |||
}, | }, | |||
###################################################################### | ###################################################################### | |||
# Rsyncd Configuration | # Rsyncd Configuration | |||
###################################################################### | ###################################################################### | |||
RsyncdClientPort => "integer", | RsyncdClientPort => "integer", | |||
RsyncdUserName => "string", | RsyncdUserName => "string", | |||
RsyncdPasswd => "string", | RsyncdPasswd => "string", | |||
###################################################################### | ###################################################################### | |||
# Rsync(d) Options | # Rsync(d) Options | |||
###################################################################### | ###################################################################### | |||
RsyncArgs => { | RsyncArgs => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
child => "string", | child => "string", | |||
}, | }, | |||
RsyncArgsExtra => { | RsyncArgsExtra => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
child => "string", | child => "string", | |||
}, | }, | |||
RsyncRestoreArgs => { | RsyncRestoreArgs => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
undefIfEmpty => 1, | undefIfEmpty => 1, | |||
child => "string", | child => "string", | |||
}, | }, | |||
RsyncFullArgsExtra => { | RsyncRestoreArgsExtra => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
child => "string", | undefIfEmpty => 1, | |||
}, | child => "string", | |||
RsyncIncrArgsExtra => { | }, | |||
type => "list", | RsyncFullArgsExtra => { | |||
emptyOk => 1, | type => "list", | |||
child => "string", | emptyOk => 1, | |||
child => "string", | ||||
}, | ||||
RsyncIncrArgsExtra => { | ||||
type => "list", | ||||
emptyOk => 1, | ||||
child => "string", | ||||
}, | }, | |||
###################################################################### | ###################################################################### | |||
# FTP Configuration | # FTP Configuration | |||
###################################################################### | ###################################################################### | |||
FtpShareName => { | FtpShareName => { | |||
type => "list", | type => "list", | |||
child => "string", | child => "string", | |||
}, | }, | |||
FtpUserName => "string", | FtpUserName => "string", | |||
FtpPasswd => "string", | FtpPasswd => "string", | |||
FtpPassive => "boolean", | FtpPassive => "boolean", | |||
FtpBlockSize => "integer", | FtpBlockSize => "integer", | |||
FtpPort => "integer", | FtpPort => "integer", | |||
FtpTimeout => "integer", | FtpTimeout => "integer", | |||
FtpFollowSymlinks => "boolean", | FtpFollowSymlinks => "boolean", | |||
###################################################################### | ###################################################################### | |||
# Archive Configuration | # Archive Configuration | |||
###################################################################### | ###################################################################### | |||
ArchiveDest => "string", | ArchiveDest => "string", | |||
ArchiveComp => { | ArchiveComp => { | |||
type => "select", | type => "select", | |||
values => [qw(none bzip2 gzip)], | values => [qw(none bzip2 gzip)], | |||
}, | }, | |||
ArchivePar => "boolean", | ArchivePar => "boolean", | |||
ArchiveSplit => "float", | ArchiveSplit => "float", | |||
ArchiveClientCmd => "string", | ArchiveClientCmd => "string", | |||
###################################################################### | ###################################################################### | |||
# Other Client Configuration | # Other Client Configuration | |||
###################################################################### | ###################################################################### | |||
NmbLookupCmd => "string", | NmbLookupCmd => "string", | |||
NmbLookupFindHostCmd => "string", | NmbLookupFindHostCmd => "string", | |||
ClientComment => "string", | ClientComment => "string", | |||
FixedIPNetBiosNameCheck => "boolean", | FixedIPNetBiosNameCheck => "boolean", | |||
PingCmd => "string", | PingCmd => "string", | |||
PingMaxMsec => "float", | PingMaxMsec => "float", | |||
ClientTimeout => "integer", | ClientTimeout => "integer", | |||
MaxOldPerPCLogFiles => "integer", | MaxOldPerPCLogFiles => "integer", | |||
CompressLevel => "integer", | CompressLevel => "integer", | |||
DumpPreUserCmd => {type => "string", undefIfEmpty => 1}, | DumpPreUserCmd => {type => "string", undefIfEmpty => 1}, | |||
DumpPostUserCmd => {type => "string", undefIfEmpty => 1}, | DumpPostUserCmd => {type => "string", undefIfEmpty => 1}, | |||
DumpPreShareCmd => {type => "string", undefIfEmpty => 1}, | DumpPreShareCmd => {type => "string", undefIfEmpty => 1}, | |||
DumpPostShareCmd => {type => "string", undefIfEmpty => 1}, | DumpPostShareCmd => {type => "string", undefIfEmpty => 1}, | |||
RestorePreUserCmd => {type => "string", undefIfEmpty => 1}, | RestorePreUserCmd => {type => "string", undefIfEmpty => 1}, | |||
RestorePostUserCmd => {type => "string", undefIfEmpty => 1}, | RestorePostUserCmd => {type => "string", undefIfEmpty => 1}, | |||
ArchivePreUserCmd => {type => "string", undefIfEmpty => 1}, | ArchivePreUserCmd => {type => "string", undefIfEmpty => 1}, | |||
ArchivePostUserCmd => {type => "string", undefIfEmpty => 1}, | ArchivePostUserCmd => {type => "string", undefIfEmpty => 1}, | |||
UserCmdCheckStatus => "boolean", | UserCmdCheckStatus => "boolean", | |||
ClientNameAlias => { | ClientNameAlias => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
undefIfEmpty => 1, | undefIfEmpty => 1, | |||
child => "string", | child => "string", | |||
}, | }, | |||
###################################################################### | ###################################################################### | |||
# Email reminders, status and messages | # Email reminders, status and messages | |||
# (can be overridden in the per-PC config.pl) | # (can be overridden in the per-PC config.pl) | |||
###################################################################### | ###################################################################### | |||
SendmailPath => {type => "execPath", undefIfEmpty => 1}, | SendmailPath => {type => "execPath", undefIfEmpty => 1}, | |||
EMailNotifyMinDays => "float", | EMailNotifyMinDays => "float", | |||
EMailFromUserName => "string", | EMailFromUserName => "string", | |||
EMailAdminUserName => "string", | EMailAdminUserName => "string", | |||
EMailAdminSubject => "string", | EMailAdminSubject => "string", | |||
EMailUserDestDomain => "string", | EMailUserDestDomain => "string", | |||
EMailNoBackupEverSubj => {type => "string", undefIfEmpty => 1}, | EMailNoBackupEverSubj => {type => "string", undefIfEmpty => 1}, | |||
EMailNoBackupEverMesg => {type => "bigstring", undefIfEmpty => 1}, | EMailNoBackupEverMesg => {type => "bigstring", undefIfEmpty => 1}, | |||
EMailNotifyOldBackupDays => "float", | EMailNotifyOldBackupDays => "float", | |||
EMailNoBackupRecentSubj => {type => "string", undefIfEmpty => 1}, | EMailNoBackupRecentSubj => {type => "string", undefIfEmpty => 1}, | |||
EMailNoBackupRecentMesg => {type => "bigstring", undefIfEmpty => 1}, | EMailNoBackupRecentMesg => {type => "bigstring", undefIfEmpty => 1}, | |||
EMailNotifyOldOutlookDays => "float", | EMailNotifyOldOutlookDays => "float", | |||
EMailOutlookBackupSubj => {type => "string", undefIfEmpty => 1}, | EMailOutlookBackupSubj => {type => "string", undefIfEmpty => 1}, | |||
EMailOutlookBackupMesg => {type => "bigstring", undefIfEmpty => 1}, | EMailOutlookBackupMesg => {type => "bigstring", undefIfEmpty => 1}, | |||
EMailHeaders => {type => "bigstring", undefIfEmpty => 1}, | EMailHeaders => {type => "bigstring", undefIfEmpty => 1}, | |||
###################################################################### | ###################################################################### | |||
# CGI user interface configuration settings | # CGI user interface configuration settings | |||
###################################################################### | ###################################################################### | |||
CgiAdminUserGroup => "string", | CgiAdminUserGroup => "string", | |||
CgiAdminUsers => "string", | CgiAdminUsers => "string", | |||
SCGIServerPort => "integer", | SCGIServerPort => "integer", | |||
CgiURL => "string", | CgiURL => "string", | |||
Language => { | Language => { | |||
type => "select", | type => "select", | |||
values => [qw(cz de en es fr it ja nl pl pt_br ru uk zh_CN)], | values => [qw(cz de en es fr it ja nl pl pt_br ru uk zh_CN)], | |||
}, | }, | |||
CgiUserHomePageCheck => "string", | CgiUserHomePageCheck => "string", | |||
CgiUserUrlCreate => "string", | CgiUserUrlCreate => "string", | |||
CgiDateFormatMMDD => "integer", | CgiDateFormatMMDD => "integer", | |||
CgiNavBarAdminAllHosts => "boolean", | CgiNavBarAdminAllHosts => "boolean", | |||
CgiSearchBoxEnable => "boolean", | CgiSearchBoxEnable => "boolean", | |||
CgiNavBarLinks => { | CgiNavBarLinks => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
child => { | child => { | |||
type => "hash", | type => "hash", | |||
noKeyEdit => 1, | noKeyEdit => 1, | |||
child => { | child => { | |||
link => "string", | link => "string", | |||
lname => {type => "string", undefIfEmpty => 1}, | lname => {type => "string", undefIfEmpty => 1}, | |||
name => {type => "string", undefIfEmpty => 1}, | name => {type => "string", undefIfEmpty => 1}, | |||
}, | }, | |||
}, | }, | |||
}, | }, | |||
CgiStatusHilightColor => { | CgiStatusHilightColor => { | |||
type => "hash", | type => "hash", | |||
noKeyEdit => 1, | noKeyEdit => 1, | |||
child => { | child => { | |||
Reason_backup_failed => "string", | Reason_backup_failed => "string", | |||
Reason_backup_done => "string", | Reason_backup_done => "string", | |||
Reason_no_ping => "string", | Reason_no_ping => "string", | |||
Reason_backup_canceled_by_user => "string", | Reason_backup_canceled_by_user => "string", | |||
Status_backup_in_progress => "string", | Status_backup_in_progress => "string", | |||
Disabled_OnlyManualBackups => "string", | Disabled_OnlyManualBackups => "string", | |||
Disabled_AllBackupsDisabled => "string", | Disabled_AllBackupsDisabled => "string", | |||
}, | ||||
}, | ||||
CgiHeaders => "bigstring", | ||||
CgiImageDir => "string", | ||||
CgiExt2ContentType => { | ||||
type => "hash", | ||||
emptyOk => 1, | ||||
childType => "string", | ||||
}, | }, | |||
CgiImageDirURL => "string", | }, | |||
CgiCSSFile => "string", | CgiHeaders => "bigstring", | |||
CgiImageDir => "string", | ||||
CgiExt2ContentType => { | ||||
type => "hash", | ||||
emptyOk => 1, | ||||
childType => "string", | ||||
}, | ||||
CgiImageDirURL => "string", | ||||
CgiCSSFile => "string", | ||||
CgiUserDeleteBackupEnable => "integer", | CgiUserDeleteBackupEnable => "integer", | |||
CgiUserConfigEditEnable => "boolean", | CgiUserConfigEditEnable => "boolean", | |||
CgiUserConfigEdit => { | CgiUserConfigEdit => { | |||
type => "hash", | type => "hash", | |||
noKeyEdit => 1, | noKeyEdit => 1, | |||
child => { | child => { | |||
FullPeriod => "boolean", | FullPeriod => "boolean", | |||
IncrPeriod => "boolean", | IncrPeriod => "boolean", | |||
FillCycle => "boolean", | FillCycle => "boolean", | |||
FullKeepCnt => "boolean", | FullKeepCnt => "boolean", | |||
FullKeepCntMin => "boolean", | FullKeepCntMin => "boolean", | |||
FullAgeMax => "boolean", | FullAgeMax => "boolean", | |||
IncrKeepCnt => "boolean", | IncrKeepCnt => "boolean", | |||
IncrKeepCntMin => "boolean", | IncrKeepCntMin => "boolean", | |||
IncrAgeMax => "boolean", | IncrAgeMax => "boolean", | |||
RestoreInfoKeepCnt => "boolean", | RestoreInfoKeepCnt => "boolean", | |||
ArchiveInfoKeepCnt => "boolean", | ArchiveInfoKeepCnt => "boolean", | |||
BackupFilesOnly => "boolean", | BackupFilesOnly => "boolean", | |||
BackupFilesExclude => "boolean", | BackupFilesExclude => "boolean", | |||
BackupsDisable => "boolean", | BackupsDisable => "boolean", | |||
BlackoutBadPingLimit => "boolean", | BlackoutBadPingLimit => "boolean", | |||
BlackoutGoodCnt => "boolean", | BlackoutGoodCnt => "boolean", | |||
BlackoutPeriods => "boolean", | BlackoutPeriods => "boolean", | |||
BackupZeroFilesIsFatal => "boolean", | BackupZeroFilesIsFatal => "boolean", | |||
XferMethod => "boolean", | XferMethod => "boolean", | |||
XferLogLevel => "boolean", | XferLogLevel => "boolean", | |||
ClientCharset => "boolean", | ClientCharset => "boolean", | |||
ClientCharsetLegacy => "boolean", | ClientCharsetLegacy => "boolean", | |||
ClientShareName2Path => "boolean", | ClientShareName2Path => "boolean", | |||
RefCntFsck => "boolean", | RefCntFsck => "boolean", | |||
SmbShareName => "boolean", | SmbShareName => "boolean", | |||
SmbShareUserName => "boolean", | SmbShareUserName => "boolean", | |||
SmbSharePasswd => "boolean", | SmbSharePasswd => "boolean", | |||
SmbClientPath => "boolean", | SmbClientPath => "boolean", | |||
SmbClientFullCmd => "boolean", | SmbClientFullCmd => "boolean", | |||
SmbClientIncrCmd => "boolean", | SmbClientIncrCmd => "boolean", | |||
SmbClientRestoreCmd => "boolean", | SmbClientRestoreCmd => "boolean", | |||
TarShareName => "boolean", | TarShareName => "boolean", | |||
TarFullArgs => "boolean", | TarFullArgs => "boolean", | |||
TarIncrArgs => "boolean", | TarIncrArgs => "boolean", | |||
TarClientCmd => "boolean", | TarClientCmd => "boolean", | |||
TarClientPath => "boolean", | TarClientPath => "boolean", | |||
TarClientRestoreCmd => "boolean", | TarClientRestoreCmd => "boolean", | |||
RsyncShareName => "boolean", | RsyncShareName => "boolean", | |||
RsyncBackupPCPath => "boolean", | RsyncBackupPCPath => "boolean", | |||
RsyncdClientPort => "boolean", | RsyncdClientPort => "boolean", | |||
RsyncdUserName => "boolean", | RsyncdUserName => "boolean", | |||
RsyncdPasswd => "boolean", | RsyncdPasswd => "boolean", | |||
RsyncArgs => "boolean", | RsyncArgs => "boolean", | |||
RsyncArgsExtra => "boolean", | RsyncArgsExtra => "boolean", | |||
RsyncRestoreArgs => "boolean", | RsyncRestoreArgs => "boolean", | |||
RsyncFullArgsExtra => "boolean", | RsyncRestoreArgsExtra => "boolean", | |||
RsyncIncrArgsExtra => "boolean", | RsyncFullArgsExtra => "boolean", | |||
RsyncSshArgs => "boolean", | RsyncIncrArgsExtra => "boolean", | |||
RsyncClientPath => "boolean", | RsyncSshArgs => "boolean", | |||
FtpShareName => "boolean", | RsyncClientPath => "boolean", | |||
FtpUserName => "boolean", | FtpShareName => "boolean", | |||
FtpPasswd => "boolean", | FtpUserName => "boolean", | |||
FtpBlockSize => "boolean", | FtpPasswd => "boolean", | |||
FtpPort => "boolean", | FtpBlockSize => "boolean", | |||
FtpTimeout => "boolean", | FtpPort => "boolean", | |||
FtpFollowSymlinks => "boolean", | FtpTimeout => "boolean", | |||
FtpRestoreEnabled => "boolean", | FtpFollowSymlinks => "boolean", | |||
ArchiveDest => "boolean", | FtpRestoreEnabled => "boolean", | |||
ArchiveComp => "boolean", | ArchiveDest => "boolean", | |||
ArchivePar => "boolean", | ArchiveComp => "boolean", | |||
ArchiveSplit => "boolean", | ArchivePar => "boolean", | |||
ArchiveClientCmd => "boolean", | ArchiveSplit => "boolean", | |||
FixedIPNetBiosNameCheck => "boolean", | ArchiveClientCmd => "boolean", | |||
PingMaxMsec => "boolean", | FixedIPNetBiosNameCheck => "boolean", | |||
NmbLookupCmd => "boolean", | PingMaxMsec => "boolean", | |||
NmbLookupFindHostCmd => "boolean", | NmbLookupCmd => "boolean", | |||
PingCmd => "boolean", | NmbLookupFindHostCmd => "boolean", | |||
ClientTimeout => "boolean", | PingCmd => "boolean", | |||
MaxOldPerPCLogFiles => "boolean", | ClientTimeout => "boolean", | |||
CompressLevel => "boolean", | MaxOldPerPCLogFiles => "boolean", | |||
ClientNameAlias => "boolean", | CompressLevel => "boolean", | |||
ClientComment => "boolean", | ClientNameAlias => "boolean", | |||
DumpPreUserCmd => "boolean", | ClientComment => "boolean", | |||
DumpPostUserCmd => "boolean", | DumpPreUserCmd => "boolean", | |||
RestorePreUserCmd => "boolean", | DumpPostUserCmd => "boolean", | |||
RestorePostUserCmd => "boolean", | RestorePreUserCmd => "boolean", | |||
ArchivePreUserCmd => "boolean", | RestorePostUserCmd => "boolean", | |||
ArchivePostUserCmd => "boolean", | ArchivePreUserCmd => "boolean", | |||
DumpPostShareCmd => "boolean", | ArchivePostUserCmd => "boolean", | |||
DumpPreShareCmd => "boolean", | DumpPostShareCmd => "boolean", | |||
UserCmdCheckStatus => "boolean", | DumpPreShareCmd => "boolean", | |||
EMailNotifyMinDays => "boolean", | UserCmdCheckStatus => "boolean", | |||
EMailFromUserName => "boolean", | EMailNotifyMinDays => "boolean", | |||
EMailAdminSubject => "boolean", | EMailFromUserName => "boolean", | |||
EMailAdminUserName => "boolean", | EMailAdminSubject => "boolean", | |||
EMailUserDestDomain => "boolean", | EMailAdminUserName => "boolean", | |||
EMailNoBackupEverSubj => "boolean", | EMailUserDestDomain => "boolean", | |||
EMailNoBackupEverMesg => "boolean", | EMailNoBackupEverSubj => "boolean", | |||
EMailNotifyOldBackupDays => "boolean", | EMailNoBackupEverMesg => "boolean", | |||
EMailNoBackupRecentSubj => "boolean", | EMailNotifyOldBackupDays => "boolean", | |||
EMailNoBackupRecentMesg => "boolean", | EMailNoBackupRecentSubj => "boolean", | |||
EMailNotifyOldOutlookDays => "boolean", | EMailNoBackupRecentMesg => "boolean", | |||
EMailOutlookBackupSubj => "boolean", | EMailNotifyOldOutlookDays => "boolean", | |||
EMailOutlookBackupMesg => "boolean", | EMailOutlookBackupSubj => "boolean", | |||
EMailHeaders => "boolean", | EMailOutlookBackupMesg => "boolean", | |||
}, | EMailHeaders => "boolean", | |||
}, | ||||
}, | }, | |||
###################################################################### | ###################################################################### | |||
# Fake config setting for editing the hosts | # Fake config setting for editing the hosts | |||
###################################################################### | ###################################################################### | |||
Hosts => { | Hosts => { | |||
type => "list", | type => "list", | |||
emptyOk => 1, | emptyOk => 1, | |||
child => { | child => { | |||
type => "horizHash", | type => "horizHash", | |||
order => [qw(host dhcp user moreUsers)], | order => [qw(host dhcp user moreUsers)], | |||
noKeyEdit => 1, | noKeyEdit => 1, | |||
child => { | child => { | |||
host => { type => "string", size => 20 }, | host => {type => "string", size => 20}, | |||
dhcp => { type => "boolean" }, | dhcp => {type => "boolean"}, | |||
user => { type => "string", size => 20 }, | user => {type => "string", size => 20}, | |||
moreUsers => { type => "string", size => 30 }, | moreUsers => {type => "string", size => 30}, | |||
}, | }, | |||
}, | }, | |||
}, | }, | |||
); | ); | |||
1; | 1; | |||
End of changes. 41 change blocks. | ||||
385 lines changed or deleted | 391 lines changed or added |