Debian Codegraph @

tests/data/cback.conf.21

raw
1 <?xml version="1.0"?>
2 <!-- Document containing all required and optional fields, peers in peer configuration and not staging. -->
3 <cb_config>
4 <reference>
5 <author>$Author: pronovic $</author>
6 <revision>1.3</revision>
7 <description>Sample configuration</description>
8 <generator>Generated by hand.</generator>
9 </reference>
10 <extensions>
11 <order_mode>dependency</order_mode>
12 <action>
13 <name>example</name>
14 <module>something.whatever</module>
15 <function>example</function>
16 <depends/>
17 </action>
18 <action>
19 <name>bogus</name>
20 <module>module</module>
21 <function>something</function>
22 <depends>
23 <run_before>a, b,c</run_before>
24 <run_after>one</run_after>
25 </depends>
26 </action>
27 </extensions>
28 <options>
29 <starting_day>tuesday</starting_day>
30 <working_dir>/opt/backup/tmp</working_dir>
31 <backup_user>backup</backup_user>
32 <backup_group>group</backup_group>
33 <rcp_command>/usr/bin/scp -1 -B</rcp_command>
34 <rsh_command>/usr/bin/ssh</rsh_command>
35 <cback_command>/usr/bin/cback</cback_command>
36 <managed_actions>collect, purge</managed_actions>
37 <override>
38 <command>mkisofs</command>
39 <abs_path>/usr/bin/mkisofs</abs_path>
40 </override>
41 <override>
42 <command>svnlook</command>
43 <abs_path>/svnlook</abs_path>
44 </override>
45 <pre_action_hook>
46 <action>collect</action>
47 <command>ls -l</command>
48 </pre_action_hook>
49 <pre_action_hook>
50 <action>subversion</action>
51 <command>mailx -S "hello"</command>
52 </pre_action_hook>
53 <post_action_hook>
54 <action>stage</action>
55 <command>df -k</command>
56 </post_action_hook>
57 </options>
58 <peers>
59 <peer>
60 <name>machine1-1</name>
61 <type>local</type>
62 <collect_dir>/opt/backup/collect</collect_dir>
63 </peer>
64 <peer>
65 <name>machine1-2</name>
66 <type>local</type>
67 <collect_dir>/var/backup</collect_dir>
68 </peer>
69 <peer>
70 <name>machine2</name>
71 <type>remote</type>
72 <collect_dir>/backup/collect</collect_dir>
73 <ignore_failures>all</ignore_failures>
74 </peer>
75 <peer>
76 <name>machine3</name>
77 <type>remote</type>
78 <backup_user>someone</backup_user>
79 <rcp_command>scp -B</rcp_command>
80 <collect_dir>/home/whatever/tmp</collect_dir>
81 </peer>
82 <peer>
83 <name>machine4</name>
84 <type>remote</type>
85 <backup_user>someone</backup_user>
86 <rcp_command>scp -B</rcp_command>
87 <rsh_command>ssh</rsh_command>
88 <cback_command>cback</cback_command>
89 <managed>Y</managed>
90 <collect_dir>/aa</collect_dir>
91 </peer>
92 <peer>
93 <name>machine5</name>
94 <type>remote</type>
95 <managed>N</managed>
96 <managed_actions>collect, purge</managed_actions>
97 <collect_dir>/bb</collect_dir>
98 </peer>
99 </peers>
100 <collect>
101 <collect_dir>/opt/backup/collect</collect_dir>
102 <collect_mode>daily</collect_mode>
103 <archive_mode>targz</archive_mode>
104 <ignore_file>.cbignore</ignore_file>
105 <exclude>
106 <abs_path>/etc/cback.conf</abs_path>
107 <abs_path>/etc/X11</abs_path>
108 <pattern>.*tmp.*</pattern>
109 <pattern>.*\.netscape\/.*</pattern>
110 </exclude>
111 <dir>
112 <abs_path>/root</abs_path>
113 </dir>
114 <dir>
115 <abs_path>/tmp</abs_path>
116 <link_depth>3</link_depth>
117 </dir>
118 <dir>
119 <abs_path>/ken</abs_path>
120 <link_depth>1</link_depth>
121 <dereference>Y</dereference>
122 </dir>
123 <dir>
124 <abs_path>/var/log</abs_path>
125 <mode>incr</mode> <!-- deprecated form -->
126 </dir>
127 <dir>
128 <abs_path>/etc</abs_path>
129 <collect_mode>incr</collect_mode>
130 <archive_mode>tar</archive_mode>
131 <ignore_file>.ignore</ignore_file>
132 </dir>
133 <dir>
134 <abs_path>/opt</abs_path>
135 <exclude>
136 <abs_path>/opt/share</abs_path>
137 <rel_path>large</rel_path> <!-- i.e. /opt/large -->
138 <pattern>.*\.doc\.*</pattern>
139 <rel_path>backup</rel_path> <!-- i.e. /opt/backup -->
140 <pattern>.*\.xls\.*</pattern>
141 <abs_path>/opt/tmp</abs_path>
142 </exclude>
143 </dir>
144 <file>
145 <abs_path>/home/root/.profile</abs_path>
146 </file>
147 <file>
148 <abs_path>/home/root/.kshrc</abs_path>
149 <mode>weekly</mode> <!-- deprecated form -->
150 </file>
151 <file>
152 <abs_path>/home/root/.aliases</abs_path>
153 <collect_mode>daily</collect_mode>
154 <archive_mode>tarbz2</archive_mode>
155 </file>
156 </collect>
157 <stage>
158 <staging_dir>/opt/backup/staging</staging_dir>
159 </stage>
160 <store>
161 <source_dir>/opt/backup/staging</source_dir>
162 <media_type>dvd+rw</media_type>
163 <device_type>dvdwriter</device_type>
164 <target_device>/dev/cdrw</target_device>
165 <drive_speed>1</drive_speed>
166 <check_data>Y</check_data>
167 <check_media>Y</check_media>
168 <warn_midnite>Y</warn_midnite>
169 <no_eject>Y</no_eject>
170 <blank_behavior>
171 <mode>weekly</mode>
172 <factor>1.3</factor>
173 </blank_behavior>
174 </store>
175 <purge>
176 <dir>
177 <abs_path>/opt/backup/stage</abs_path>
178 <retain_days>5</retain_days>
179 </dir>
180 <dir>
181 <abs_path>/opt/backup/collect</abs_path>
182 <retain_days>0</retain_days>
183 </dir>
184 <dir>
185 <abs_path>/home/backup/tmp</abs_path>
186 <retain_days>12</retain_days>
187 </dir>
188 </purge>
189 </cb_config>