Skip to content

Commit

Permalink
Use explicitly given storage for restore
Browse files Browse the repository at this point in the history
When restoring and selecting explicitly a certain storage,
still the bootstrap was filled with the storage  the volume
was written with instead of what was just manually set.

This is now fixed and the explicitly selected storage is written to
the bootstrap file.
  • Loading branch information
pstorz committed Dec 17, 2015
1 parent 43ff659 commit fa9f2fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dird/ua_restore.c
Expand Up @@ -1604,6 +1604,7 @@ void find_storage_resource(UAContext *ua, RESTORE_CTX &rx, char *Storage, char *
ua->info_msg(_("Warning default storage overridden by \"%s\" on command line.\n"),
store->name());
rx.store = store;
bstrncpy(Storage, store->name(), MAX_NAME_LENGTH);
Dmsg1(200, "Set store=%s\n", rx.store->name());
}
return;
Expand Down

0 comments on commit fa9f2fd

Please sign in to comment.