Carbonite Support > Microsoft SQL Server Backup

Microsoft SQL Server Backup

  • This article is for Windows only

With Carbonite Safe Server Backup (CSSB), users can perform Virtual Device Interface-based backups of any specific database on any specific SQL server instance. Full, Differential, and Incremental (Log) backups are supported.

How to Perform a Microsoft SQL Server Backup

To configure MS SQL server backups, create a new backup set and choose SQL Server from the list of backup set types. CSSB will discover all SQL Server components and display them in the What would you like to back up? section in the following format:

  • MSSQL-2005\Servername\InstanceName\DatabaseName
  • MSSQL-2000\Servername\InstanceName\DatabaseName

From this list, you can select the databases you wish to back up, and save the backup set.

Backup Requirements

The installed instance(s) of Microsoft SQL Server must be a supported. Supported versions include:

  • Microsoft SQL Server 2000
  • Microsoft SQL Server 2005
  • Microsoft SQL Server 2008
  • Microsoft SQL Server 2012
  • Microsoft SQL Server 2014
  • Microsoft SQL Server 2016

CSSB uses the Windows amandabackup / CarboniteUser user to interact with Microsoft SQL Server databases. As such, amandabackup / CarboniteUser must be granted access as an SQL Server user with sufficient privileges. CSSB will attempt to grant access automatically. However, if it is unable to, CSSB will produce the error “Failed to perform database backup. Please verify if %s user has permissions to access the MS-SQL database” when a backup attempts to run and access must be granted manually through Microsoft SQL Management Studio.

%s” in the error represents the user CSSB is using to access the database.

If there are multiple instances of Microsoft SQL Server on the computer, access must be granted to all instances selected for backup. please check the ZIB_Backup_[server]+[backup]_log.txt file (where the computer’s name will replace “[server]” and the name of the backup set will replace “[backup]”) located in the Debug folder in your CSSB Installation Directory. By default, the Debug folder will be in the following location:

For new users

  • C:\Program Files\Carbonite\Carbonite Safe Server Backup\ (for 32-bit operating systems)
  • C:\Program Files\Carbonite\Carbonite Safe Server Backup(x64)\ (for 64-bit operating systems)

For existing users

  • C:\Program Files\Carbonite\Carbonite Server Backup\ (for 32-bit operating systems)
  • C:\Program Files\Carbonite\Carbonite Server Backup(x64)\ (for 64-bit operating systems)

Within the log file, look for the phrase “Permission denied in database”, which will be accompanied by the name of the database CSSB did not have access to. To resolve, ensure CSSB has access to any and all selected databases by Allowing Access to Microsoft SQL Server.

The Volume Shadow Copy Service must be enabled and its startup type must be set to either automatic or manual. Please refer to the Other Requirements section of the System Requirements Knowledge Base article for how to do this.

  • The SQL VSS Writer service must be running at the time of backup or recovery. CSSB will automatically start the SQL Writer service.

Additionally, please ensure that you have enabled TCP/IP on your Microsoft SQL Server. You can do this using the SQL Server Configuration Manager tool.

Recovery Models

Carbonite Safe Server Backup supports the following recovery models for SQL Server databases:

The sections below are collapsed. Please click the section title to open / close a particular section.

Simple Recovery Model

For a Simple Recovery Model:

  • The full backup will contain .MDF, .LDF and .NDF (in case of filegroups) files in the backup image.
  • The differential backup will contain .LDF files.
  • Incremental (Log) backups will be skipped for databases using the Simple Recovery Model.

Full Recovery Model

For a Full Recovery Model:

  • The full backup will contain .MDF, .LDF and .NDF (in case of filegroups) files in the backup image.
  • The differential backup will contain the changed blocks of the .MDF database file.
  • Incremental (Log) backups will contain .TRN files (transaction logs flushed to the disk). These are transactions that have changed since the last backup of any level, be it Full, Differential, or Incremental.

Bulk Recovery Model

