We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Backup

How can I run batch commands before and/or after an Agent based backup with the Barracuda Backup Service?

  • Type: Knowledgebase
  • Date changed: 4 years ago

Solution #00005868

 

Scope:
This solution applies to Barracuda Backup Service, firmware version 4.1 and above.

Agent Backup only.  

Answer:
In the 4.1 firmware, there exists the option to run pre and post Agent backup commands, by editing the bbconfig.ini file.

This will enable you to stop and start certain processes on the host computer that has the Agent installed on it. This can allow you to stop conflicting processes only during the time that the Agent is backing up files.

If you want to automatically stop a specific process before starting the backup job, you can specify the batch file to stop the service. In a similar way, if you want to automatically start a specific process after completing the backup job, you can specify the batch file to start the service.  


It should be noted that if the pre-backup batch commands fail, this 
may cause the backup to not run.

Barracuda Backup Agent Running on a Microsoft Windows System

To do this, you need to edit bbconfig.ini file on the server at C:\Program Files\Barracuda\Barracuda Backup Agent\config\ 

In the [configuration] section, add two lines like:

# the batch file to stop the process
preExecuteScript=c:\stop.bat  

# the batch file to start the process
postExecuteScript=c:\start.bat   


Barracuda Linux Backup Agent Running on a Linux/Unix-Based System

Please visit the TechLib article for this feature, which can be found here.