# # Sets up the Python settings # # Things to remember: # server: the live Perforce server. The Demon will be run from here. # backup: the Perforce server that will be updated. Must # not be live, or DB corruptions can occur. POLL_INTERVAL = 2 # details about the source server class SERVER: host = "192.168.141.27" journal = "/var/log/p4d/live-journal" # will append ".jnl.(sequencenumber)" (and .gz if it's zipped) rotateJournal = "/usr/local/perforce/archived/p4d" lastCheckpoint = 9112 # location of executable files P4 = "p4" P4D = "/usr/local/perforce/p4d" RSYNC = "rsync" SSH = "ssh" SCP = "scp" # location of data files datadir = "/var/log/p4d" # map from the depot name to the directory on the local server. depotDirs = { 'depot': '/usr/local/perforce/db/depot' } pass # details about the target server class BACKUP: # hostname or IP address of the backup server host = "192.168.141.45" # user on the remote host, which will connect via SSH. An SSH Key # should be setup locally to allow for a non-password login. user = "perforce" # map from the depot name to the directory on the remote server. depotDirs = { 'depot': '/usr/local/perforce/db/depot' } # location of the P4D executable and any execution options P4D = ('/usr/local/perforce/p4d', '-r', '/usr/local/perforce/db', '-J', '/var/log/p4d/journal', '-L', '/var/log/p4d/p4err' ) # options for updating the journal from the live journal P4D_JOURNAL_OPTS = ( '-f', '-jr', # read the fragment from stdin '-' ) # Directory to store the checkpoint files that get copied from SERVER # for use in recovering from a checkpoint. checkpointDir = '/var/p4d' pass class LOGGING: # The log file for this demon process logfile = "/var/log/p4d/logDaemon.log" # the format for the time. See # http://python.org/doc/2.2.3/lib/module-time.html#strftime # for details on the format timeFormat = "[%Y-%m-%d %H:%M:%S] " # 0 = FATAL # 1 = ERR # 2 = WARN # 3 = INFO # 4 = VERBOSE # 5 = DEBUG logLevel = 5 pass class JOURNAL: listeners = ( 'hotbackup.RemoteUpdateJournal', 'hotbackup.RemoteUpdateDepot' ) pass
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 5850 | Matt Albrecht | Update logDaemon to version 1.5. | ||
#2 | 5810 | Matt Albrecht |
New version of logDaemon that has better bug fixes. Also added server-status web page for a pure client-side AJAX app that pulls together different server-side statistics. |
||
#1 | 5805 | Matt Albrecht | Update to version 1.3-alpha |