For a Bulk Recovery Model:

  • The full backup will contain .MDF, .LDF and .NDF (in case of filegroups) files in the backup image.
  • The differential backup will contain the changed blocks of the .MDF database file.
  • Incremental (Log) backups will contain .TRN files (transaction logs flushed to the disk). These are transactions that have changed since the last backup of any level, be it Full, Differential, or Incremental.

Additional Considerations

Important Information

  • Transaction logs will be truncated during any full or incremental backup. Logs will not be truncated during differential backups.
  • The master database is only backed up as part of the full backups. During a restore of the master database, the SQL server is stopped and will be restarted after the restoration has completed.
  • Microsoft recommends that MS SQL and System State backups not be run simultaneously.
  • Any read-only databases are only backed up as part of the full backups.
  • Carbonite Safe Server Backup will only back up MS SQL databases that are in the Mounted state.
  • A backup set created to backup MS SQL only backs up the MS SQL databases. It does not back up other MS SQL files such as program installation files, etc. To protect an MS SQL server from a disaster, make sure that you create a separate File System backup set to back up the other crucial MS SQL files.
  • The SQL server backup set validation checks for the amandabackup / CarboniteUser SQL user, but it does not check if the privileges are sufficient for backup and recovery.

Requirements for VSS Snapshots on a SMB3 Network Share

CSSB is able to take snapshots of files located on network shares configured with the SMB3 protocol. This allows backup of open, in-use, and locked files that exist on these shares.

The following requirements must be met.

  • The following backup types allow VSS snapshots of data on a SMB3 network share:
    • File System
    • Microsoft SQL Server
    • Hyper-V (Full backups only)
  • The application server on which Carbonite Safe Server Backup is installed and the file server that houses the data must both be running Windows Server 2012 or higher.
  • The application server and file server must be joined to the same Active Directory domain.
  • The File Server VSS Agent Service role service must be installed on the file server.
  • The amandabackup / CarboniteUser user (or the user specified in Tools; Network Location) must be a member of the Backup Operators and Administrators groups on both the application server and file server.
    • The amandabackup / CarboniteUser user is granted these roles by default during CSSB installation. If a different user account is specified in Tools; Network Location, please ensure this user has the correct roles.
      • If amandabackup / CarboniteUser (or the user specified in Tools; Network Location) has been created as a domain user, simply ensure that amandabackup / CarboniteUser is a member of both groups on both machines.
        • In some environments, you may have to add amandabackup / CarboniteUser (or the user specified in Tools; Network Location) to the local Backup Operators and Administrators groups instead of using the domain groups.
      • If amandabackup / CarboniteUser (or the user specified in Tools; Network Location) has been created as a local user on the CSSB system and does not exist on both machines, you must manually create an identical user account on any system where it does not exist.
        • Use the same password for all systems.
        • Ensure that the user account is a member of the Backup Operators and Administrators groups on all systems.
  • The amandabackup / CarboniteUser user (or the user specified in Tools; Network Location) must have read-only or greater access to the file server.
    • It is recommended to give Full Control to this user account.

A snapshot cannot be created if these requirements are not met. If you are attempting a Hyper-V or Microsoft SQL Server backup, the backup will fail immediately without a snapshot.

If you are attempting a File System backup, CSSB will attempt to copy the files even if a snapshot cannot be created. Open, locked, and in-use files will fail to back up, but the backup as a whole will progress unless too many files cannot be backed up. Please refer to this Knowledge Base article.

Carbonite Safe Server Backup can perform differential backups of SQL Server 2014 databases with memory-optimized tables. However, preview builds of SQL 2014 are not optimized for differential backups.

In Community Technology Preview 2 (CTP2) or earlier, the differential backup will include all data and delta files as if it were a full backup. There will be no reduction in size; a differential is essentially the same thing as a full backup.

SQL 2014 RTM (release-to-manufacturing) is optimized so that differential backups are smaller than full backups in the expected manner.

Please refer to this page for more information: http://blogs.technet.com/b/dataplatforminsider/archive/2014/02/07/differential-database-backup-with-memory-optimized-tables.aspx.

If you set up both Microsoft SQL backups and SharePoint backups, be sure to remove all SharePoint databases from your Microsoft SQL Server backup set. Failures may occur if the same database is being backed up by two different methods.
Feedback