\chapter{Backup Strategies} \label{blb:StrategiesChapter} \index[general]{Strategies!Backup } \index[general]{Backup Strategies } Although Recycling and Backing Up to Disk Volume have been discussed in previous chapters, this chapter is meant to give you an overall view of possible backup strategies and to explain their advantages and disadvantages. \label{blb:Simple} \section{Simple One Tape Backup} \index[general]{Backup!Simple One Tape } \index[general]{Simple One Tape Backup } Probably the simplest strategy is to back everything up to a single tape and insert a new (or recycled) tape when it fills and \bacula{} requests a new one. \subsection{Advantages} \index[general]{Advantages } \begin{bitemize} \item The operator intervenes only when a tape change is needed. (once a month at my site). \item There is little chance of operator error because the tape is not changed daily. \item A minimum number of tapes will be needed for a full restore. Typically the best case will be one tape and worst two. \item You can easily arrange for the Full backup to occur a different night of the month for each system, thus load balancing and shortening the backup time. \end{bitemize} \subsection{Disadvantages} \index[general]{Disadvantages } \begin{bitemize} \item If your site burns down, you will lose your current backups, and in my case about a month of data. \item After a tape fills and you have put in a blank tape, the backup will continue, and this will generally happen during working hours. \end{bitemize} \subsection{Practical Details} \index[general]{Details!Practical } \index[general]{Practical Details } This system is very simple. When the tape fills and \bacula{} requests a new tape, you \bcommandname{unmount} the tape from the Console program, insert a new tape and \bcommandname{label} it. In most cases after the label, \bacula{} will automatically mount the tape and resume the backup. Otherwise, you simply \bcommandname{mount} the tape. Using this strategy, one typically does a Full backup once a week followed by daily Incremental backups. To minimize the amount of data written to the tape, one can do a Full backup once a month on the first Sunday of the month, a Differential backup on the 2nd-5th Sunday of the month, and incremental backups the rest of the week. \label{blb:Manual} \section{Manually Changing Tapes} \index[general]{Tapes!Manually Changing } \index[general]{Manually Changing Tapes } If you use the strategy presented above, \bacula{} will ask you to change the tape, and you will \bcommandname{unmount} it and then remount it when you have inserted the new tape. If you do not wish to interact with \bacula{} to change each tape, there are several ways to get \bacula{} to release the tape: \begin{bitemize} \item In your Storage daemon's Device resource, set \textbf{AlwaysOpen = no} In this case, \bacula{} will release the tape after every job. If you run several jobs, the tape will be rewound and repositioned to the end at the beginning of every job. This is not very efficient, but does let you change the tape whenever you want. \item Use a \textbf{RunAfterJob} statement to run a script after your last job. This could also be an \textbf{Admin} job that runs after all your backup jobs. The script could be something like: \begin{bVerbatim} #!/bin/sh /opt/bacula/bin/bconsole -c /opt/bacula/bin/bconsole.conf <