📄 meta.pm
字号:
#============================================================= -*-perl-*-## BackupPC::Config::Meta package## DESCRIPTION## This library defines a BackupPC::Config::Meta class.## AUTHOR# Craig Barratt <cbarratt@users.sourceforge.net>## COPYRIGHT# Copyright (C) 2004-2007 Craig Barratt## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA##========================================================================## Version 3.1.0, released 25 Nov 2007.## See http://backuppc.sourceforge.net.##========================================================================package BackupPC::Config::Meta;use strict;require Exporter;use vars qw( @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS );use vars qw(%ConfigMeta);@ISA = qw(Exporter);@EXPORT = qw( );@EXPORT_OK = qw( %ConfigMeta );%EXPORT_TAGS = ( 'all' => [ @EXPORT_OK ],);## Define the data types for all the config variables#%ConfigMeta = ( ###################################################################### # General server configuration ###################################################################### ServerHost => "string", ServerPort => "integer", ServerMesgSecret => "string", MyPath => {type => "string", undefIfEmpty => 1}, UmaskMode => "integer", WakeupSchedule => { type => "shortlist", child => "float", }, MaxBackups => "integer", MaxUserBackups => "integer", MaxPendingCmds => "integer", MaxBackupPCNightlyJobs => "integer", BackupPCNightlyPeriod => "integer", MaxOldLogFiles => "integer", SshPath => {type => "execPath", undefIfEmpty => 1}, NmbLookupPath => {type => "execPath", undefIfEmpty => 1}, PingPath => {type => "execPath", undefIfEmpty => 1}, DfPath => {type => "execPath", undefIfEmpty => 1}, DfCmd => "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}, DfMaxUsagePct => "float", TrashCleanSleepSec => "integer", DHCPAddressRanges => { type => "list", emptyOk => 1, child => { type => "hash", noKeyEdit => 1, order => [qw(ipAddrBase first last)], child => { ipAddrBase => "string", first => "integer", last => "integer", }, }, }, BackupPCUser => "string", CgiDir => "string", InstallDir => "string", TopDir => "string", ConfDir => "string", LogDir => "string", BackupPCUserVerify => "boolean", HardLinkMax => "integer", PerlModuleLoad => { type => "list", emptyOk => 1, undefIfEmpty => 1, child => "string", }, ServerInitdPath => {type => "string", undefIfEmpty => 1}, ServerInitdStartCmd => "string", ###################################################################### # What to backup and when to do it # (can be overridden in the per-PC config.pl) ###################################################################### FullPeriod => "float", IncrPeriod => "float", FullKeepCnt => { type => "shortlist", child => "integer", }, FullKeepCntMin => "integer", FullAgeMax => "float", IncrKeepCnt => "integer", IncrKeepCntMin => "integer", IncrAgeMax => "float", IncrLevels => { type => "shortlist", child => "integer", }, PartialAgeMax => "float", BackupsDisable => "integer", IncrFill => "boolean", RestoreInfoKeepCnt => "integer", ArchiveInfoKeepCnt => "integer", BackupFilesOnly => { type => "hash", emptyOk => 1, childType => { type => "list", emptyOk => 1, child => "string", }, }, BackupFilesExclude => { type => "hash", emptyOk => 1, childType => { type => "list", emptyOk => 1, child => "string", }, }, BlackoutBadPingLimit => "integer", BlackoutGoodCnt => "integer", BlackoutPeriods => { type => "list", emptyOk => 1, child => { type => "hash", noKeyEdit => 1, child => { hourBegin => "float", hourEnd => "float", weekDays => { type => "shortlist", child => "integer", }, }, }, }, BackupZeroFilesIsFatal => "boolean", ###################################################################### # How to backup a client ###################################################################### XferMethod => { type => "select", values => [qw(archive rsync rsyncd smb tar)], }, XferLogLevel => "integer", ClientCharset => "string", ClientCharsetLegacy => "string", SmbShareName => { type => "list", child => "string", }, SmbShareUserName => "string", SmbSharePasswd => "string", SmbClientPath => {type => "execPath", undefIfEmpty => 1}, SmbClientFullCmd => "string", SmbClientIncrCmd => "string", SmbClientRestoreCmd => {type => "string", undefIfEmpty => 1}, TarShareName => { type => "list", child => "string", }, TarClientCmd => "string", TarFullArgs => "string", TarIncrArgs => "string", TarClientRestoreCmd => {type => "string", undefIfEmpty => 1}, TarClientPath => {type => "string", undefIfEmpty => 1}, RsyncShareName => { type => "list", child => "string", }, RsyncClientPath => {type => "string", undefIfEmpty => 1}, RsyncClientCmd => "string", RsyncClientRestoreCmd => "string", RsyncdClientPort => "integer", RsyncdUserName => "string", RsyncdPasswd => "string", RsyncdAuthRequired => "boolean",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -