Bacula Error Codes
Contents |
List of Console Commands Special dot Commands Special At (@) Commands Running the Console from a Shell Script Adding Volumes to a Pool Bacula Console The Bacula Console (sometimes called the User Agent) is a program that allows the user or the System Administrator, to interact bacula logs with the Bacula Director daemon while the daemon is running. The current Bacula Console comes in bacula list jobs two versions: a shell interface (TTY style), and a QT GUI interface (Bat). Both permit the administrator or authorized users to interact with Bacula. bacula job log You can determine the status of a particular job, examine the contents of the Catalog as well as perform certain tape manipulations with the Console program. In addition, there is a bwx-console built with wxWidgets that allows a graphic bacula fileset restore of files. As of version 1.34.1 it is in an early stage of development, but it already is quite useful. Unfortunately, it has not been enhanced for some time now. Since the Console program interacts with the Director through the network, your Console and Director programs do not necessarily need to run on the same machine. In fact, a certain minimal knowledge of the Console program is needed in order for Bacula to be able to write
Bacula Cancel Job
on more than one tape, because when Bacula requests a new tape, it waits until the user, via the Console program, indicates that the new tape is mounted. Console Configuration When the Console starts, it reads a standard Bacula configuration file named bconsole.conf or bat.conf in the case of the Bat QT Console version from the current directory unless you specify the -c command line option (see below). This file allows default configuration of the Console, and at the current time, the only Resource Record defined is the Director resource, which gives the Console the name and address of the Director. For more information on configuration of the Console program, please see the Console Configuration FileConsoleConfChapter Chapter of this document. Running the Console Program The console program can be run with the following options: Usage: bconsole [-s] [-c config_file] [-d debug_level] -c
stores data in the database for faster retrieval in case you need a certain file back. As a big fan of cheat sheets I created this cheat sheet. What's up? Which files shall be backed up? show filesets I=Included, E=Excluded
Bacula Device Is Blocked Waiting To Create A Volume For
What's the server doing? status dir What's the status of a certain job? status bacula cheat sheet jobid=xx What's the client doing? status client What's the streamer doing? status storage Anything new? messages Backing up Start a backup run bacula heartbeat interval …and choose the backup job Label a new tape label …and run mount afterwards Restoring The common way (a user accidentally removed a file and wants the newest version back from the tapes: Use the http://www.bacula.org/5.0.x-manuals/en/console/console/Bacula_Console.html restore command. Choose option 5 (Select the most recent backup for a client). cd / ls / dir / mark / markdir / unmark / unmarkdir / lsmark / estimate / pwd / count / find done Jobs Last jobs list jobs …or list jobid=xx' for a specific job Statistics about last lobs list jobtotal Which files were backed up? list files jobid=xx Job status Status means… T Terminated normally C Created https://workaround.org/bacula-cheatsheet/ but not yet running R Running B Blocked E Terminated in Error e Non-fatal error f Fatal error D Verify Differences A Canceled by the user F Waiting on the File daemon S Waiting on the Storage daemon m Waiting for a new Volume to be mounted M Waiting for a Mount s Waiting for Storage resource j Waiting for Job resource c Waiting for Client resource d Wating for Maximum jobs t Waiting for Start Time p Waiting for higher priority job to finish Tapes Which tapes are in the pool? list media Remove a tape delete media Which pools are defined? list pools Which tapes are/were used for a certain job? list jobmedia Assign a tape to a certain pool add Change parameters of a tape update volume Troubleshooting Erase a label on the tape mt rewind && mt weof && mt rewind Views: 12,149 3 thoughts on “Bacula Cheat Sheet” Murilo Esplugues2013-12-18 at 03:39Permalink Congratulations, very concise and util. Reply Tien Phan The2015-02-09 at 02:57Permalink This article is very useful! Thank you. - Come from Viet Nam Reply fatalkill3r2016-04-10 at 05:13Permalink Thanks this is really useful Reply Leave a Reply Cancel reply Your email address will not be published. Required fields are marked *Comment Name * Email * Readers' commentsDieter Agtern
noticed a few new things to be aware of. With 5.0.0 comes https://dan.langille.org/2010/03/23/baccula-errors-with-500-backup-catalog/ a new backup catalog script. It parses the bacula-dir.conf file and extracts what it needs from that. This means you only need to specify the http://webmodelling.com/webbits/miscellaneous/bacula.aspx database connection information in one place and it is not passed to a script via the command line. If you see this error while bacula error running that script: 25-Jan 16:37 ducky.unixathome.org-dir JobId 32500: shell command: run BeforeJob "/usr/local/share/bacula/make_catalog_backup.pl MyCatalog" 25-Jan 16:37 ducky.unixathome.org-dir JobId 32500: BeforeJob: Can't get catalog information at /usr/local/share/bacula/make_catalog_backup.pl line 129. 25-Jan 16:37 ducky.unixathome.org-dir JobId 32500: Error: Runscript: BeforeJob returned non-zero status=13. ERR=Child exited with code 13 25-Jan 16:37 ducky.unixathome.org-dir JobId 32500: Error: bacula error codes Bacula ducky.unixathome.org-dir 5.0.0 (26Jan10): 25-Jan-2010 16:37:10 Then I suspect the permissions on make_catalog_backup.pl are insufficient for Bacula to run it. I made mine chown bacula:bacula and chmod 744: -rwxr-xr-- 1 bacula bacula 4120 Jan 25 17:10 make_catalog_backup.pl If you see this error: 25-Jan 16:44 ducky.unixathome.org-dir JobId 32502: shell command: run BeforeJob "/usr/local/share/bacula/make_catalog_backup.pl MyCatalog" 25-Jan 16:44 ducky.unixathome.org-dir JobId 32502: BeforeJob: Can't find your catalog (MyCatalog) in director configuration 25-Jan 16:44 ducky.unixathome.org-dir JobId 32502: Error: Runscript: BeforeJob returned non-zero status=1. ERR=Child exited with code 1 Then chances are the permissions on bacula-dir.conf or dbcheck are insufficient. Make sure this command works: # su -m bacula -c '/usr/local/sbin/dbcheck -B -c /usr/local/etc/bacula-dir.conf' catalog=MyCatalog db_name=bacula db_driver= db_user=bacula db_password= db_address= db_port=0 db_socket= db_type=PostgreSQL working_dir=/var/db/bacula If you get: /usr/local/sbin/dbcheck: Permission denied. Make sure bacula is allowed to run dbcheck. I use this: -rwxr-xr-- 1 root bacula 100225 Jan 25 17:12 dbcheck If you get thi
install, backup & restore Updated 23 Apr 2013. This bacula backup tutorial is a step by step guide how to install Bacula, backup & restore Ubuntu and Windows using Bacula - the prime open source and free industrial grade backup solution. Then you finish this bacula tutorial, you will be able to use Bacula to backup & restore multiple servers and multiple operation systems using one or multiple backup servers - Bacula easily scales to many hundreds of computers in a network. Index : Bacula 5 main components Server Schema - the servers we are going to backup How to Install Bacula - Linux Ubuntu and Windows How to Configure Bacula Bacula configure connections (test connections) Bacula configure storage Bacula configure schedules Bacula configure messages Bacula configure jobs (test backup jobs) Restore files Appendixes : Appendix : Bacula console commands & management - you will need this Appendix : Bacula concepts - read if you are new to bacula Appendix : Bacula utility programs Appendix : Bacula folders Appendix : Bacula alternatives Appendix : Common errors & solutions Comments Relevant Links : Bacula homepage Bacula 5.2.x main manual Bacula main components Bacula consist of 5 main parts : Director daemon : Controls backup & restore operations. In /etc/bacula/bacula-dir.conf you configure Jobs, FileSets, Schedules etc. Bacula Console : A command line program that allows you to interact with the Director daemon, eg. then you need to run a Restore job. Storage daemon : The Director hands off the responsibility for writing and reading the physical backup media to the Storage daemon - in our case the physical backup media are files (not tapes) on a harddrive, while the harddrive itself (not a tape drive) is our backup device. File daemon : The File daemon is a program that must be installed on the machine to backup. The Directory communicates wit