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