User Tools

Site Tools


bacula_manual:getting_started_with_bacula

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bacula_manual:getting_started_with_bacula [2010/02/05 15:15]
baylink Clean, expand, and FIXME: backup to files
bacula_manual:getting_started_with_bacula [2010/03/06 06:22] (current)
markusn link to chapter
Line 123: Line 123:
 </​code>​ </​code>​
  
-will test the configuration files of each of the main programs. If the configuration file is OK, the program will terminate without printing anything. Please note that, depending on the configure options you choose, some, or even all, of the three last commands will not be available on your system. If you have installed ​the binaries in traditional Unix locations rather than single file, you will need to modify the above commands appropriately (no ./ in front of the command name, and a path in front of the conf file name).+will test the configuration files of each of the main programs. If the configuration file is OK, the program will terminate without printing anything. Please note that, depending on the configure options you choose, some, or even all, of the three last commands will not be available on your system. If you'​ve ​installed ​from binary package instead of course, you can use this:
  
 +<code bash>
 +cd /etc/bacula
 +bacula-dir -t -c bacula-dir.conf
 +bacula-fd -t -c bacula-fd.conf
 +bacula-sd -t -c bacula-sd.conf
 +bconsole -t -c bconsole.conf
 +bgnome-console -t -c bgnome-console.conf
 +bwx-console -t -c bwx-console.conf
 +bat -t -c bat.conf
 +su <normal user> -c "/​usr/​sbin/​bacula-tray-monitor -t -c tray-monitor.conf"​
 +</​code>​
 +
 +and, in fact, you might want to put that in a shellscript,​ so you can run it whenever you make changes. ​ Baylink calls his bcheck(1l), a command name which used to point to a file system check program, but that was Long, Long Ago.
 +
 +Note that the binaries live in /usr/sbin on Linux binary installs, so you must be root to run this, or add /usr/sbin to your path.
  
 ===== Testing Compatibility with Your Tape Drive ===== ===== Testing Compatibility with Your Tape Drive =====
-Before spending a lot of time on Bacula only to find that it doesn'​t work with your tape drive, please read the btape -- Testing Your Tape Drive chapter of this manual. If you have a modern standard SCSI tape drive on a Linux or Solaris, most likely it will work, but better test than be sorry. For FreeBSD (and probably other xBSD flavors), reading the above mentioned tape testing chapter is a must. Also, for FreeBSD, please see The FreeBSD Diary for a detailed description on how to make Bacula work on your system. In addition, users of FreeBSD prior to 4.9-STABLE dated Mon Dec 29 15:18:01 2003 UTC who plan to use tape devices, please see the file platforms/​freebsd/​pthreads-fix.txt in the main Bacula directory concerning important information concerning compatibility of Bacula and your system.+Before spending a lot of time on Bacula only to find that it doesn'​t work with your tape drive, please read the btape -- [[Testing Your Tape Drive With Bacula]] ​chapter of this manual. If you have a modern standard SCSI tape drive on a Linux or Solaris, most likely it will work, but better test than be sorry. For FreeBSD (and probably other xBSD flavors), reading the above mentioned tape testing chapter is a must. Also, for FreeBSD, please see The FreeBSD Diary for a detailed description on how to make Bacula work on your system. In addition, users of FreeBSD prior to 4.9-STABLE dated Mon Dec 29 15:18:01 2003 UTC who plan to use tape devices, please see the file platforms/​freebsd/​pthreads-fix.txt in the main Bacula directory concerning important information concerning compatibility of Bacula and your system.
  
 ===== Get Rid of the /lib/tls Directory ===== ===== Get Rid of the /lib/tls Directory =====
Line 137: Line 152:
 Probably the most important part of running Bacula is being able to restore files. If you haven'​t tried recovering files at least once, when you actually have to do it, you will be under a lot more pressure, and prone to make errors, than if you had already tried it once. Probably the most important part of running Bacula is being able to restore files. If you haven'​t tried recovering files at least once, when you actually have to do it, you will be under a lot more pressure, and prone to make errors, than if you had already tried it once.
  
-To get a good idea how to use Bacula in a short time, we strongly recommend that you follow the example in the Running Bacula ​Chapter ​of this manual where you will get detailed instructions on how to run Bacula.+To get a good idea how to use Bacula in a short time, we strongly recommend that you follow the example in the Running Bacula ​chapter ​of this manual where you will get detailed instructions on how to run Bacula.
  
 ===== Log Rotation ===== ===== Log Rotation =====
  
 If you use the default bacula-dir.conf or some variation of it, you will note that it logs all the Bacula output to a file. To avoid that this file grows without limit, we recommend that you copy the file logrotate from the scripts/​logrotate to /​etc/​logrotate.d/​bacula. This will cause the log file to be rotated once a month and kept for a maximum of five months. You may want to edit this file to change the default log rotation preferences. If you use the default bacula-dir.conf or some variation of it, you will note that it logs all the Bacula output to a file. To avoid that this file grows without limit, we recommend that you copy the file logrotate from the scripts/​logrotate to /​etc/​logrotate.d/​bacula. This will cause the log file to be rotated once a month and kept for a maximum of five months. You may want to edit this file to change the default log rotation preferences.
 +
 +Installations from binary packages will automatically install this file.
  
 ===== Log Watch ===== ===== Log Watch =====
  
 Some systems such as Red Hat and Fedora run the logwatch program every night, which does an analysis of your log file and sends an email report. If you wish to include the output from your Bacula jobs in that report, please look in the scripts/​logwatch directory. The README file in that directory gives a brief explanation on how to install it and what kind of output to expect. Some systems such as Red Hat and Fedora run the logwatch program every night, which does an analysis of your log file and sends an email report. If you wish to include the output from your Bacula jobs in that report, please look in the scripts/​logwatch directory. The README file in that directory gives a brief explanation on how to install it and what kind of output to expect.
 +
 +Installations from binary packages will automatically install this file.
  
 ===== Disaster Recovery ===== ===== Disaster Recovery =====
bacula_manual/getting_started_with_bacula.1265382917.txt.gz ยท Last modified: 2010/02/05 15:15 by baylink