Forum Discussion

GDYR_MPD's avatar
GDYR_MPD
Level 4
10 years ago
Solved

MSSQL bpbackex not running successfully

Master and client are at 7.7.2

I have created a script for running transaction logs from the client name tranlogs.bch.

tranlogs.bch

OPERATION BACKUP
DATABASE $ALL
EXCLUDE "master"
EXCLUDE "model"
EXCLUDE "msdb"
SQLHOST "serverA"
NBSERVER "masterServer"
MAXTRANSFERSIZE 6
BLOCKSIZE 7
OBJECTTYPE TRXLOG
TRXOPTION TAILLOG
PARTIAL TRUE
NUMBUFS 2
STRIPES 2
POLICY MSSQL_Transaction_Logs
ENDOPER TRUE

 

I have run as administrator C:\Program Files\Veritas\Netbackup\bin\bpbackex.exe -f tranlogs.bch and <directory>/tranlogs.bch and get a response of 0 operations succeeded, 0 operations failed.

Two policies exist on the Master server

  1. MSSQL_Transaction_Logs with Policy type MS-Windows
  2. MSSQL_Intelligent_ServerA with Policy type MS-SQL-Server

I am starting from the client incase the standard Intelligent policy is not run frequent enough.  Where am I going wrong attempting to start from the client?

  • Hello,

    it is definitely permission issue, however : remember that SQL Intelligent policies don't allow "Application Backup" schedule types, so you cannot launch SQL backup from the client if you have intelligent policies only. You must have at least one script-based "legacy" MS-SQL-Server policy for this clent  if you want achieve this.

    Not sure what you mean with "incase the standard Intelligent policy is not run frequent enough". In intelligent policies, you can create Transaction Log Backup schedule type with the frequency up to units of minutes. So create this and let it work according to required frequency, or run it manually.

    Also no need to have two policies. Add schedule for Trx Log backups to MSSQL_Intelligent_ServerA  policy.

    regards

    Michal

     

     

  • Hello,

     

    two notes:

    - when your SQL client is defined between Servers on the Master (Host Properties\Master Server\Servers\Additional Servers), you can perform also admin actions like "remote" Manual Backup with bpbackup -i -p -s, directly from the client (as well as all admin actions, so consider if it is suitable from security perspective for you)

    - it is not a good design when you must be constantly afraid of filled disk. Consider larger disk for transaction logs, or change of backup policy (switch to Simple Recovery Model and engage frequent differential backups to maintain required RPO, if point-in-time recovery is not a must. )

    Regards

    Michal

  • Main problem is

    OBJECTTYPE TRXLOG
    TRXOPTION TAILLOG

    For backups, these cannot be in the same script.

     

    I was able to create a powershell script that runs every minute.  If one of the trans logs is approaching 90% full a script is generated and then called with bpbackex.

     

    Thank you everyone for the guidance to get to the solution.

14 Replies