Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2020-01-24 07:31:53 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2020-01-24 07:41:17 +0300
commitdce594386439bbde275273d150c3cdae1512dc76 (patch)
tree3e57280ec02e9a25ec15c64db244b3aa3b31ba66 /Duplicati/CommandLine
parent3c778025f4ccb5ad046a9ab19b45939d57c08ad8 (diff)
Create index in memory by default but allow option to use files.
Performance is greatly improved if we can create the index in memory. We preserve the ability to create the index using files for recovery in low resource environments.
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r--Duplicati/CommandLine/RecoveryTool/Program.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Duplicati/CommandLine/RecoveryTool/Program.cs b/Duplicati/CommandLine/RecoveryTool/Program.cs
index 90fdb93c5..f80ec2523 100644
--- a/Duplicati/CommandLine/RecoveryTool/Program.cs
+++ b/Duplicati/CommandLine/RecoveryTool/Program.cs
@@ -79,11 +79,19 @@ namespace Duplicati.CommandLine.RecoveryTool
var actions = new Dictionary<string, CommandRunner>(StringComparer.OrdinalIgnoreCase);
actions["download"] = Download.Run;
actions["recompress"] = Recompress.Run;
- actions["index"] = Index.Run;
actions["list"] = List.Run;
actions["restore"] = Restore.Run;
actions["help"] = Help.Run;
+ if (Library.Utility.Utility.ParseBoolOption(options, "build-index-with-files"))
+ {
+ actions["index"] = FileIndex.Run;
+ }
+ else
+ {
+ actions["index"] = Index.Run;
+ }
+
CommandRunner command;
actions.TryGetValue(args.FirstOrDefault() ?? "", out command);