Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > df754e4e6f7f5fc8ab9d6ed8559f3e3d > files > 155

bacula-docs-5.0.3-19.fc16.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Data Spooling</TITLE>
<META NAME="description" CONTENT="Data Spooling">
<META NAME="keywords" CONTENT="main">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="main.css">

<LINK REL="next" HREF="Using_Bacula_catalog_grab.html">
<LINK REL="previous" HREF="Supported_Autochangers.html">
<LINK REL="up" HREF="Bacula_Main_Reference.html">
<LINK REL="next" HREF="Using_Bacula_catalog_grab.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html1768"
  HREF="Using_Bacula_catalog_grab.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html1762"
  HREF="Bacula_Main_Reference.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html1756"
  HREF="Supported_Autochangers.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html1764"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html1766"
  HREF="Thanks.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1769"
  HREF="Using_Bacula_catalog_grab.html">Using Bacula catalog to</A>
<B> Up:</B> <A NAME="tex2html1763"
  HREF="Bacula_Main_Reference.html">Bacula Main Reference</A>
<B> Previous:</B> <A NAME="tex2html1757"
  HREF="Supported_Autochangers.html">Supported Autochangers</A>
 &nbsp; <B>  <A NAME="tex2html1765"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html1767"
  HREF="Thanks.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html1770"
  HREF="Data_Spooling.html#SECTION003410000000000000000">Data Spooling Directives</A>
<LI><A NAME="tex2html1771"
  HREF="Data_Spooling.html#SECTION003420000000000000000">!!! MAJOR WARNING !!!</A>
<LI><A NAME="tex2html1772"
  HREF="Data_Spooling.html#SECTION003430000000000000000">Other Points</A>
</UL>
<!--End of Table of Child-Links-->
<HR>

<H1><A NAME="SECTION003400000000000000000"></A>
<A NAME="SpoolingChapter"></A>
<BR>
Data Spooling
</H1>
<A NAME="18144"></A>
<A NAME="18145"></A>

<P>
Bacula allows you to specify that you want the Storage daemon to initially
write your data to disk and then subsequently to tape. This serves several
important purposes. 

<P>

<UL>
<LI>It takes a long time for data to come in from the File daemon during
   an Incremental backup.  If it is directly written to tape, the tape will
   start and stop or shoe-shine as it is often called causing tape wear.
   By first writing the data to disk, then writing it to tape, the tape can
   be kept in continual motion.
</LI>
<LI>While the spooled data is being written to the tape, the despooling
   process has exclusive use of the tape.  This means that you can spool
   multiple simultaneous jobs to disk, then have them very efficiently
   despooled one at a time without having the data blocks from several jobs
   intermingled, thus substantially improving the time needed to restore
   files. While despooling, all jobs spooling continue running.
</LI>
<LI>Writing to a tape can be slow.  By first spooling your data to disk,
   you can often reduce the time the File daemon is running on a system,
   thus reducing downtime, and/or interference with users.  Of course, if
   your spool device is not large enough to hold all the data from your
   File daemon, you may actually slow down the overall backup.
</LI>
</UL>

<P>
Data spooling is exactly that "spooling".  It is not a way to first write a
"backup" to a disk file and then to a tape.  When the backup has only been
spooled to disk, it is not complete yet and cannot be restored until it is
written to tape.  

<P>
Bacula version 1.39.x and later supports writing a backup
to disk then later <B>Migrating</B> or moving it to a tape (or any
other medium). For
details on this, please see the MigrationMigrationChapter chapter
of this manual for more details.

<P>
The remainder of this chapter explains the various directives that you can use
in the spooling process. 

<P>
<A NAME="directives"></A>
<H1><A NAME="SECTION003410000000000000000">
Data Spooling Directives</A>
</H1>
<A NAME="18153"></A>
<A NAME="18154"></A>

<P>
The following directives can be used to control data spooling. 

<P>

<UL>
<LI>To turn data spooling on/off at the Job level in  the Job resource in
   the Director's conf file (default  <B>no</B>).

<P>
<B>SpoolData = yesno</B> 

<P>
</LI>
<LI>To override the Job specification in a Schedule Run  directive in the
   Director's conf file.

<P>
<B>SpoolData = yesno</B> 

<P>
</LI>
<LI>To override the Job specification in a bconsole session using the <TT>run</TT>
   command. Please note that this does <B>not </B> refer to a configuration
   statement, but to an argument for the run command.

<P>
<B>SpoolData=yesno</B> 

