Ask the Community
Groups
Pre-Backup and Post-Backup Command Timeouts for Linux Clients - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>Steps to change the pre-backup and post-backup command timeouts for Linux clients.</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p></p> <h3 data-id="description">Description</h3> <p>Long running pre-backup and post-backup commands can cause backups to timeout and fail.</p> <h3 data-id="cause">Cause</h3> <p>If a pre-backup or post-backup command exceeds its WaitTime value, the system assumes the command will not finish. Without being certain the pre-backup and post-backup commands have finished, the system will not finalize a backup.</p> <p>This is to ensure that stalled processes cannot hang the system indefinitely.</p> <h3 data-id="resolution">Resolution</h3> <p>On the Linux client, adjust the timeout values in /usr/bp/bpinit/master.ini in the [Configuration Options] section. The values for the <code class="code codeInline" spellcheck="false" tabindex="0">BeforeCmdWaitTime</code> and <code class="code codeInline" spellcheck="false" tabindex="0">AfterCmdWaitTime</code> options are given in seconds.</p> <p>It is helpful to know how long the desired pre-backup and post-backup commands should take to complete so reasonable values may be provided which will still allow the system to cancel overly long-running processes.</p> <h4 data-id="beforecmdwaittime">BeforeCmdWaitTime</h4> <pre class="code codeBlock" spellcheck="false" tabindex="0"> /usr/bp/bin/bputil -p "Configuration Options" BeforeCmdWaitTime 3600 /usr/bp/bpinit/master.ini</pre> <p>This will allow pre-backup commands to run for 60 minutes before timeout occurs.</p> <h4 data-id="aftercmdwaittime">AfterCmdWaitTime</h4> <pre class="code codeBlock" spellcheck="false" tabindex="0"> /usr/bp/bin/bputil -p "Configuration Options" AfterCmdWaitTime 3600 /usr/bp/bpinit/master.ini</pre> <p>This will allow post-backup commands to run for 60 minutes before timeout occurs.</p> </article> </main>