From fa45519ee0d397473c7b46a46c322d4cee2c40e0 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 24 Feb 2007 22:13:57 +0000 Subject: [PATCH] ebl update with Fifo virtual device (to test backup) --- docs/manual/faq.tex | 18 ++++++++++++++++++ docs/manual/storedconf.tex | 23 ++++++++++++++++++++--- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/docs/manual/faq.tex b/docs/manual/faq.tex index acd82c8d..b884feb8 100644 --- a/docs/manual/faq.tex +++ b/docs/manual/faq.tex @@ -360,6 +360,24 @@ FAQ for how to do so. explain how to write to disk, but was expanded to include volume management. It is, however, still quite a good chapter to read. +\label{testbackup} +\section{Can i use Dummy device to test backup?} + Yes, to have a {\sl Virtual} device which just drop data, you can use a + Fifo Device (see \ilink{Stored configuration}{SetupFifo}), and you have to + run this script. It's useful to test backup. +\footnotesize +\begin{verbatim} +#!/bin/sh + +[! -p /tmp/fifo ] && mkfifo /tmp/fifo + +while cat /tmp/fifo > /dev/null +do + true # do nothing +done +\end{verbatim} +\normalsize + \label{bigfiles} \section{Can Bacula Backup and Restore Files Greater than 2 Gigabytes?} \item [Can Bacula Backup and Restore Files Greater than 2 Gigabytes in diff --git a/docs/manual/storedconf.tex b/docs/manual/storedconf.tex index 6c152224..624f1c52 100644 --- a/docs/manual/storedconf.tex +++ b/docs/manual/storedconf.tex @@ -285,7 +285,7 @@ specified within the Device resource are specific to the Device. If you want to write into more than one directory (i.e. to spread the load to different disk drives), you will need to define two Device resources, each containing an Archive Device with a different directory. - + \label{SetupFifo} In addition to a tape device name or a directory name, Bacula will accept the name of a FIFO. A FIFO is a special kind of file that connects two programs via kernel memory. If a FIFO device is specified for a backup operation, you @@ -299,8 +299,25 @@ specified within the Device resource are specific to the Device. set it to {\bf No}. Since a FIFO is a one way device, Bacula will not attempt to read a label of a FIFO device, but will simply write on it. To create a FIFO Volume in the catalog, use the {\bf add} command rather than then {\bf - label} command to avoid attempting to write a label. - + label} command to avoid attempting to write a label. + +\footnotesize +\begin{verbatim} +Device { + Name = FifoStorage + Media Type = Fifo + Device Type = Fifo + Archive Device = /tmp/fifo + LabelMedia = yes + Random Access = no + AutomaticMount = no + RemovableMedia = no + MaximumOpenWait = 60 + AlwaysOpen = no +} +\end{verbatim} +\normalsize + During a restore operation, if the Archive Device is a FIFO, Bacula will attempt to read from the FIFO, so you must have an external program that writes into the FIFO. Bacula will wait {\bf MaximumOpenWait} seconds for the -- 2.39.5