Skip to content

Commit

Permalink
Enable NDMP level support for SM_TAPE backups.
Browse files Browse the repository at this point in the history
Fixes #410: START BACKUP 'LEVEL' not provided, defaulting to LEVEL 0'
            after launching differential backup
  • Loading branch information
Marco van Wieringen committed Mar 14, 2015
1 parent c4baf25 commit db182c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dird/ndmp_dma.c
Expand Up @@ -182,7 +182,7 @@ struct ndmp_backup_format_option {
static ndmp_backup_format_option ndmp_backup_format_options[] = {
{ (char *)"dump", true, true, true, true },
{ (char *)"tar", true, false, true, true },
{ (char *)"smtape", false, false, false, true },
{ (char *)"smtape", false, true, false, true },
{ (char *)"zfs", false, true, false, true },
{ NULL, false, false, false }
};
Expand Down Expand Up @@ -1759,7 +1759,7 @@ static inline bool extract_post_backup_stats(JCR *jcr,
}

/*
* If this was a NDMP backup with backup type dump save the last used dump level.
* If we are doing a backup type that uses dumplevels save the last used dump level.
*/
if (nbf_options && nbf_options->uses_level) {
db_update_ndmp_level_mapping(jcr, jcr->db, &jcr->jr,
Expand Down
2 changes: 1 addition & 1 deletion src/stored/ndmp_tape.c
Expand Up @@ -101,7 +101,7 @@ struct ndmp_backup_format_option {
static ndmp_backup_format_option ndmp_backup_format_options[] = {
{ (char *)"dump", true },
{ (char *)"tar", false },
{ (char *)"smtape", false },
{ (char *)"smtape", true },
{ (char *)"zfs", true },
{ NULL, false }
};
Expand Down

0 comments on commit db182c6

Please sign in to comment.