254
254
general-purpose library. The 2.0 release also includes a complete
255
255
regression test suite of over 2000 tests, which will help to ensure
256
256
that quality is maintained as development continues into the future.
257
<sup>[<a name="id2534423" href="#ftn.id2534423">8</a>]</sup>
258
</p></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2533997" href="#id2533997">1</a>] </sup>See <a href="http://cedar-solutions.com/listarchives/" target="_top">http://cedar-solutions.com/listarchives/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2534017" href="#id2534017">2</a>] </sup>See <a href="http://cedar-solutions.com/bugzilla/" target="_top">http://cedar-solutions.com/bugzilla/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2534055" href="#id2534055">3</a>] </sup>See Simon Tatham's excellent bug reporting tutorial:
257
<sup>[<a name="id2525917" href="#ftn.id2525917">8</a>]</sup>
258
</p></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2525490" href="#id2525490">1</a>] </sup>See <a href="http://cedar-solutions.com/listarchives/" target="_top">http://cedar-solutions.com/listarchives/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2525511" href="#id2525511">2</a>] </sup>See <a href="http://cedar-solutions.com/bugzilla/" target="_top">http://cedar-solutions.com/bugzilla/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2525549" href="#id2525549">3</a>] </sup>See Simon Tatham's excellent bug reporting tutorial:
259
259
<a href="http://www.chiark.greenend.org.uk/~sgtatham/bugs.html" target="_top">http://www.chiark.greenend.org.uk/~sgtatham/bugs.html</a>
260
.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2533890" href="#id2533890">4</a>] </sup>See <a href="http://www.python.org/" target="_top">http://www.python.org/</a>
261
.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2533911" href="#id2533911">5</a>] </sup>Debian's stable releases are named after characters
262
in the Toy Story movie.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2534378" href="#id2534378">6</a>] </sup>Epydoc is a Python code documentation tool.
263
See <a href="http://epydoc.sourceforge.net/" target="_top">http://epydoc.sourceforge.net/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2534390" href="#id2534390">7</a>] </sup>See <a href="http://docs.python.org/lib/module-logging.html" target="_top">http://docs.python.org/lib/module-logging.html</a>
264
.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2534423" href="#id2534423">8</a>] </sup>Tests are implemented using Python's unit test
260
.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2525383" href="#id2525383">4</a>] </sup>See <a href="http://www.python.org/" target="_top">http://www.python.org/</a>
261
.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2525405" href="#id2525405">5</a>] </sup>Debian's stable releases are named after characters
262
in the Toy Story movie.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2525872" href="#id2525872">6</a>] </sup>Epydoc is a Python code documentation tool.
263
See <a href="http://epydoc.sourceforge.net/" target="_top">http://epydoc.sourceforge.net/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2525884" href="#id2525884">7</a>] </sup>See <a href="http://docs.python.org/lib/module-logging.html" target="_top">http://docs.python.org/lib/module-logging.html</a>
264
.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2525917" href="#id2525917">8</a>] </sup>Tests are implemented using Python's unit test
265
265
framework. See <a href="http://docs.python.org/lib/module-unittest.html" target="_top">http://docs.python.org/lib/module-unittest.html</a>.</p></div></div></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="cedar-basic"></a>Chapter�2.�Basic Concepts</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#cedar-basic-general">General Architecture</a></span></dt><dt><span class="sect1"><a href="#cedar-basic-datarecovery">Data Recovery</a></span></dt><dt><span class="sect1"><a href="#cedar-basic-pools">Cedar Backup Pools</a></span></dt><dt><span class="sect1"><a href="#cedar-basic-process">The Backup Process</a></span></dt><dd><dl><dt><span class="sect2"><a href="#cedar-basic-process-collect">The Collect Action</a></span></dt><dt><span class="sect2"><a href="#cedar-basic-process-stage">The Stage Action</a></span></dt><dt><span class="sect2"><a href="#cedar-basic-process-store">The Store Action</a></span></dt><dt><span class="sect2"><a href="#cedar-basic-process-purge">The Purge Action</a></span></dt><dt><span class="sect2"><a href="#cedar-basic-process-all">The All Action</a></span></dt><dt><span class="sect2"><a href="#cedar-basic-process-validate">The Validate Action</a></span></dt><dt><span class="sect2"><a href="#cedar-basic-process-rebuild">The Rebuild Action</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-basic-coordinate">Coordination between Master and Clients</a></span></dt><dt><span class="sect1"><a href="#cedar-basic-mediadevice">Media and Device Types</a></span></dt><dt><span class="sect1"><a href="#cedar-basic-incremental">Incremental Backups</a></span></dt><dt><span class="sect1"><a href="#cedar-basic-extensions">Extensions</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-basic-general"></a>General Architecture</h2></div></div></div><p>
266
266
Cedar Backup is architected as a Python package (library) and a single
267
267
executable (a Python script). The Python package provides both
579
579
worked out all of the kinks. Given that the current architecture has
580
580
been proven to work well, I don't think that it is worth adding
581
581
complexity to the code just to simplify the initial set-up process.
582
<sup>[<a name="id2535739" href="#ftn.id2535739">13</a>]</sup>
582
<sup>[<a name="id2527232" href="#ftn.id2527232">13</a>]</sup>
583
583
</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-basic-mediadevice"></a>Media and Device Types</h2></div></div></div><p>
584
584
Cedar Backup is focused around writing backups to CD-R or CD-RW media
585
585
using a standard SCSI or IDE CD writer. In Cedar Backup terms, the
586
586
disc itself is referred to as the <em class="firstterm">media</em>, and
587
587
the CD-R or CD-RW drive is referred to as the <em class="firstterm">device</em>
588
588
or sometimes the <em class="firstterm">backup device</em>.
589
<sup>[<a name="id2535782" href="#ftn.id2535782">14</a>]</sup>
589
<sup>[<a name="id2527275" href="#ftn.id2527275">14</a>]</sup>
591
591
When using a new enough backup device, a new “<span class="quote">multisession</span>”
592
ISO image <sup>[<a name="id2535799" href="#ftn.id2535799">15</a>]</sup> is
592
ISO image <sup>[<a name="id2527293" href="#ftn.id2527293">15</a>]</sup> is
593
593
written to the media on the first day of the week, and then additional
594
594
multisession images are added to the media each day that Cedar Backup
595
595
runs. This way, the media is complete and usable at the end of every
680
680
officially-supported extensions.
682
682
Developers may be interested in <a href="#cedar-extenspec" title="Appendix�A.�Extension Architecture Interface">Appendix�A, <i>Extension Architecture Interface</i></a>.
683
</p></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2533579" href="#id2533579">9</a>] </sup>See <a href="http://en.wikipedia.org/wiki/Setuid" target="_top">http://en.wikipedia.org/wiki/Setuid</a></p></div><div class="footnote"><p><sup>[<a name="ftn.id2535260" href="#id2535260">10</a>] </sup>Analagous to <code class="filename">.cvsignore</code> in CVS</p></div><div class="footnote"><p><sup>[<a name="ftn.id2535272" href="#id2535272">11</a>] </sup>In terms of Python regular expressions</p></div><div class="footnote"><p><sup>[<a name="ftn.id2535572" href="#id2535572">12</a>] </sup>Some users find this surprising,
683
</p></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2525063" href="#id2525063">9</a>] </sup>See <a href="http://en.wikipedia.org/wiki/Setuid" target="_top">http://en.wikipedia.org/wiki/Setuid</a></p></div><div class="footnote"><p><sup>[<a name="ftn.id2526754" href="#id2526754">10</a>] </sup>Analagous to <code class="filename">.cvsignore</code> in CVS</p></div><div class="footnote"><p><sup>[<a name="ftn.id2526766" href="#id2526766">11</a>] </sup>In terms of Python regular expressions</p></div><div class="footnote"><p><sup>[<a name="ftn.id2527066" href="#id2527066">12</a>] </sup>Some users find this surprising,
684
684
because extensions are configured with sequence numbers. I did it
685
685
this way because I felt that running extensions as part of the all
686
686
action would sometimes result in surprising behavior. I am not
687
planning to change the way this works.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2535739" href="#id2535739">13</a>] </sup>Feel free to write me or the user mailing list if you
687
planning to change the way this works.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2527232" href="#id2527232">13</a>] </sup>Feel free to write me or the user mailing list if you
688
688
disagree <span class="emphasis"><em>and</em></span> can come up with a straightforward
689
689
implementation which can be easily verified and
690
maintained.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2535782" href="#id2535782">14</a>] </sup>My original backup device was an old
690
maintained.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2527275" href="#id2527275">14</a>] </sup>My original backup device was an old
691
691
Sony CRX140E 4X CD-RW drive. It has since died, and I currently
692
develop using a Lite-On 1673S DVD�RW drive.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2535799" href="#id2535799">15</a>] </sup>An <em class="firstterm">ISO image</em> is the
692
develop using a Lite-On 1673S DVD�RW drive.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2527293" href="#id2527293">15</a>] </sup>An <em class="firstterm">ISO image</em> is the
693
693
standard way of creating a filesystem to be copied to a CD. It is
694
694
essentially a “<span class="quote">filesystem-within-a-file</span>” and many UNIX
695
695
operating systems can actually mount ISO image files just like hard drives,
696
floppy disks or actual CDs. See Wikipedia for more information: <a href="http://en.wikipedia.org/wiki/ISO_image" target="_top">http://en.wikipedia.org/wiki/ISO_image</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2535914" href="#id2535914">16</a>] </sup>It would just require a new
696
floppy disks or actual CDs. See Wikipedia for more information: <a href="http://en.wikipedia.org/wiki/ISO_image" target="_top">http://en.wikipedia.org/wiki/ISO_image</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2527408" href="#id2527408">16</a>] </sup>It would just require a new
697
697
<code class="literal">DvdWriter</code> class in <code class="filename">writer.py</code>
698
698
as well as some minor changes to configuration code. All
699
699
writer-related access is through an abstract interface, so once the
700
700
new writer is implemented, the rest of the code will be able to use it
701
without any changes.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2535974" href="#id2535974">17</a>] </sup>See <a href="http://cedar-solutions.com/listarchives/" target="_top">http://cedar-solutions.com/listarchives/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2536002" href="#id2536002">18</a>] </sup>The checksum is actually an <em class="firstterm">SHA
701
without any changes.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2527468" href="#id2527468">17</a>] </sup>See <a href="http://cedar-solutions.com/listarchives/" target="_top">http://cedar-solutions.com/listarchives/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2527496" href="#id2527496">18</a>] </sup>The checksum is actually an <em class="firstterm">SHA
702
702
cryptographic hash</em>. See Wikipedia for more information:
703
703
<a href="http://en.wikipedia.org/wiki/SHA-1" target="_top">http://en.wikipedia.org/wiki/SHA-1</a>.</p></div></div></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="cedar-install"></a>Chapter�3.�Installation</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#cedar-install-background">Background</a></span></dt><dt><span class="sect1"><a href="#cedar-install-debian">Installing on a Debian System</a></span></dt><dt><span class="sect1"><a href="#cedar-install-source">Installing from Source</a></span></dt><dd><dl><dt><span class="sect2"><a href="#cedar-install-source-deps">Installing Dependencies</a></span></dt><dt><span class="sect2"><a href="#cedar-install-source-package">Installing the Source Package</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-install-background"></a>Background</h2></div></div></div><p>
704
704
There are two different ways to install Cedar Backup. The easiest way
851
851
In any case, once the package has been installed, you can proceed
852
852
to configuration as described in <a href="#cedar-config" title="Chapter�4.�Configuration">Chapter�4, <i>Configuration</i></a>.
853
</p></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2537628" href="#id2537628">19</a>] </sup>See <a href="http://cedar-solutions.com/listarchives/" target="_top">http://cedar-solutions.com/listarchives/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2537692" href="#id2537692">20</a>] </sup>See
854
<a href="http://cedar-solutions.com/debian.html" target="_top">http://cedar-solutions.com/debian.html</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.cedar-install-foot-software" href="#cedar-install-foot-software">21</a>] </sup>See <a href="http://cedar-solutions.com/software.html" target="_top">http://cedar-solutions.com/software.html</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2537808" href="#id2537808">22</a>] </sup>See <a href="http://docs.python.org/lib/module-distutils.html" target="_top">http://docs.python.org/lib/module-distutils.html</a>
855
.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2538052" href="#id2538052">23</a>] </sup><code class="email"><<a href="mailto:support@cedar-solutions.com">support@cedar-solutions.com</a>></code></p></div></div></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="cedar-config"></a>Chapter�4.�Configuration</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#cedar-config-overview">Overview</a></span></dt><dt><span class="sect1"><a href="#cedar-config-commandline">Command Line Interface</a></span></dt><dd><dl><dt><span class="sect2"><a href="#cedar-config-commandline-syntax">Syntax</a></span></dt><dt><span class="sect2"><a href="#cedar-config-commandline-options">Switches</a></span></dt><dt><span class="sect2"><a href="#cedar-config-commandline-actions">Actions</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-configfile">Configuration File Format</a></span></dt><dd><dl><dt><span class="sect2"><a href="#cedar-config-configfile-sample">Sample Configuration File</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-reference">Reference Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-options">Options Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-collect">Collect Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-stage">Stage Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-store">Store Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-purge">Purge Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-extensions">Extensions Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-poolofone">Setting up a Pool of One</a></span></dt><dd><dl><dt><span class="sect2"><a href="#id2543441">Step 1: Make sure email works.</a></span></dt><dt><span class="sect2"><a href="#id2543475">Step 2: Configure your CD-R or CD-RW drive.</a></span></dt><dt><span class="sect2"><a href="#id2543530">Step 3: Configure your backup user.</a></span></dt><dt><span class="sect2"><a href="#id2543581">Step 4: Create your backup tree.</a></span></dt><dt><span class="sect2"><a href="#id2543683">Step 5: Modify the backup cron jobs.</a></span></dt><dt><span class="sect2"><a href="#id2538684">Step 6: Create the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2544032">Step 7: Validate the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2544070">Step 8: Test your backup.</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-client">Setting up a Client Peer Node</a></span></dt><dd><dl><dt><span class="sect2"><a href="#id2544184">Step 1: Make sure email works.</a></span></dt><dt><span class="sect2"><a href="#id2543724">Step 2: Configure the master in your backup pool.</a></span></dt><dt><span class="sect2"><a href="#id2543769">Step 3: Configure your backup user.</a></span></dt><dt><span class="sect2"><a href="#id2543939">Step 4: Create your backup tree.</a></span></dt><dt><span class="sect2"><a href="#id2544797">Step 5: Modify the backup cron jobs.</a></span></dt><dt><span class="sect2"><a href="#id2544960">Step 6: Create the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2545028">Step 7: Validate the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2545071">Step 8: Test your backup.</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-master">Setting up a Master Peer Node</a></span></dt><dd><dl><dt><span class="sect2"><a href="#id2545169">Step 1: Make sure email works.</a></span></dt><dt><span class="sect2"><a href="#id2545211">Step 2: Configure your CD-R or CD-RW drive.</a></span></dt><dt><span class="sect2"><a href="#id2545266">Step 3: Configure your backup user.</a></span></dt><dt><span class="sect2"><a href="#id2545409">Step 4: Create your backup tree.</a></span></dt><dt><span class="sect2"><a href="#id2545509">Step 5: Modify the backup cron jobs.</a></span></dt><dt><span class="sect2"><a href="#id2545666">Step 6: Create the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2545763">Step 7: Validate the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2545807">Step 8: Test connectivity to client machines.</a></span></dt><dt><span class="sect2"><a href="#id2545858">Step 9: Test your backup.</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-scsi">Configuring your SCSI Device</a></span></dt><dd><dl><dt><span class="sect2"><a href="#id2545955">SCSI Required</a></span></dt><dt><span class="sect2"><a href="#id2546008">Linux Notes</a></span></dt><dt><span class="sect2"><a href="#id2546079">Mac OS X Notes</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-config-overview"></a>Overview</h2></div></div></div><p>
853
</p></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2529122" href="#id2529122">19</a>] </sup>See <a href="http://cedar-solutions.com/listarchives/" target="_top">http://cedar-solutions.com/listarchives/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2529185" href="#id2529185">20</a>] </sup>See
854
<a href="http://cedar-solutions.com/debian.html" target="_top">http://cedar-solutions.com/debian.html</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.cedar-install-foot-software" href="#cedar-install-foot-software">21</a>] </sup>See <a href="http://cedar-solutions.com/software.html" target="_top">http://cedar-solutions.com/software.html</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2529301" href="#id2529301">22</a>] </sup>See <a href="http://docs.python.org/lib/module-distutils.html" target="_top">http://docs.python.org/lib/module-distutils.html</a>
855
.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2529546" href="#id2529546">23</a>] </sup><code class="email"><<a href="mailto:support@cedar-solutions.com">support@cedar-solutions.com</a>></code></p></div></div></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="cedar-config"></a>Chapter�4.�Configuration</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#cedar-config-overview">Overview</a></span></dt><dt><span class="sect1"><a href="#cedar-config-commandline">Command Line Interface</a></span></dt><dd><dl><dt><span class="sect2"><a href="#cedar-config-commandline-syntax">Syntax</a></span></dt><dt><span class="sect2"><a href="#cedar-config-commandline-options">Switches</a></span></dt><dt><span class="sect2"><a href="#cedar-config-commandline-actions">Actions</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-configfile">Configuration File Format</a></span></dt><dd><dl><dt><span class="sect2"><a href="#cedar-config-configfile-sample">Sample Configuration File</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-reference">Reference Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-options">Options Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-collect">Collect Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-stage">Stage Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-store">Store Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-purge">Purge Configuration</a></span></dt><dt><span class="sect2"><a href="#cedar-config-configfile-extensions">Extensions Configuration</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-poolofone">Setting up a Pool of One</a></span></dt><dd><dl><dt><span class="sect2"><a href="#id2535014">Step 1: Decide when you will run your backup.</a></span></dt><dt><span class="sect2"><a href="#id2535080">Step 2: Make sure email works.</a></span></dt><dt><span class="sect2"><a href="#id2535114">Step 3: Configure your CD-R or CD-RW drive.</a></span></dt><dt><span class="sect2"><a href="#id2535187">Step 4: Configure your backup user.</a></span></dt><dt><span class="sect2"><a href="#id2535238">Step 5: Create your backup tree.</a></span></dt><dt><span class="sect2"><a href="#id2535340">Step 6: Create the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2535408">Step 7: Validate the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2535446">Step 8: Test your backup.</a></span></dt><dt><span class="sect2"><a href="#id2535512">Step 9: Modify the backup cron jobs.</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-client">Setting up a Client Peer Node</a></span></dt><dd><dl><dt><span class="sect2"><a href="#id2535664">Step 1: Decide when you will run your backup.</a></span></dt><dt><span class="sect2"><a href="#id2535722">Step 2: Make sure email works.</a></span></dt><dt><span class="sect2"><a href="#id2535763">Step 3: Configure the master in your backup pool.</a></span></dt><dt><span class="sect2"><a href="#id2535808">Step 4: Configure your backup user.</a></span></dt><dt><span class="sect2"><a href="#id2535978">Step 5: Create your backup tree.</a></span></dt><dt><span class="sect2"><a href="#id2536069">Step 6: Create the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2536138">Step 7: Validate the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2536181">Step 8: Test your backup.</a></span></dt><dt><span class="sect2"><a href="#id2536211">Step 9: Modify the backup cron jobs.</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-master">Setting up a Master Peer Node</a></span></dt><dd><dl><dt><span class="sect2"><a href="#id2536396">Step 1: Decide when you will run your backup.</a></span></dt><dt><span class="sect2"><a href="#id2530073">Step 2: Make sure email works.</a></span></dt><dt><span class="sect2"><a href="#id2530107">Step 3: Configure your CD-R or CD-RW drive.</a></span></dt><dt><span class="sect2"><a href="#id2530180">Step 4: Configure your backup user.</a></span></dt><dt><span class="sect2"><a href="#id2536847">Step 5: Create your backup tree.</a></span></dt><dt><span class="sect2"><a href="#id2536947">Step 6: Create the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2537045">Step 7: Validate the Cedar Backup configuration file.</a></span></dt><dt><span class="sect2"><a href="#id2537089">Step 8: Test connectivity to client machines.</a></span></dt><dt><span class="sect2"><a href="#id2537140">Step 9: Test your backup.</a></span></dt><dt><span class="sect2"><a href="#id2537226">Step 10: Modify the backup cron jobs.</a></span></dt></dl></dd><dt><span class="sect1"><a href="#cedar-config-writer">Configuring your Writer Device</a></span></dt><dd><dl><dt><span class="sect2"><a href="#id2537341">SCSI Devices</a></span></dt><dt><span class="sect2"><a href="#id2537395">Non-SCSI Devices</a></span></dt><dt><span class="sect2"><a href="#id2537437">Linux Notes</a></span></dt><dt><span class="sect2"><a href="#id2537604">Mac OS X Notes</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-config-overview"></a>Overview</h2></div></div></div><p>
856
856
Configuring Cedar Backup is unfortunately
857
857
somewhat complicated. The good news is that once you get through the
858
858
initial configuration process, you'll hardly ever have to change
1881
1881
the post-write consistency check, if enabled.
1883
1883
<span class="emphasis"><em>Restrictions:</em></span> Must be an absolute path.
1884
</p></dd><dt><span class="term"><code class="literal">target_scsi_id</code></span></dt><dd><p>SCSI id for writer device</p><p>
1885
In order to execute the store action, your CD-R or CD-RW
1886
drive must either be a SCSI device or must be configured
1887
to act like a SCSI device from the perspective of the
1888
<span><strong class="command">cdrecord</strong></span> and <span><strong class="command">mkisofs</strong></span>
1889
commands. This value configures the SCSI id that will be
1890
used to write to your device.
1884
</p></dd><dt><span class="term"><code class="literal">target_scsi_id</code></span></dt><dd><p>SCSI id for the writer device.</p><p>
1885
This value is optional. If you have configured your CD
1886
writer hardware to work through the normal filesystem
1887
device path, then you can leave this parameter unset.
1888
Cedar Backup will just use the target device (above) when
1889
talking to <span><strong class="command">cdrecord</strong></span>.
1891
Otherwise, if you have SCSI CD writer hardware or you have
1892
configured your non-SCSI hardware to operate like a SCSI
1893
device, then you need to provide Cedar Backup with a SCSI
1894
id it can use when talking with
1895
<span><strong class="command">cdrecord</strong></span>.
1892
1897
For the purposes of Cedar Backup, a valid SCSI identifier
1893
must either be in the form
1894
“<span class="quote">scsibus,target,lun</span>”,
1895
“<span class="quote">ATA:scsibus,target,lun</span>”, or
1896
“<span class="quote">ATAPI:scsibus,target,lun</span>”. For example,
1897
“<span class="quote">1,6,2</span>”, “<span class="quote">ATA:0,0,0</span>” and
1898
“<span class="quote">ATAPI:0,1,0</span>” are all valid identifiers.
1900
Technically, Mac OS X identifiers are also accepted, but
1901
the syntax is not documented here because the store action
1902
is not supported for that platform. See <a href="#cedar-config-scsi" title="Configuring your SCSI Device">the section called “Configuring your SCSI Device”</a> for more information on SCSI
1903
devices and how they are configured.
1905
<span class="emphasis"><em>Restrictions:</em></span> Must be a valid SCSI identifier.
1898
must either be in the standard SCSI identifier form
1899
<code class="literal">scsibus,target,lun</code> or in the
1900
specialized-method form
1901
<code class="literal"><method>:scsibus,target,lun</code>.
1903
An example of a standard SCSI identifier is
1904
<code class="literal">1,6,2</code>. Today, the two most common examples
1905
of the specialized-method form are
1906
<code class="literal">ATA:scsibus,target,lun</code> and
1907
<code class="literal">ATAPI:scsibus,target,lun</code>, but you may
1908
occassionally see other values (like
1909
<code class="literal">OLDATAPI</code> in some forks of
1910
<span><strong class="command">cdrecord</strong></span>).
1912
See <a href="#cedar-config-writer" title="Configuring your Writer Device">the section called “Configuring your Writer Device”</a> for more
1913
information on writer devices and how they are configured.
1915
<span class="emphasis"><em>Restrictions:</em></span> If set, must be a valid SCSI identifier.
1906
1916
</p></dd><dt><span class="term"><code class="literal">drive_speed</code></span></dt><dd><p>Speed of the drive, i.e. <code class="literal">2</code> for a 2x device.</p><p>
1907
1917
This field is optional. If it doesn't exist, the
1908
1918
underlying device-related functionality will use the
2037
2047
indexes. The collect action has index 100, the stage index
2038
2048
has action 200, the store action has index 300 and the purge
2039
2049
action has index 400.
2041
For instance, imagine that a third-party developer provided a Cedar
2050
</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
2051
Extended actions should always be configured to run
2052
<span class="emphasis"><em>before</em></span> the standard action they are
2053
associated with. This is because of the way indicator files are
2054
used in Cedar Backup. For instance, the staging process
2055
considers the collect action to be complete for a peer if the
2056
file <code class="filename">cback.collect</code> can be found in that
2057
peer's collect directory.
2059
If you were to run the standard collect action before your other
2060
collect-like actions, the indicator file would be written after
2061
the collect action completes but <span class="emphasis"><em>before</em></span> all
2062
of the other actions even run. Because of this, there's a
2063
chance the stage process might back up the collect directory
2064
before the entire set of collect-like actions have completed
2065
— and you would get no warning about this in your email!
2067
So, imagine that a third-party developer provided a Cedar
2042
2068
Backup extension to back up a certain kind of database repository,
2043
2069
and you wanted to map that extension to the “<span class="quote">database</span>”
2044
2070
command-line action. You have been told that this function is
2106
2132
directory), you can do that. You'll just have to modify the
2107
2133
procedure below based on information in the remainder of the
2109
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2543441"></a>Step 1: Make sure email works.</h3></div></div></div><p>
2135
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535014"></a>Step 1: Decide when you will run your backup.</h3></div></div></div><p>
2136
There are four parts to a Cedar Backup run: collect, stage, store
2137
and purge. The usual way of setting off these steps is through a
2138
set of cron jobs. Although you won't create your cron jobs just
2139
yet, you should decide now when you will run your backup so you are
2142
Backing up large directories and creating ISO CD images can be
2143
intensive operations, and could slow your computer down
2144
significantly. Choose a backup time that will not interfere with
2145
normal use of your computer. Usually, you will want the backup to
2146
occur every day, but it is possible to configure cron to execute
2147
the backup only one day per week, three days per week, etc.
2148
</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
2149
Because of the way Cedar Backup works, you must ensure that your
2150
backup <span class="emphasis"><em>always</em></span> runs son the first day of your
2151
configured week. This is because Cedar Backup will only clear
2152
incremental backup information and re-initialize your media when
2153
running on the first day of the week. If you skip running Cedar
2154
Backup on the first day of the week, your backups will likely be
2155
“<span class="quote">confused</span>” until the next week begins, or until you
2156
re-run the backup using the <code class="option">--full</code> flag.
2157
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535080"></a>Step 2: Make sure email works.</h3></div></div></div><p>
2110
2158
Cedar Backup relies on email for problem notification. This
2111
2159
notification works through the magic of cron. Cron will email any
2112
2160
output from each job it executes to the user associated with the
2121
2169
that you may prefer to configure root's email to forward to some
2122
2170
other user, so you do not need to check the root user's mail in
2123
2171
order to see Cedar Backup errors.
2124
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2543475"></a>Step 2: Configure your CD-R or CD-RW drive.</h3></div></div></div><p>
2125
Your CD-R or CD-RW drive must either be a SCSI device or must be
2126
configured to act like a SCSI device from the perspective of the
2127
<span><strong class="command">cdrecord</strong></span> and <span><strong class="command">mkisofs</strong></span>
2128
commands. Regardless of what kind of drive you have, make sure you
2129
know its SCSI address and its filesystem device name. The SCSI
2130
address will be used to write to media, and the device name will be
2131
used when Cedar Backup needs to mount the media (for instance, when
2132
a validation check must be run).
2134
See <a href="#cedar-config-scsi" title="Configuring your SCSI Device">the section called “Configuring your SCSI Device”</a> for more
2135
information on SCSI devices and how they are configured.
2172
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535114"></a>Step 3: Configure your CD-R or CD-RW drive.</h3></div></div></div><p>
2173
Before using Cedar Backup, your writer device must be properly
2174
configured. If you have configured your CD writer hardware to work
2175
through the normal filesystem device path, then you just need to
2176
know the path to the device on disk (something like
2177
<code class="filename">/dev/cdrw</code>). Cedar Backup will use the this
2178
device path both when talking to <span><strong class="command">cdrecord</strong></span> and
2179
when doing filesystem operations like running media validation.
2181
Your other option is to configure your writer hardware like a SCSI
2182
device (either because it <span class="emphasis"><em>is</em></span> a SCSI device or
2183
because you are using some sort of interface that makes it look
2184
like one). In this case, Cedar Backup will use the SCSI id when
2185
talking to <span><strong class="command">cdrecord</strong></span> and the device path when
2186
running filesystem operations.
2188
See <a href="#cedar-config-writer" title="Configuring your Writer Device">the section called “Configuring your Writer Device”</a> for more information on
2189
writer devices and how they are configured.
2136
2190
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
2137
2191
There is no need to set up your CD-R or CD-RW device if you
2138
2192
have decided not to execute the store action.
2139
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2543530"></a>Step 3: Configure your backup user.</h3></div></div></div><p>
2193
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535187"></a>Step 4: Configure your backup user.</h3></div></div></div><p>
2140
2194
Choose a user to be used for backups. Some platforms may
2141
2195
come with a “<span class="quote">ready made</span>” backup user. For other
2142
2196
platforms, you may have to create a user yourself. You may
2185
2239
directory structure within some existing Debian directory such
2186
2240
as <code class="filename">/var/backups</code> or
2187
2241
<code class="filename">/var/tmp</code>.
2188
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2543683"></a>Step 5: Modify the backup cron jobs.</h3></div></div></div><p>
2189
There are four parts to a Cedar Backup run: collect, stage, store
2190
and purge. The usual way of setting off these steps is through a
2191
cron job. For more information on using cron, see the manpage for
2242
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535340"></a>Step 6: Create the Cedar Backup configuration file.</h3></div></div></div><p>
2243
Following the instructions in <a href="#cedar-config-configfile" title="Configuration File Format">the section called “Configuration File Format”</a> (above) create a configuration
2244
file for your machine. Since you are working with a pool of one,
2245
you must configure all four action-specific sections: collect,
2246
stage, store and purge.
2194
Backing up large directories and creating ISO CD images can be
2195
intensive operations, and could slow your computer down
2196
significantly. Choose a backup time that will not interfere with
2197
normal use of your computer. Usually, you will want the backup to
2198
occur every day, but it is possible to configure cron to execute
2199
the backup only one day per week, three days per week, etc.
2248
The usual location for the Cedar Backup config file is
2249
<code class="filename">/etc/cback.conf</code>. If you change the location,
2250
make sure you edit your cronjobs (below) to point the
2251
<span><strong class="command">cback</strong></span> script at the correct config file (using
2252
the <code class="option">--config</code> option).
2200
2253
</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
2201
Because of the way Cedar Backup works, you must ensure that your
2202
backup <span class="emphasis"><em>always</em></span> run on the first day of your
2203
configured week. This is because Cedar Backup will only clear
2204
incremental backup information and re-initialize your media when
2205
running on the first day of the week. If you skip running Cedar
2206
Backup on the first day of the week, your backups will likely be
2207
“<span class="quote">confused</span>” until either the next week, or until you
2208
re-run the backup using the <code class="option">--full</code> flag.
2254
Configuration files should always be writable only by root
2255
(or by the file owner, if the owner is not root).
2257
If you intend to place confidental information into the Cedar
2258
Backup configuration file, make sure that you set the filesystem
2259
permissions on the file appropriately. For instance, if you
2260
configure any extensions that require passwords or other similar
2261
information, you should make the file readable only to root or
2262
to the file owner (if the owner is not root).
2263
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535408"></a>Step 7: Validate the Cedar Backup configuration file.</h3></div></div></div><p>
2264
Use the command <span><strong class="command">cback validate</strong></span> to validate your
2265
configuration file. This command checks that the configuration file
2266
can be found and parsed, and also checks for typical configuration
2267
problems, such as invalid CD-R/CD-RW device entries.
2269
Note: the most common cause of configuration problems is in not
2270
closing XML tags properly. Any XML tag that is
2271
“<span class="quote">opened</span>” must be “<span class="quote">closed</span>” appropriately.
2272
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535446"></a>Step 8: Test your backup.</h3></div></div></div><p>
2273
Place a valid CD-R or CD-RW disc in your drive, and then use the
2274
command <span><strong class="command">cback --full all</strong></span>. You should execute
2275
this command as root. If the command completes with no output,
2276
then the backup was run successfully.
2278
Just to be sure that everything worked properly, check the logfile
2279
(<code class="filename">/var/log/cback.log</code>) for errors and also mount
2280
the CD-R or CD-RW disc to be sure it can be read.
2282
<span class="emphasis"><em>If Cedar Backup ever completes “<span class="quote">normally</span>”
2283
but the disc that is created is not usable, please report this as a
2285
<sup>[<a name="cedar-config-foot-bugzilla" href="#ftn.cedar-config-foot-bugzilla">28</a>]</sup>
2286
To be safe, always enable the consistency check option in the
2287
store configuration section.</em></span>
2288
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535512"></a>Step 9: Modify the backup cron jobs.</h3></div></div></div><p>
2210
2289
Since Cedar Backup should be run as root, one way to configure the
2211
2290
cron job is to add a line like this to your
2212
2291
<code class="filename">/etc/crontab</code> file:
2227
2306
<span><strong class="command">cdrecord</strong></span> or <span><strong class="command">mkisofs</strong></span> fail
2229
2308
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
2309
For general information about using cron, see the manpage for
2230
2312
On a Debian system, execution of daily backups is controlled by
2231
2313
the file <code class="filename">/etc/cron.d/cedar-backup2</code>. As
2232
2314
installed, this file contains several different settings, all
2233
2315
commented out. Uncomment the “<span class="quote">Single machine (pool of
2234
2316
one)</span>” entry in the file, and change the line so that the
2235
2317
backup goes off when you want it to.
2236
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2538684"></a>Step 6: Create the Cedar Backup configuration file.</h3></div></div></div><p>
2237
Following the instructions in <a href="#cedar-config-configfile" title="Configuration File Format">the section called “Configuration File Format”</a> (above) create a configuration
2238
file for your machine. Since you are working with a pool of one,
2239
you must configure all four action-specific sections: collect,
2240
stage, store and purge.
2242
The usual location for the Cedar Backup config file is
2243
<code class="filename">/etc/cback.conf</code>. If you change the location,
2244
make sure you edit your cronjobs (step 5) to point the
2245
<span><strong class="command">cback</strong></span> script at the correct config file (using
2246
the <code class="option">--config</code> option).
2247
</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
2248
Configuration files should always be writable only by root
2249
(or by the file owner, if the owner is not root).
2251
If you intend to place confidental information into the Cedar
2252
Backup configuration file, make sure that you set the filesystem
2253
permissions on the file appropriately. For instance, if you
2254
configure any extensions that require passwords or other similar
2255
information, you should make the file readable only to root or
2256
to the file owner (if the owner is not root).
2257
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2544032"></a>Step 7: Validate the Cedar Backup configuration file.</h3></div></div></div><p>
2258
Use the command <span><strong class="command">cback validate</strong></span> to validate your
2259
configuration file. This command checks that the configuration file
2260
can be found and parsed, and also checks for typical configuration
2261
problems, such as invalid CD-R/CD-RW device entries.
2263
Note: the most common cause of configuration problems is in not
2264
closing XML tags properly. Any XML tag that is
2265
“<span class="quote">opened</span>” must be “<span class="quote">closed</span>” appropriately.
2266
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2544070"></a>Step 8: Test your backup.</h3></div></div></div><p>
2267
Place a valid CD-R or CD-RW disc in your drive, and then use the
2268
command <span><strong class="command">cback --full all</strong></span>. You should execute
2269
this command as root. If the command completes with no output,
2270
then the backup was run successfully.
2272
Just to be sure that everything worked properly, check the logfile
2273
(<code class="filename">/var/log/cback.log</code>) for errors and also mount
2274
the CD-R or CD-RW disc to be sure it can be read.
2276
<span class="emphasis"><em>If Cedar Backup ever completes “<span class="quote">normally</span>”
2277
but the disc that is created is not usable, please report this as a
2279
<sup>[<a name="cedar-config-foot-bugzilla" href="#ftn.cedar-config-foot-bugzilla">28</a>]</sup>
2280
To be safe, always enable the consistency check option in the
2281
store configuration section.</em></span>
2282
</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-config-client"></a>Setting up a Client Peer Node</h2></div></div></div><p>
2318
</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-config-client"></a>Setting up a Client Peer Node</h2></div></div></div><p>
2283
2319
Cedar Backup has been designed to backup entire “<span class="quote">pools</span>”
2284
2320
of machines. In any given pool, there is one master and some number
2285
2321
of clients. Most of the work takes place on the master, so
2300
2336
Note: all of these configuration steps should be run as the root user,
2301
2337
unless otherwise indicated.
2302
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2544184"></a>Step 1: Make sure email works.</h3></div></div></div><p>
2338
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535664"></a>Step 1: Decide when you will run your backup.</h3></div></div></div><p>
2339
There are four parts to a Cedar Backup run: collect, stage, store
2340
and purge. The usual way of setting off these steps is through a
2341
set of cron jobs. Although you won't create your cron jobs just
2342
yet, you should decide now when you will run your backup so you are
2345
Backing up large directories and creating ISO CD images can be
2346
intensive operations, and could slow your computer down
2347
significantly. Choose a backup time that will not interfere with
2348
normal use of your computer. Usually, you will want the backup to
2349
occur every day, but it is possible to configure cron to execute
2350
the backup only one day per week, three days per week, etc.
2351
</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
2352
Because of the way Cedar Backup works, you must ensure that your
2353
backup <span class="emphasis"><em>always</em></span> runs on the first day of your
2354
configured week. This is because Cedar Backup will only clear
2355
incremental backup information and re-initialize your media when
2356
running on the first day of the week. If you skip running Cedar
2357
Backup on the first day of the week, your backups will likely be
2358
“<span class="quote">confused</span>” until the next week begins, or until you
2359
re-run the backup using the <code class="option">--full</code> flag.
2360
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2535722"></a>Step 2: Make sure email works.</h3></div></div></div><p>
2303
2361
Cedar Backup relies on email for problem notification. This
2304
2362
notification works through the magic of cron. Cron will email any
2305
2363
output from each job it executes to the user associated with the
2409
2467
within some existing Debian directory such as
2410
2468
<code class="filename">/var/backups</code> or
2411
2469
<code class="filename">/var/tmp</code>.
2412
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2544797"></a>Step 5: Modify the backup cron jobs.</h3></div></div></div><p>
2413
There are two parts to a Cedar Backup run on a client: collect
2414
and purge. The usual way of setting off these steps is through a
2415
cron job. For more information on using cron, see the manpage for
2418
Backing up large directories could slow your computer down
2419
significantly. Choose a backup time that will not interfere with
2420
normal use of your computer. Usually, you will want the backup to
2421
go occur every day, but it is possible to configure cron to
2422
execute the backup only one day per week, three days per week,
2424
</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
2425
Because of the way Cedar Backup works, you must ensure that at
2426
least your collect action <span class="emphasis"><em>always</em></span> runs on
2427
the first day of your configured week. This is because Cedar
2428
Backup will only clear incremental backup information when
2429
running on the first day of the week. If you skip running the
2430
collect action on the first day of the week, your backups will
2431
likely be “<span class="quote">confused</span>” until either the next week, or
2432
until you re-run the collect action backup using the
2433
<code class="option">--full</code> flag.
2435
Since Cedar Backup should be run as root, you should add a set of
2436
lines like this to your <code class="filename">/etc/crontab</code> file:
2437
</p><pre class="programlisting">
2438
30 00 * * * root cback collect
2439
30 06 * * * root cback purge
2441
You should consider adding the <code class="option">--output</code> or
2442
<code class="option">-O</code> switch to your <span><strong class="command">cback</strong></span>
2443
command-line in cron. This will result in larger logs, but could
2444
help diagnose problems when commands like
2445
<span><strong class="command">cdrecord</strong></span> or <span><strong class="command">mkisofs</strong></span> fail
2448
You will need to coordinate the collect and purge actions on the
2449
client so that the collect action completes before the master
2450
attempts to stage, and so that the purge action does not begin
2451
until after the master has completed staging. Usually, allowing an
2452
hour or two between steps should be sufficient. <sup>[<a name="cedar-config-foot-coordinate" href="#ftn.cedar-config-foot-coordinate">29</a>]</sup>
2453
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
2454
On a Debian system, execution of daily backups is controlled by
2455
the file <code class="filename">/etc/cron.d/cedar-backup2</code>. As
2456
installed, this file contains several different settings, all
2457
commented out. Uncomment the “<span class="quote">Client machine</span>”
2458
entries in the file, and change the lines so that the backup
2459
goes off when you want it to.
2460
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2544960"></a>Step 6: Create the Cedar Backup configuration file.</h3></div></div></div><p>
2470
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2536069"></a>Step 6: Create the Cedar Backup configuration file.</h3></div></div></div><p>
2461
2471
Following the instructions in <a href="#cedar-config-configfile" title="Configuration File Format">the section called “Configuration File Format”</a> (above), create a configuration
2462
2472
file for your machine. Since you are working with a client, you
2463
2473
must configure all action-specific sections for the collect and
2489
2499
Note: the most common cause of configuration problems is in not
2490
2500
closing XML tags properly. Any XML tag that is
2491
2501
“<span class="quote">opened</span>” must be “<span class="quote">closed</span>” appropriately.
2492
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2545071"></a>Step 8: Test your backup.</h3></div></div></div><p>
2502
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2536181"></a>Step 8: Test your backup.</h3></div></div></div><p>
2493
2503
Use the command <span><strong class="command">cback --full collect purge</strong></span>. If the
2494
2504
command completes with no output, then the backup was run successfully.
2495
2505
Just to be sure that everything worked properly, check the logfile
2496
2506
(<code class="filename">/var/log/cback.log</code>) for errors.
2497
</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-config-master"></a>Setting up a Master Peer Node</h2></div></div></div><p>
2507
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2536211"></a>Step 9: Modify the backup cron jobs.</h3></div></div></div><p>
2508
Since Cedar Backup should be run as root, you should add a set of
2509
lines like this to your <code class="filename">/etc/crontab</code> file:
2510
</p><pre class="programlisting">
2511
30 00 * * * root cback collect
2512
30 06 * * * root cback purge
2514
You should consider adding the <code class="option">--output</code> or
2515
<code class="option">-O</code> switch to your <span><strong class="command">cback</strong></span>
2516
command-line in cron. This will result in larger logs, but could
2517
help diagnose problems when commands like
2518
<span><strong class="command">cdrecord</strong></span> or <span><strong class="command">mkisofs</strong></span> fail
2521
You will need to coordinate the collect and purge actions on the
2522
client so that the collect action completes before the master
2523
attempts to stage, and so that the purge action does not begin
2524
until after the master has completed staging. Usually, allowing an
2525
hour or two between steps should be sufficient. <sup>[<a name="cedar-config-foot-coordinate" href="#ftn.cedar-config-foot-coordinate">29</a>]</sup>
2526
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
2527
For general information about using cron, see the manpage for
2530
On a Debian system, execution of daily backups is controlled by
2531
the file <code class="filename">/etc/cron.d/cedar-backup2</code>. As
2532
installed, this file contains several different settings, all
2533
commented out. Uncomment the “<span class="quote">Client machine</span>”
2534
entries in the file, and change the lines so that the backup
2535
goes off when you want it to.
2536
</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-config-master"></a>Setting up a Master Peer Node</h2></div></div></div><p>
2498
2537
Cedar Backup has been designed to backup entire “<span class="quote">pools</span>”
2499
2538
of machines. In any given pool, there is one master and some number
2500
2539
of clients. Most of the work takes place on the master, so
2523
2562
directory), you can do that. You'll just have to modify the
2524
2563
procedure below based on information in the remainder of the
2526
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2545169"></a>Step 1: Make sure email works.</h3></div></div></div><p>
2565
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2536396"></a>Step 1: Decide when you will run your backup.</h3></div></div></div><p>
2566
There are four parts to a Cedar Backup run: collect, stage, store
2567
and purge. The usual way of setting off these steps is through a
2568
set of cron jobs. Although you won't create your cron jobs just
2569
yet, you should decide now when you will run your backup so you are
2572
Keep in mind that you do not necessarily have to run the collect
2573
action on the master. See notes further below for more
2576
Backing up large directories and creating ISO CD images can be
2577
intensive operations, and could slow your computer down
2578
significantly. Choose a backup time that will not interfere with
2579
normal use of your computer. Usually, you will want the backup to
2580
occur every day, but it is possible to configure cron to execute
2581
the backup only one day per week, three days per week, etc.
2582
</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
2583
Because of the way Cedar Backup works, you must ensure that your
2584
backup <span class="emphasis"><em>always</em></span> runs on the first day of your
2585
configured week. This is because Cedar Backup will only clear
2586
incremental backup information and re-initialize your media when
2587
running on the first day of the week. If you skip running Cedar
2588
Backup on the first day of the week, your backups will likely be
2589
“<span class="quote">confused</span>” until the next week begins, or until you
2590
re-run the backup using the <code class="option">--full</code> flag.
2591
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2530073"></a>Step 2: Make sure email works.</h3></div></div></div><p>
2527
2592
Cedar Backup relies on email for problem notification. This
2528
2593
notification works through the magic of cron. Cron will email any
2529
2594
output from each job it executes to the user associated with the
2538
2603
that you may prefer to configure root's email to forward to some
2539
2604
other user, so you do not need to check the root user's mail in
2540
2605
order to see Cedar Backup errors.
2541
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2545211"></a>Step 2: Configure your CD-R or CD-RW drive.</h3></div></div></div><p>
2542
Your CD-R or CD-RW drive must either be a SCSI device or must be
2543
configured to act like a SCSI device from the perspective of the
2544
<span><strong class="command">cdrecord</strong></span> and <span><strong class="command">mkisofs</strong></span>
2545
commands. Regardless of what kind of drive you have, make sure you
2546
know its SCSI address and its filesystem device name. The SCSI
2547
address will be used to write to media, and the device name will be
2548
used when Cedar Backup needs to mount the media (for instance, when
2549
a validation check must be run).
2551
See <a href="#cedar-config-scsi" title="Configuring your SCSI Device">the section called “Configuring your SCSI Device”</a> for more
2552
information on SCSI devices and how they are configured.
2606
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2530107"></a>Step 3: Configure your CD-R or CD-RW drive.</h3></div></div></div><p>
2607
Before using Cedar Backup, your writer device must be properly
2608
configured. If you have configured your CD writer hardware to work
2609
through the normal filesystem device path, then you just need to
2610
know the path to the device on disk (something like
2611
<code class="filename">/dev/cdrw</code>). Cedar Backup will use the this
2612
device path both when talking to <span><strong class="command">cdrecord</strong></span> and
2613
when doing filesystem operations like running media validation.
2615
Your other option is to configure your writer hardware like a SCSI
2616
device (either because it <span class="emphasis"><em>is</em></span> a SCSI device or
2617
because you are using some sort of interface that makes it look
2618
like one). In this case, Cedar Backup will use the SCSI id when
2619
talking to <span><strong class="command">cdrecord</strong></span> and the device path when
2620
running filesystem operations.
2622
See <a href="#cedar-config-writer" title="Configuring your Writer Device">the section called “Configuring your Writer Device”</a> for more information on
2623
writer devices and how they are configured.
2553
2624
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
2554
2625
There is no need to set up your CD-R or CD-RW device if you
2555
2626
have decided not to execute the store action.
2556
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2545266"></a>Step 3: Configure your backup user.</h3></div></div></div><p>
2627
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2530180"></a>Step 4: Configure your backup user.</h3></div></div></div><p>
2557
2628
Choose a user to be used for backups. Some platforms may come with
2558
2629
a “<span class="quote">ready made</span>” backup user. For other platforms, you
2559
2630
may have to create a user yourself. You may choose any id you
2630
2701
directory structure within some existing Debian directory such
2631
2702
as <code class="filename">/var/backups</code> or
2632
2703
<code class="filename">/var/tmp</code>.
2633
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2545509"></a>Step 5: Modify the backup cron jobs.</h3></div></div></div><p>
2634
There are four parts to a Cedar Backup run: collect, stage, store
2635
and purge. The usual way of setting off these steps is through a
2636
cron job. For more information on using cron, see the manpage for
2638
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
2639
Keep in mind that you do not necessarily have to run the collect
2640
action on the master. See notes further below for more
2643
Backing up large directories and creating ISO CD images can be
2644
intensive operations, and could slow your computer down
2645
significantly. Choose a backup time that will not interfere with
2646
normal use of your computer. Usually, you will want the backup to
2647
go occur every day, but it is possible to configure cron to
2648
execute the backup only one day per week, three days per week,
2650
</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
2651
Because of the way Cedar Backup works, you must ensure that at
2652
least your collect and store actions <span class="emphasis"><em>always</em></span>
2653
run on the first day of your configured week. This is because
2654
Cedar Backup will only clear incremental backup information and
2655
re-initialize your media when running on the first day of the
2656
week. If you skip running Cedar Backup on the first day of the
2657
week, your backups will likely be “<span class="quote">confused</span>” until
2658
either the next week, or until you re-run the collect and store
2659
actions using the <code class="option">--full</code> flag.
2661
Since Cedar Backup should be run as root, you should add a set of
2662
lines like this to your <code class="filename">/etc/crontab</code> file:
2663
</p><pre class="programlisting">
2664
30 00 * * * root cback collect
2665
30 02 * * * root cback stage
2666
30 04 * * * root cback store
2667
30 06 * * * root cback purge
2669
You should consider adding the <code class="option">--output</code> or
2670
<code class="option">-O</code> switch to your <span><strong class="command">cback</strong></span>
2671
command-line in cron. This will result in larger logs, but could
2672
help diagnose problems when commands like
2673
<span><strong class="command">cdrecord</strong></span> or <span><strong class="command">mkisofs</strong></span> fail
2676
You will need to coordinate the collect and purge actions on
2677
clients so that their collect actions complete before the master
2678
attempts to stage, and so that their purge actions do not begin
2679
until after the master has completed staging. Usually, allowing
2680
an hour or two between steps should be sufficient.
2681
<sup>[<a href="#ftn.cedar-config-foot-coordinate">29</a>]</sup>
2682
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
2683
On a Debian system, execution of daily backups is controlled by
2684
the file <code class="filename">/etc/cron.d/cedar-backup2</code>. As
2685
installed, this file contains several different settings, all
2686
commented out. Uncomment the “<span class="quote">Master machine</span>”
2687
entries in the file, and change the lines so that the backup
2688
goes off when you want it to.
2689
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2545666"></a>Step 6: Create the Cedar Backup configuration file.</h3></div></div></div><p>
2704
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2536947"></a>Step 6: Create the Cedar Backup configuration file.</h3></div></div></div><p>
2690
2705
Following the instructions in
2691
2706
<a href="#cedar-config-configfile" title="Configuration File Format">the section called “Configuration File Format”</a> (above), create a
2692
2707
configuration file for your machine. Since you are working with a
2775
2790
<sup>[<a href="#ftn.cedar-config-foot-bugzilla">28</a>]</sup>
2776
2791
To be safe, always enable the consistency check option in the
2777
2792
store configuration section.</em></span>
2778
</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-config-scsi"></a>Configuring your SCSI Device</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2545955"></a>SCSI Required</h3></div></div></div><p>
2779
In order to execute the store action, your CD-R or CD-RW drive must
2780
either be a SCSI device or must be configured to act like a SCSI
2781
device from the perspective of the <span><strong class="command">cdrecord</strong></span> and
2782
<span><strong class="command">mkisofs</strong></span> commands. Regardless of what kind of drive
2783
you have, make sure you know its SCSI address and its filesystem
2784
device name. The SCSI address will be used to write to media, and the
2785
device name will be used when Cedar Backup needs to mount the media
2786
(for instance, when a validation check must be run).
2793
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2537226"></a>Step 10: Modify the backup cron jobs.</h3></div></div></div><p>
2794
Since Cedar Backup should be run as root, you should add a set of
2795
lines like this to your <code class="filename">/etc/crontab</code> file:
2796
</p><pre class="programlisting">
2797
30 00 * * * root cback collect
2798
30 02 * * * root cback stage
2799
30 04 * * * root cback store
2800
30 06 * * * root cback purge
2802
You should consider adding the <code class="option">--output</code> or
2803
<code class="option">-O</code> switch to your <span><strong class="command">cback</strong></span>
2804
command-line in cron. This will result in larger logs, but could
2805
help diagnose problems when commands like
2806
<span><strong class="command">cdrecord</strong></span> or <span><strong class="command">mkisofs</strong></span> fail
2809
You will need to coordinate the collect and purge actions on
2810
clients so that their collect actions complete before the master
2811
attempts to stage, and so that their purge actions do not begin
2812
until after the master has completed staging. Usually, allowing
2813
an hour or two between steps should be sufficient.
2814
<sup>[<a href="#ftn.cedar-config-foot-coordinate">29</a>]</sup>
2815
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
2816
For general information about using cron, see the manpage for
2819
On a Debian system, execution of daily backups is controlled by
2820
the file <code class="filename">/etc/cron.d/cedar-backup2</code>. As
2821
installed, this file contains several different settings, all
2822
commented out. Uncomment the “<span class="quote">Master machine</span>”
2823
entries in the file, and change the lines so that the backup
2824
goes off when you want it to.
2825
</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-config-writer"></a>Configuring your Writer Device</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2537341"></a>SCSI Devices</h3></div></div></div><p>
2826
In order to execute the store action for a SCSI writer device, you
2827
need to know the device's SCSI address and
2828
<span class="emphasis"><em>also</em></span> its filesystem device name. The SCSI id
2829
(<target_scsi_id>) will be used to write to media using
2830
<span><strong class="command">cdrecord</strong></span>; and the device name
2831
(<target_device>) will be used for other filesystem
2832
operations — for instance, when the media needs to be mounted
2833
to run the consistency check.
2788
2835
A true SCSI device will always have an address
2789
2836
<code class="literal">scsibus,target,lun</code>, for instance
2792
2839
BSD system to test with currently). The SCSI address represents the
2793
2840
location of your writer device on the one or more SCSI buses that you
2794
2841
have available on your system.
2795
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2546008"></a>Linux Notes</h3></div></div></div><p>
2842
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2537395"></a>Non-SCSI Devices</h3></div></div></div><p>
2843
On some platforms, it is possible to reference non-SCSI writer
2844
devices (like IDE CD writers) using an emulated SCSI id. If you
2845
have configured your non-SCSI writer device to have an emulated
2846
SCSI id, provide the filesystem device path in
2847
<target_device> and the SCSI id in <target_scsi_id>,
2848
just like for a real SCSI device.
2850
On other platforms, it is possible to reference non-SCSI writer
2851
devices directly by filesystem device path rather than through SCSI
2852
emulation. On these platforms, you should configure Cedar Backup
2853
with a <target_device> value but not a <target_scsi_id>
2856
You should note that in some cases, an emulated SCSI id takes the
2857
same form as a normal SCSI id (“<span class="quote">scsibus,target,lun</span>”),
2858
while in other cases you might see a method name prepended to the
2860
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2537437"></a>Linux Notes</h3></div></div></div><p>
2796
2861
On a Linux system, IDE writer devices often have a simulated SCSI
2797
2862
address, which allows SCSI-based software to access the device through
2798
2863
an IDE-to-SCSI interface. Under these circumstances, the first IDE
2799
writer device typically has an address <code class="literal">0,0,0</code>.
2800
Newer Linux systems (kernel 2.6.x) can also be compiled with support
2801
for other kinds of CD drive interfaces. If your kernel supports it,
2802
you can address <em class="firstterm">ATA</em> or
2864
writer device typically has an address <code class="literal">0,0,0</code>. However,
2865
support for the IDE-to-SCSI interface has been deprecated and is not
2866
well-supported in newer kernels (kernel 2.6.x and later).
2868
Newer Linux kernels can address <em class="firstterm">ATA</em> or
2803
2869
<em class="firstterm">ATAPI</em> drives without SCSI emulation by
2804
prepending an indicator to the simulated device address, for instance
2805
<code class="literal">ATA:0,0,0</code> or <code class="literal">ATAPI:0,0,0</code>.
2807
A discussion of how to configure your CD writer hardware is outside
2808
the scope of this document, but you may want to reference the
2809
<em class="citetitle">Linux CDROM HOWTO</em>
2810
(<a href="http://www.tldp.org/HOWTO/CDROM-HOWTO" target="_top">http://www.tldp.org/HOWTO/CDROM-HOWTO</a>)
2811
or the <em class="citetitle">ATA RAID HOWTO</em>
2812
(<a href="http://www.tldp.org/HOWTO/ATA-RAID-HOWTO/index.html" target="_top">http://www.tldp.org/HOWTO/ATA-RAID-HOWTO/index.html</a>)
2870
prepending a “<span class="quote">method</span>” indicator to the simulated
2871
device address. For instance, <code class="literal">ATA:0,0,0</code> or
2872
<code class="literal">ATAPI:0,0,0</code> are typical values.
2874
However, even this interface is deprecated as of late 2006, so with
2875
relatively new kernels you may be better off using the filesystem
2876
device path directly rather than relying on any SCSI emulation, as
2879
Here are some hints about how to find your Linux hardware. First, try to
2880
reference your device using the filesystem device path:
2881
</p><pre class="screen">
2882
cdrecord -prcap dev=/dev/cdrom
2884
Running this command on my hardware gives output that looks like
2885
this (just the top few lines):
2886
</p><pre class="screen">
2887
Device type : Removable CD-ROM
2891
Vendor_info : 'LITE-ON '
2892
Identification : 'DVDRW SOHW-1673S'
2894
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
2896
Drive capabilities, per MMC-3 page 2A:
2898
If this works, and the identifying information at the top of the
2899
output looks like your CD writer device, you've probably found a
2900
working configuration. Place the device path into
2901
<target_device> and leave <target_scsi_id> blank.
2903
If this doesn't work, you should try to find an ATA or ATAPI
2905
</p><pre class="screen">
2906
cdrecord -scanbus dev=ATA
2907
cdrecord -scanbus dev=ATAPI
2909
On my development system, I get a result that looks something like
2911
</p><pre class="screen">
2913
1,0,0 100) 'LITE-ON ' 'DVDRW SOHW-1673S' 'JS02' Removable CD-ROM
2922
Again, if you get a result that you recognize, you have again
2923
probably found a working configuraton. Place the associated device
2924
path (in my case, <code class="literal">/dev/cdrom</code>) into
2925
<target_device> and put the emulated SCSI id
2926
(in this case, <code class="literal">ATA:1,0,0</code>) into <target_scsi_id>.
2928
Any further discussion of how to configure your CD writer hardware
2929
is outside the scope of this document. If you have tried the hints
2930
above and still can't get things working, you may want to reference
2931
the <em class="citetitle">Linux CDROM HOWTO</em>
2932
(<a href="http://www.tldp.org/HOWTO/CDROM-HOWTO" target="_top">http://www.tldp.org/HOWTO/CDROM-HOWTO</a>)
2933
or the <em class="citetitle">ATA RAID HOWTO</em>
2934
(<a href="http://www.tldp.org/HOWTO/ATA-RAID-HOWTO/index.html" target="_top">http://www.tldp.org/HOWTO/ATA-RAID-HOWTO/index.html</a>)
2813
2935
for more information.
2814
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2546079"></a>Mac OS X Notes</h3></div></div></div><p>
2936
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2537604"></a>Mac OS X Notes</h3></div></div></div><p>
2815
2937
On a Mac OS X (darwin) system, things get strange. Apple has
2816
2938
abandoned traditional SCSI device identifiers in favor of a
2817
2939
system-wide resource id. So, on a Mac, your writer device will
2836
2958
If you are interested in some of my notes about what works and what
2837
2959
doesn't on this platform, check out the documentation in the
2838
2960
<code class="filename">doc/osx</code> directory in the source distribution.
2839
</p></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2538914" href="#id2538914">24</a>] </sup>Some users find this surprising,
2961
</p></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.id2530407" href="#id2530407">24</a>] </sup>Some users find this surprising,
2840
2962
because extensions are configured with sequence numbers. I did it
2841
2963
this way because I felt that running extensions as part of the all
2842
2964
action would sometimes result in “<span class="quote">surprising</span>”
2843
behavior. Better to be definitive than confusing.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2539372" href="#id2539372">25</a>] </sup>See
2965
behavior. Better to be definitive than confusing.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2530866" href="#id2530866">25</a>] </sup>See
2844
2966
<a href="http://www.xml.com/pub/a/98/10/guide0.html" target="_top">http://www.xml.com/pub/a/98/10/guide0.html</a>
2845
for a basic introduction to XML.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2539428" href="#id2539428">26</a>] </sup>See <a href="#cedar-basic-process" title="The Backup Process">the section called “The Backup Process”</a>, in <a href="#cedar-basic" title="Chapter�2.�Basic Concepts">Chapter�2, <i>Basic Concepts</i></a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.cedar-config-foot-regex" href="#cedar-config-foot-regex">27</a>] </sup>See <a href="http://docs.python.org/lib/re-syntax.html" target="_top">http://docs.python.org/lib/re-syntax.html</a></p></div><div class="footnote"><p><sup>[<a name="ftn.cedar-config-foot-bugzilla" href="#cedar-config-foot-bugzilla">28</a>] </sup>
2846
See <a href="http://cedar-solutions.com/bugzilla/" target="_top">http://cedar-solutions.com/bugzilla/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.cedar-config-foot-coordinate" href="#cedar-config-foot-coordinate">29</a>] </sup>See <a href="#cedar-basic-coordinate" title="Coordination between Master and Clients">the section called “Coordination between Master and Clients”</a> in <a href="#cedar-basic" title="Chapter�2.�Basic Concepts">Chapter�2, <i>Basic Concepts</i></a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2546121" href="#id2546121">30</a>] </sup>Thanks to the
2967
for a basic introduction to XML.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2530921" href="#id2530921">26</a>] </sup>See <a href="#cedar-basic-process" title="The Backup Process">the section called “The Backup Process”</a>, in <a href="#cedar-basic" title="Chapter�2.�Basic Concepts">Chapter�2, <i>Basic Concepts</i></a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.cedar-config-foot-regex" href="#cedar-config-foot-regex">27</a>] </sup>See <a href="http://docs.python.org/lib/re-syntax.html" target="_top">http://docs.python.org/lib/re-syntax.html</a></p></div><div class="footnote"><p><sup>[<a name="ftn.cedar-config-foot-bugzilla" href="#cedar-config-foot-bugzilla">28</a>] </sup>
2968
See <a href="http://cedar-solutions.com/bugzilla/" target="_top">http://cedar-solutions.com/bugzilla/</a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.cedar-config-foot-coordinate" href="#cedar-config-foot-coordinate">29</a>] </sup>See <a href="#cedar-basic-coordinate" title="Coordination between Master and Clients">the section called “Coordination between Master and Clients”</a> in <a href="#cedar-basic" title="Chapter�2.�Basic Concepts">Chapter�2, <i>Basic Concepts</i></a>.</p></div><div class="footnote"><p><sup>[<a name="ftn.id2537646" href="#id2537646">30</a>] </sup>Thanks to the
2847
2969
file README.macosX in the cdrtools-2.01+01a01 source tree
2848
2970
for this information</p></div></div></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="cedar-extensions"></a>Chapter�5.�Official Extensions</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#cedar-extensions-sysinfo">System Information Extension</a></span></dt><dt><span class="sect1"><a href="#cedar-extensions-subversion">Subversion Extension</a></span></dt><dt><span class="sect1"><a href="#cedar-extensions-mysql">MySQL Extension</a></span></dt><dt><span class="sect1"><a href="#cedar-extensions-postgresql">PostgreSQL Extension</a></span></dt><dt><span class="sect1"><a href="#cedar-extensions-mbox">Mbox Extension</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cedar-extensions-sysinfo"></a>System Information Extension</h2></div></div></div><p>
2849
2971
The System Information Extension is a simple Cedar Backup extension