<P>
</LI>
<LI>To limit the the maximum spool file size for a particular job in the Job
  resource

<P>
<B>Spool Size = size</B>
   Where size is a the maximum spool size for this job  specified in bytes. 

<P>
</LI>
<LI>To limit the maximum total size of the spooled data  for a particular
   device. Specified in the Device  resource of the Storage daemon's conf file
   (default  unlimited).

<P>
<B>Maximum Spool Size = size</B>
   Where size is a the maximum spool size for all jobs  specified in bytes. 

<P>
</LI>
<LI>To limit the maximum total size of the spooled data  for a particular
   device for a single job. Specified  in the Device Resource of the Storage
   daemon's conf  file (default unlimited).

<P>
<B>Maximum Job Spool Size = size</B>
   Where size is the maximum spool file size for a single  job specified in
   bytes. 

<P>
</LI>
<LI>To specify the spool directory for a particular device.  Specified in
   the Device Resource of the Storage daemon's conf  file (default, the working
   directory).

<P>
<B>Spool Directory = directory</B> 
</LI>
</UL>

<P>
<A NAME="warning"></A>
<P>

<H1><A NAME="SECTION003420000000000000000">
!!! MAJOR WARNING !!!</A>
</H1>
<A NAME="18169"></A>
<A NAME="18170"></A>

<P>
Please be very careful to exclude the spool directory from any backup,
otherwise, your job will write enormous amounts of data to the Volume, and
most probably terminate in error. This is because in attempting to backup the
spool file, the backup data will be written a second time to the spool file,
and so on ad infinitum. 

<P>
Another advice is to always specify the maximum spool size so that your disk
doesn't completely fill up. In principle, data spooling will properly detect a
full disk, and despool data allowing the job to continue. However, attribute
spooling is not so kind to the user. If the disk on which attributes are being
spooled fills, the job will be canceled. In addition, if your working 
directory is on the same partition as the spool directory, then Bacula jobs
will fail possibly in bizarre ways when the spool fills.

<P>
<A NAME="points"></A>
<H1><A NAME="SECTION003430000000000000000">
Other Points</A>
</H1>
<A NAME="18173"></A>
<A NAME="18174"></A>

<P>

<UL>
<LI>When data spooling is enabled, Bacula automatically  turns on attribute
   spooling. In other words, it also  spools the catalog entries to disk. This is
   done so  that in case the job fails, there will be no catalog  entries
   pointing to non-existent tape backups. 
</LI>
<LI>Attribute despooling occurs near the end of a job.  The Storage daemon
   accumulates file attributes during the backup and  sends them to the
   Director at the end of the job.  The Director then inserts the file
   attributes into the catalog.  During this insertion, the tape drive may
   be inactive.  When the file attribute insertion is completed, the job
   terminates. 
</LI>
<LI>Attribute spool files are always placed in the  working directory of 
   the Storage daemon.
</LI>
<LI>When Bacula begins despooling data spooled to disk, it  takes exclusive
   use of the tape. This has the major  advantage that in running multiple
   simultaneous jobs at  the same time, the blocks of several jobs will not be 
   intermingled. 
</LI>
<LI>It probably does not make a lot of sense to enable data  spooling if you
   are writing to disk files. 
</LI>
<LI>It is probably best to provide as large a spool file as  possible to
   avoid repeatedly spooling/despooling. Also,  while a job is despooling to
   tape, the File daemon must wait  (i.e. spooling stops for the job while it is 
   despooling).  
</LI>
<LI>If you are running multiple simultaneous jobs, Bacula  will continue
   spooling other jobs while one is despooling  to tape, provided there is
   sufficient spool file space. 
</LI>
</UL>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html1768"
  HREF="Using_Bacula_catalog_grab.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html1762"
  HREF="Bacula_Main_Reference.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html1756"
  HREF="Supported_Autochangers.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html1764"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html1766"
  HREF="Thanks.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1769"
  HREF="Using_Bacula_catalog_grab.html">Using Bacula catalog to</A>
<B> Up:</B> <A NAME="tex2html1763"
  HREF="Bacula_Main_Reference.html">Bacula Main Reference</A>
<B> Previous:</B> <A NAME="tex2html1757"
  HREF="Supported_Autochangers.html">Supported Autochangers</A>
 &nbsp; <B>  <A NAME="tex2html1765"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html1767"
  HREF="Thanks.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>

2012-01-24
</ADDRESS>
</BODY>
</HTML>