KB Logo

TOLIS Group Knowledge Base

Browse KB by category:
Go to KB #:
Email   Bookmark

How do you configure the scheduler with XBRU?

Views: 16462
Votes: 1
Posted: 03 Oct, 2007
Configuring the XBRU Scheduler
View the Open Source License for XBRU

The Scheduler for the BRU Graphical User Interface (XBRU) can be conveniently paired with cron to offer simple, hands-free backup management. The following illustrations will cover the utilization of cron in conjunction with XBRU by demonstrating how to create a crontab entry that will launch the XBRU Scheduler every five minutes. This will insure that all scheduled definitions are performed by the system at the proper times.

This process is not automatically performed when a scheduling a job with XBRU because many Linux/Unix administrators do not enjoy finding that Root's crontab has been modified without their knowledge.  Therefore, to make sure that all changes to Root's crontab are known, this process must be done manually.

To begin, make certain that the login is "root" and then locate and note the location of the bruschedule file using the following Unix command:

which bruschedule

The default location for this file is /usr/local/bin.

Before editing the actual crontab file, note that the editing command "crontab -e" (described below) uses the Unix editor vi by default. If an editor error appears when this command is executed, or if you wish to use a different editor, use the following command with the appropriate editor path:

EDITOR=/usr/bin/vi ; export EDITOR

If an alternate editor will be in use, substitute the proper editing commands for the vi commands listed below. Editor commands for vi and comments will be shown in standard Courier font. Commands to be entered at the user level will be shown in Courier bold. The hash mark (when shown in standard font - #) represents comments that should clarify the commands that are listed. Two possible entries will be illustrated. The first will work for most Linux systems and the second for most Un*x systems. To begin, issue the following command from the root command prompt:

# crontab -e

If no crontab file currently exists, this will open a new crontab file. Otherwise, it will open the current crontab file in the default editor. Once the editor has been launched and the crontab file is open, use the following commands (assuming that the editor is vi) to edit the file:

<Shift>G - #[G]o to last line of file. This is not necessary if file is blank.
o - #[o]pen new line for edit

Add the following comment to define the operation of the crontab entry:

# Launch XBRU's scheduler to allow unattended backups <Enter>

At the next line, enter the following syntax for Linux systems. Change path to bruschedule if applicable:

*/5 * * * * /usr/local/bin/bruschedule

For most Un*x systems, the following line will work (be sure to start with 0 and end with 55). Change path to bruschedule if applicable:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/bruschedule

Once this has been completed, the following command sequence will save the new crontab information and exit vi:

<Esc> - # Press the escape key to exit "insert" mode
w - # Write the file
q - # Quit

From this point forward, cron should run the XBRU Scheduler at five minute intervals, allowing it to execute any saved backup definitions that have been scheduled. To modify the Scheduler, or if further information regarding the XBRU Scheduler interface is needed, see the XBRU on-line manual at:

Others in this Category
document Setting up an Autoloader to work with BRU - Method 2
document How do I utilize Quick File Access (QFA) with BRU 17.0?
document Disable/Enable Hardware Compression When Using BRU
document How do I use BRU with CRON?
document Sample BRUTAB Settings
» More Articles

Powered by KnowledgebasePublisher
Page Load Time: 0.030737 seconds / 30.737 milliseconds.
Page File Size: 23723 bytes.