Debian Codegraph @

tests/data/cback.conf.20

raw
1 <?xml version="1.0"?>
2 <!-- Complete document containing all required and optional fields, order mode is "dependency". -->
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 <collect>
59 <collect_dir>/opt/backup/collect</collect_dir>
60 <collect_mode>daily</collect_mode>
61 <archive_mode>targz</archive_mode>
62 <ignore_file>.cbignore</ignore_file>
63 <exclude>
64 <abs_path>/etc/cback.conf</abs_path>
65 <abs_path>/etc/X11</abs_path>
66 <pattern>.*tmp.*</pattern>
67 <pattern>.*\.netscape\/.*</pattern>
68 </exclude>
69 <dir>
70 <abs_path>/root</abs_path>
71 </dir>
72 <dir>
73 <abs_path>/tmp</abs_path>
74 <link_depth>3</link_depth>
75 </dir>
76 <dir>
77 <abs_path>/ken</abs_path>
78 <link_depth>1</link_depth>
79 <dereference>Y</dereference>
80 </dir>
81 <dir>
82 <abs_path>/var/log</abs_path>
83 <mode>incr</mode> <!-- deprecated form -->
84 </dir>
85 <dir>
86 <abs_path>/etc</abs_path>
87 <collect_mode>incr</collect_mode>
88 <archive_mode>tar</archive_mode>
89 <ignore_file>.ignore</ignore_file>
90 </dir>
91 <dir>
92 <abs_path>/opt</abs_path>
93 <exclude>
94 <abs_path>/opt/share</abs_path>
95 <rel_path>large</rel_path> <!-- i.e. /opt/large -->
96 <pattern>.*\.doc\.*</pattern>
97 <rel_path>backup</rel_path> <!-- i.e. /opt/backup -->
98 <pattern>.*\.xls\.*</pattern>
99 <abs_path>/opt/tmp</abs_path>
100 </exclude>
101 </dir>
102 <file>
103 <abs_path>/home/root/.profile</abs_path>
104 </file>
105 <file>
106 <abs_path>/home/root/.kshrc</abs_path>
107 <mode>weekly</mode> <!-- deprecated form -->
108 </file>
109 <file>
110 <abs_path>/home/root/.aliases</abs_path>
111 <collect_mode>daily</collect_mode>
112 <archive_mode>tarbz2</archive_mode>
113 </file>
114 </collect>
115 <stage>
116 <staging_dir>/opt/backup/staging</staging_dir>
117 <peer>
118 <name>machine1-1</name>
119 <type>local</type>
120 <collect_dir>/opt/backup/collect</collect_dir>
121 </peer>
122 <peer>
123 <name>machine1-2</name>
124 <type>local</type>
125 <collect_dir>/var/backup</collect_dir>
126 </peer>
127 <peer>
128 <name>machine2</name>
129 <type>remote</type>
130 <collect_dir>/backup/collect</collect_dir>
131 <ignore_failures>all</ignore_failures>
132 </peer>
133 <peer>
134 <name>machine3</name>
135 <type>remote</type>
136 <backup_user>someone</backup_user>
137 <rcp_command>scp -B</rcp_command>
138 <collect_dir>/home/whatever/tmp</collect_dir>
139 </peer>
140 </stage>
141 <store>
142 <source_dir>/opt/backup/staging</source_dir>
143 <media_type>dvd+rw</media_type>
144 <device_type>dvdwriter</device_type>
145 <target_device>/dev/cdrw</target_device>
146 <drive_speed>1</drive_speed>
147 <check_data>Y</check_data>
148 <check_media>Y</check_media>
149 <warn_midnite>Y</warn_midnite>
150 <no_eject>Y</no_eject>
151 <blank_behavior>
152 <mode>weekly</mode>
153 <factor>1.3</factor>
154 </blank_behavior>
155 </store>
156 <purge>
157 <dir>
158 <abs_path>/opt/backup/stage</abs_path>
159 <retain_days>5</retain_days>
160 </dir>
161 <dir>
162 <abs_path>/opt/backup/collect</abs_path>
163 <retain_days>0</retain_days>
164 </dir>
165 <dir>
166 <abs_path>/home/backup/tmp</abs_path>
167 <retain_days>12</retain_days>
168 </dir>
169 </purge>
170 </cb_config>