Update issue #929

Status: Fixed
This commit is contained in:
Kenneth Skovhede
2014-01-19 23:26:59 +01:00
parent 02c2a03365
commit 6caf04ea0b
@@ -158,6 +158,11 @@ namespace Duplicati.Library.Main.Operation
new RecreateDatabaseHandler(m_backendurl, m_options, (RecreateDatabaseResults)m_result.RecreateDatabaseResults)
.DoRun(database, filter, filelistfilter, /*localpatcher*/null);
//If we have --version set, we need to adjust, as the db has only the required versions
//TODO: Bit of a hack to set options that way
if (m_options.Version != null && m_options.Version.Length > 0)
m_options.RawOptions["version"] = string.Join(",", Enumerable.Range(0, m_options.Version.Length).Select(x => x.ToString()));
DoRun(database, filter, m_result);
}
}
@@ -235,6 +240,7 @@ namespace Duplicati.Library.Main.Operation
using(var database = new LocalRestoreDatabase(dbparent, m_options.Blocksize))
using(var backend = new BackendManager(m_backendurl, m_options, result.BackendWriter, database))
{
database.SetResult(m_result);
Utility.VerifyParameters(database, m_options);
var blockhasher = System.Security.Cryptography.HashAlgorithm.Create(m_options.BlockHashAlgorithm);