From fa9f2fdc4fe7bddf0f4ee77047c50e8134712ffe Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Thu, 17 Dec 2015 11:30:49 +0100 Subject: [PATCH] Use explicitly given storage for restore 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. --- src/dird/ua_restore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dird/ua_restore.c b/src/dird/ua_restore.c index 7f7426d04fe..a579c0c195c 100644 --- a/src/dird/ua_restore.c +++ b/src/dird/ua_restore.c @@ -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;