Unit test framework more or less in place.
[monikop.git] / monikop.config.example
blob36a4cc930a5ad99fedcc04a9f6cc0d4f4d164855
1 # -*- perl -*-
2 #############################################################
3 # Monikop Settings
5 # Copy this file to monikop.config and adapt it to your needs.
6 ##############################################################
7 # Possible data sources, and by what directory name to represent them in
8 # destination.
9 # When the latter is not unique, care must be taken that all pathnames in the 
10 # respective sources are unique.
11 %sources = (
12     'data_producer1::data' => 'p1',
13     'data_producer2::data' => 'p2',
14     'data_producer3::data' => '',
15     'data_producer4::data' => '',
16     );
18 # Possible mount points of data destinations. Must be unique.
19 @usable_mount_points = (
20     '/media/disk_1',
21     '/media/disk_2',
22     '/media/disk_3',
23     '/blah',
24     );
26 # Common directory (under a mount point) to put new data in.
27 # Must agree with Pokinom's setting.
28 $path_in_destination =
29     'measuring_data'
30     ;
32 # Directories (under any mount point) of this name will be deleted
33 # Must agree with Pokinom's setting.
34 $path_in_destination_backed_up =
35     'backed_up'
36     ;
38 # Directory name (under a mount point) while being deleted.
39 # Must agree with Pokinom's setting.
40 $path_in_destination_being_deleted =
41     'being_deleted'
42     ;
44 # Path and file name prefix of rsync's raw logs:
45 $rsync_log_prefix =
46     '/tmp/monikop/log.'
47     ;
49 # Path and file name prefix of the list of successfully rsynced files:
50 $finished_prefix =
51     '/tmp/monikop/finished.'
52     ; 
54 # How to suffix the name of the duplicate of a safe file:
55 $safe_file_backup_suffix =
56     '.bak'
57     ; 
59 # How to suffix the name of an unfinished safe file:
60 $safe_file_unfinished_suffix =
61     '.unfinished'
62     ; 
64 # What to do (shutdown) when F3 has been pressed:
65 $key_f3_action =
66     "sudo halt -p"
67     ;
69 # What to do (reboot) when F6 has been pressed:
70 $key_f6_action =
71     "sudo reboot"
72     ;
74 # Rsyncs time (in seconds) to wait for a response:
75 $rsync_timeout =
76     30
77     ;
79 # Rsyncs directory (relative to destination) for partially transferred files.
80 # Must agree with Pokinom's setting.
81 $rsync_partial_dir_name =
82     '.rsync_partial'
83     ;