Changeset 1873

Show
Ignore:
Timestamp:
17/10/2007 13:45:14 (15 months ago)
Author:
chris
Message:

Update to match improved comments generated by bbackupd-config in recent
versions.

Increase maximum diffing time to 120 seconds (from 20).

Enable KeepAliveTime by default and set to 120 seconds.

Link to James O'Gorman's NotifySysAdmin?.vbs VBScript which works on
Windows, replacing the default shell script.

(merges [1829])

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/win32/bbackupd.conf

    r217 r1873  
    1313# change the pid file location (below) 
    1414 
    15  
    16 # This script is run whenever bbackupd encounters a problem which requires 
    17 # the system administrator to assist: 
     15# This script is run whenever bbackupd changes state or encounters a 
     16# problem which requires the system administrator to assist: 
     17# 
    1818# 1) The store is full, and no more data can be uploaded. 
    1919# 2) Some files or directories were not readable. 
    20 # The default script emails the system administrator. 
    21  
    22 # NotifyScript = NotifySysadmin.sh 
    23  
    24  
    25 # A scan of the local discs will be made once an hour (approximately). 
    26 # To avoid cycles of load on the server, this time is randomly adjusted by a small 
     20# 3) A backup run starts or finishes. 
     21# 
     22# The default script emails the system administrator, except for backups 
     23# starting and stopping, where it does nothing. 
     24# 
     25# NOTE: If your client does not run a local SMTP server then you MUST 
     26# edit this script and uncomment the lines near the end, which specify 
     27# the remote SMTP server to use for sending mail. 
     28 
     29NotifyScript = cscript "C:\Program Files\Box Backup\NotifySysAdmin.vbs" 
     30 
     31 
     32# The number of seconds between backup runs under normal conditions. To avoid  
     33# cycles of load on the server, this time is randomly adjusted by a small  
    2734# percentage as the daemon runs. 
    2835 
     
    3037 
    3138 
    32 # A file must have been modified at least 6 hours ago before it will be uploaded. 
     39# The minimum age of a file, in seconds, that will be uploaded. Avoids  
     40# repeated uploads of a file which is constantly being modified. 
    3341 
    3442MinimumFileAge = 21600 
    3543 
    3644 
    37 # If a file is modified repeated, it won't be uploaded immediately in case it's modified again. 
    38 # However, it should be uploaded eventually. This is how long we should wait after first noticing 
    39 # a change. (1 day) 
     45# If a file is modified repeated, it won't be uploaded immediately in case  
     46# it's modified again, due to the MinimumFileAge specified above. However, it  
     47# should be uploaded eventually even if it is being modified repeatedly. This  
     48# is how long we should wait, in seconds, after first noticing a change.  
     49# (86400 seconds = 1 day) 
    4050 
    4151MaxUploadWait = 86400 
     52 
     53# If the connection is idle for some time (e.g. over 10 minutes or 600 
     54# seconds, not sure exactly how long) then the server will give up and 
     55# disconnect the client, resulting in Connection Protocol_Timeout errors 
     56# on the server and TLSReadFailed or TLSWriteFailed errors on the client. 
     57# Also, some firewalls and NAT gateways will kill idle connections after 
     58# similar lengths of time.  
     59# 
     60# This can happen for example when most files are backed up already and 
     61# don't need to be sent to the store again, while scanning a large 
     62# directory, or while calculating diffs of a large file. To avoid this, 
     63# KeepAliveTime specifies that special keep-alive messages should be sent 
     64# when the connection is otherwise idle for a certain length of time, 
     65# specified here in seconds. 
     66# 
     67# The default is that these messages are never sent, equivalent to setting 
     68# this option to zero, but we recommend that all users enable this. 
     69 
     70KeepAliveTime = 120 
    4271 
    4372 
     
    5483 
    5584 
    56 # The limit on how much time is spent diffing files. Most files shouldn't take very long, 
    57 # but if you have really big files you can use this to limit the time spent diffing them. 
     85# The limit on how much time is spent diffing files, in seconds. Most files  
     86# shouldn't take very long, but if you have really big files you can use this  
     87# to limit the time spent diffing them. 
     88# 
    5889# * Reduce if you are having problems with processor usage. 
    59 # * Increase if you have large files, and think the upload of changes is too large and want 
    60 #   to spend more time searching for unchanged blocks. 
    61  
    62 MaximumDiffingTime = 20 
    63  
    64 # KeepAliveTime requires Gary's SSL KeepAlive patches 
    65 # KeepAliveTime = 250 
     90# 
     91# * Increase if you have large files, and think the upload of changes is too  
     92#   large and you want bbackupd to spend more time searching for unchanged 
     93#   blocks. 
     94 
     95MaximumDiffingTime = 120 
     96 
    6697 
    6798# Uncomment this line to see exactly what the daemon is going when it's connected to the server. 
     
    70101 
    71102 
    72 # Use this to temporarily stop bbackupd from syncronising or connecting to the store. 
    73 # This specifies a program or script script which is run just before each sync, and ideally 
    74 # the full path to the interpreter. It will be run as the same user bbackupd is running as, 
    75 # usually root. 
    76 # The script prints either "now" or a number to STDOUT (and a terminating newline, no quotes). 
    77 # If the result was "now", then the sync will happen. If it's a number, then the script will 
    78 # be asked again in that number of seconds. 
    79 # For example, you could use this on a laptop to only backup when on a specific network. 
     103# This specifies a program or script script which is run just before each  
     104# sync, and ideally the full path to the interpreter. It will be run as the  
     105# same user bbackupd is running as, usually root. 
     106# 
     107# The script must output (print) either "now" or a number to STDOUT (and a  
     108# terminating newline, no quotes). 
     109# 
     110# If the result was "now", then the sync will happen. If it's a number, then  
     111# no backup will happen for that number of seconds (bbackupd will pause) and  
     112# then the script will be run again. 
     113# 
     114# Use this to temporarily stop bbackupd from syncronising or connecting to the  
     115# store. For example, you could use this on a laptop to only backup when on a  
     116# specific network, or when it has a working Internet connection. 
    80117 
    81118# SyncAllowScript = /path/to/intepreter/or/exe script-name parameters etc 
     
    86123CommandSocket = pipe 
    87124 
     125# Uncomment the StoreObjectInfoFile to enable the experimental archiving 
     126# of the daemon's state (including client store marker and configuration) 
     127# between backup runs. This saves time and increases efficiency when 
     128# bbackupd is frequently stopped and started, since it removes the need 
     129# to rescan all directories on the remote server. However, it is new and 
     130# not yet heavily tested, so use with caution. 
     131 
     132# StoreObjectInfoFile = C:\Program Files\Box Backup\bbackupd\bbackupd.state 
    88133 
    89134Server 
     
    92137} 
    93138 
    94 # StoreObjectInfoFile requires Gary's client marker serialisation patch 
    95 # StoreObjectInfoFile = C:\Program Files\Box Backup\bbackupd\bbackupd.dat 
    96  
    97 #  
     139 
    98140# BackupLocations specifies which locations on disc should be backed up. Each 
    99141# directory is in the format 
     
    124166#  
    125167# In general, Exclude excludes a file or directory, unless the directory is 
    126 # explicitly mentioned in a AlwaysInclude directive. 
    127 #  
    128 # If a directive ends in Regex, then it is a regular expression rather than a 
     168# explicitly mentioned in a AlwaysInclude directive. However, Box Backup 
     169# does NOT scan inside excluded directories and will never back up an 
     170# AlwaysIncluded file or directory inside an excluded directory or any 
     171# subdirectory thereof. 
     172# 
     173# To back up a directory inside an excluded directory, use a configuration 
     174# like this, to ensure that each directory in the path to the important 
     175# files is included, but none of their contents will be backed up except 
     176# the directories futher down that path to the important one. 
     177# 
     178# ExcludeDirsRegex = /home/user/bigfiles/.* 
     179# ExcludeFilesRegex = /home/user/bigfiles/.* 
     180# AlwaysIncludeDir = /home/user/bigfiles/path 
     181# AlwaysIncludeDir = /home/user/bigfiles/path/to 
     182# AlwaysIncludeDir = /home/user/bigfiles/path/important 
     183# AlwaysIncludeDir = /home/user/bigfiles/path/important/files 
     184# AlwaysIncludeDirsRegex = /home/user/bigfiles/path/important/files/.* 
     185# AlwaysIncludeFilesRegex = /home/user/bigfiles/path/important/files/.* 
     186#  
     187# If a directive ends in Regex, then it is a regular expression rather than a  
    129188# explicit full pathname. See 
    130189#  
     
    132191#  
    133192# for the regex syntax on your platform. 
    134 #  
    135193 
    136194BackupLocations