/dev/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/trunk

« back to all changes in this revision

Viewing changes to setups/backup/config.php

  • Committer: Suren A. Chilingaryan
  • Date: 2010-08-20 04:28:10 UTC
  • mto: This revision was merged to the branch mainline in revision 206.
  • Revision ID: csa@dside.dyndns.org-20100820042810-ybx4dm184sapll3y
Support for ZEUS backup for MSSQL-based installations, still backed-up in MySQL

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
$ADEI_RELEASE = false;
 
4
 
 
5
$TITLE = "Backup";
 
6
 
 
7
$READER_DB_BACKUP = array(
 
8
        "backup_detector" => array (
 
9
            "title" => _("KATRIN Detector"),
 
10
            "reader" => "ZEUS",
 
11
            "driver" => "odbc",
 
12
            "sqldrv" => "mssql",
 
13
            "subdrv" => "FreeTDS",
 
14
            "host" => "128.95.93.87",
 
15
            "database" => array ("katrin"),
 
16
            "port" => 1433,
 
17
            "user" => 'souren',
 
18
            "password" => '$souren$',
 
19
            "multibase" => false,
 
20
            "timeout" => 200000,
 
21
            "ping" => true,
 
22
//          "disconnected" => true
 
23
        )
 
24
);
 
25
 
 
26
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_BACKUP, $READER_DB);
 
27
else $READER_DB = $READER_DB_BACKUP;
 
28
 
 
29
$OPTIONS["backup_detector"] = array(
 
30
            "backup" => "backup_detector",
 
31
            "lclb_is_varchar" => true,
 
32
            "date_limit" => "2008-08-15 00:00:00",              //GMT
 
33
            "optimize_empty_cache" => true,
 
34
//          "graph_interpolate" => false,
 
35
            "maximal_allowed_gap" => 120,
 
36
            "ignore_invalid_data" => true,
 
37
//          "fill_raw_first" => true,
 
38
            "overcome_reader_faults" => true,  // Use CACHE if connection to reader is failed 
 
39
            "use_cache_timewindow" => true,
 
40
            "timestamp_channels" => true,       // Groups is prefixed with two channels with accquisition timestamps (may give a number)
 
41
            "alarm_severity" => 0,
 
42
            "channel_uids" => "/^5\d\d[\-_]/",
 
43
            "axis" => array(
 
44
                "/^522-RTP/i" => "temperature",
 
45
                "/^522-RP[PV]/i" => "vacuum"
 
46
            )
 
47
);
 
48
 
 
49
 
 
50
?>