Skip to content

Commit

Permalink
mssqlvdi: Fix backup/restore of incremental backups
Browse files Browse the repository at this point in the history
Add missing support to incremental backups and restores for MSSQL
backups analog to the support we added recently for full backups.

Fixes #588: Incremental MSSQL backup fails when database name contains
            spaces
  • Loading branch information
Marco van Wieringen committed Dec 24, 2015
1 parent e0d17d0 commit 55bf15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/win32/plugins/filed/mssqlvdi-fd.c
Expand Up @@ -1168,7 +1168,7 @@ static inline void perform_ado_backup(bpContext *ctx)
switch (p_ctx->backup_level) {
case L_INCREMENTAL:
Mmsg(ado_query,
"BACKUP LOG %s TO VIRTUAL_DEVICE='%s' WITH BLOCKSIZE=%d, BUFFERCOUNT=%d, MAXTRANSFERSIZE=%d",
"BACKUP LOG [%s] TO VIRTUAL_DEVICE='%s' WITH BLOCKSIZE=%d, BUFFERCOUNT=%d, MAXTRANSFERSIZE=%d",
p_ctx->database,
vdsname,
DEFAULT_BLOCKSIZE,
Expand Down Expand Up @@ -1227,7 +1227,7 @@ static inline void perform_ado_restore(bpContext *ctx)
switch (p_ctx->backup_level) {
case L_INCREMENTAL:
Mmsg(ado_query,
"RESTORE LOG %s FROM VIRTUAL_DEVICE='%s' WITH BLOCKSIZE=%d, BUFFERCOUNT=%d, MAXTRANSFERSIZE=%d, %s",
"RESTORE LOG [%s] FROM VIRTUAL_DEVICE='%s' WITH BLOCKSIZE=%d, BUFFERCOUNT=%d, MAXTRANSFERSIZE=%d, %s",
p_ctx->database,
vdsname,
DEFAULT_BLOCKSIZE,
Expand Down

0 comments on commit 55bf15f

Please sign in to comment.