BuildMaster SDK Reference
Version:

BackupDatabaseAsync(string databaseName, string destinationPath, System.Threading.CancellationToken cancellationToken) Method

When implemented by a derived class, backs up the specified database to the specified path.

Syntax

public abstract System.Threading.Tasks.Task BackupDatabaseAsync(string databaseName, string destinationPath, System.Threading.CancellationToken cancellationToken)

Parameters

databaseName
Type: string

The name of the database to be backed up.

destinationPath
Type: string

The path that the database will be backed up to. This may either be a file or a directory depending on the database provider.

cancellationToken
Type: System.Threading.CancellationToken

Cancellation token.