X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=conf%2Fconfig.pl;h=313ef51b2019ab27b31680818e323d0660f2c3c2;hb=2fb1e8b5cee74c72bbb8ecc7722c05256cbdc6bf;hp=0c661a1cf78d26b70d53b1bda92644ca869be912;hpb=1ce7d1541ea1279aaa0a75c16986a3fd40b608ec;p=BackupPC.git diff --git a/conf/config.pl b/conf/config.pl index 0c661a1..313ef51 100644 --- a/conf/config.pl +++ b/conf/config.pl @@ -622,6 +622,75 @@ $Conf{TarClientRestoreCmd} = '$sshPath -q -l root $host' # $Conf{TarClientPath} = '/bin/tar'; +# +# Path to rsync executable on the client +# +$Conf{RsyncClientPath} = '/bin/rsync'; + +# +# Full command to run rsync on the client machine +# +$Conf{RsyncClientCmd} = '$sshPath -q -l root $host $rsyncPath $argList'; + +# +# Full command to run rsync for restore on the client. +# +## $Conf{RsyncClientRestoreCmd} = ''; + +# +# Share name to backup. For $Conf{XferMethod} = "rsync" this should +# be a directory name, eg '/' or '/home'. For $Conf{XferMethod} = "rsyncd" +# this should be the name of the module to backup (ie: the name from +# /etc/rsynd.conf). +# +$Conf{RsyncShareName} = '/'; + +# +# Rsync daemon port on the client, for $Conf{XferMethod} = "rsyncd". +# +$Conf{RsyncdClientPort} = 873; + +# +# Key arguments to rsync server. Do not edit these unless you +# have a very thorough understanding of how File::RsyncP works. +# Really, do not edit these. See $Conf{RsyncClientArgs} instead. +# +$Conf{RsyncArgs} = [ + # + # Do not edit these! + # + '--numeric-ids', + '--perms', + '--owner', + '--group', + '--devices', + '--links', + '--block-size=2048', + '--relative', + '--recursive', +]; + +# +# Additional Rsync arguments that are given to the remote (client) +# rsync. Unfortunately you need a pretty good understanding of +# File::RsyncP to know which arguments will work; not all will. +# Examples that should work are --exclude/--include, eg: +# +# $Conf{RsyncClientArgs} = [ +# '--exclude', '*.tmp', +# ]; +# +$Conf{RsyncClientArgs} = [ +]; + +# +# Amount of verbosity in Rsync Xfer log files. 0 means be quiet, +# 1 will give some general information, 2 will give one line per file, +# 3 will include skipped files, higher values give more output. +# 10 will include byte dumps of all data read/written, which will +# make the log files huge. +# +$Conf{RsyncLogLevel} = 2; # # Full path for ssh. Security caution: normal users should not # allowed to write to this file or directory. @@ -924,6 +993,14 @@ EOF $Conf{CgiAdminUserGroup} = ''; $Conf{CgiAdminUsers} = ''; +# +# Language to use. See lib/BackupPC/Lang for the list of supported +# languages, which includes English (en) and French (fr). Currently +# this applies mainly to the CGI interface, but over time it might +# also include log files and other text output. +# +$Conf{Language} = 'en'; + # # User names that are rendered by the CGI interface can be turned # into links into their home page or other information about the @@ -954,6 +1031,14 @@ $Conf{CgiUserUrlCreate} = 'mailto:%s'; # $Conf{CgiDateFormatMMDD} = 1; +# +# If set, the complete list of hosts appears in the left navigation +# bar for administrators. Otherwise, just the hosts for which the +# user is listed in the host file (as either the user or in moreUsers) +# are displayed. +# +$Conf{CgiNavBarAdminAllHosts} = 0; + # # Header font and size for CGI interface # @@ -962,11 +1047,13 @@ $Conf{CgiHeaderFontSize} = '3'; # # Color scheme for CGI interface. Default values give a very light blue -# for the background navigation color and green for the header background. -# (You call tell I'm a better programmer than graphical designer.) +# for the background navigation color, green for the header background, +# and white for the body background. (You call tell I should stick to +# programming and not graphical design.) # $Conf{CgiNavBarBgColor} = '#ddeeee'; $Conf{CgiHeaderBgColor} = '#99cc33'; +$Conf{CgiBodyBgColor} = '#ffffff'; # # Additional CGI header text. For example, if you wanted each CGI page @@ -986,6 +1073,18 @@ $Conf{CgiHeaders} = ''; # $Conf{CgiImageDir} = ''; +# +# Additional mappings of file name extenions to Content-Type for +# individual file restore. See $Ext2ContentType in BackupPC_Admin +# for the default setting. You can add additional settings here, +# or override any default settings. Example: +# +# $Conf{CgiExt2ContentType} = { +# 'pl' => 'text/plain', +# }; +# +$Conf{CgiExt2ContentType} = { }; + # # URL (without the leading http://host) for BackupPC's image directory. # The CGI script uses this value to serve up image files.