"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Duplicati/Library/Main/Operation/TestHandler.cs" between
duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25.tar.gz and duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11.tar.gz

About: Duplicati is a backup client that securely stores encrypted, incremental, compressed backups on local devices, cloud storage services and remote file servers (for Windows, macOS and Linux). A remark: This officially "pre-release" seems to run stable.

TestHandler.cs  (duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25):TestHandler.cs  (duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11)
skipping to change at line 56 skipping to change at line 56
if (!System.IO.File.Exists(m_options.Dbpath)) if (!System.IO.File.Exists(m_options.Dbpath))
throw new UserInformationException(string.Format("Database file does not exist: {0}", m_options.Dbpath), "DatabaseDoesNotExist"); throw new UserInformationException(string.Format("Database file does not exist: {0}", m_options.Dbpath), "DatabaseDoesNotExist");
using(var db = new LocalTestDatabase(m_options.Dbpath)) using(var db = new LocalTestDatabase(m_options.Dbpath))
using(var backend = new BackendManager(m_backendurl, m_options, m_re sults.BackendWriter, db)) using(var backend = new BackendManager(m_backendurl, m_options, m_re sults.BackendWriter, db))
{ {
db.SetResult(m_results); db.SetResult(m_results);
Utility.UpdateOptionsFromDb(db, m_options); Utility.UpdateOptionsFromDb(db, m_options);
Utility.VerifyParameters(db, m_options); Utility.VerifyParameters(db, m_options);
db.VerifyConsistency(m_options.Blocksize, m_options.BlockhashSiz e, true, null); db.VerifyConsistency(m_options.Blocksize, m_options.BlockhashSiz e, true, null);
FilelistProcessor.VerifyRemoteList(backend, m_options, db, m_res
if (!m_options.NoBackendverification) ults.BackendWriter, true, null);
{
var backupDatabase = new LocalBackupDatabase(db, m_options);
var latestFilelist = backupDatabase.GetTemporaryFilelistVolu
meNames(latestOnly: true);
FilelistProcessor.VerifyRemoteList(backend, m_options, db, m
_results.BackendWriter, latestFilelist);
}
DoRun(samples, db, backend); DoRun(samples, db, backend);
db.WriteResults(); db.WriteResults();
} }
} }
public void DoRun(long samples, LocalTestDatabase db, BackendManager bac kend) public void DoRun(long samples, LocalTestDatabase db, BackendManager bac kend)
{ {
var files = db.SelectTestTargets(samples, m_options).ToList(); var files = db.SelectTestTargets(samples, m_options).ToList();
 End of changes. 1 change blocks. 
9 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)