diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2018-03-22 10:32:48 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2018-03-22 10:32:48 +0300 |
commit | 9e48de8e01f07273550ff9245d825d79cdb6d815 (patch) | |
tree | 0c8594884f6d54927c0243c00a27aeed04da12b0 /Duplicati/CommandLine/Commands.cs | |
parent | e9d477889f5d615b1ed7ccdd5f72f7daf991c8b8 (diff) | |
parent | e544b871dc04d5ecc3bcf41a4504cbb6f6768172 (diff) |
Merge branch 'master' of github.com:duplicati/duplicati
Diffstat (limited to 'Duplicati/CommandLine/Commands.cs')
-rw-r--r-- | Duplicati/CommandLine/Commands.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Duplicati/CommandLine/Commands.cs b/Duplicati/CommandLine/Commands.cs index a4bb1fe08..fe0d473c0 100644 --- a/Duplicati/CommandLine/Commands.cs +++ b/Duplicati/CommandLine/Commands.cs @@ -545,6 +545,11 @@ namespace Duplicati.CommandLine {
using (var periodicOutput = new PeriodicOutput(output, TimeSpan.FromSeconds(5)))
{
+ if ((new Duplicati.Library.Main.Options(options)).DisableOnBattery && (Duplicati.Library.Utility.Power.PowerSupply.GetSource() == Duplicati.Library.Utility.Power.PowerSupply.Source.Battery))
+ {
+ output.MessageEvent("The \"disable-on-battery\" option only affects scheduled backups and is ignored by backups run manually or from the command line.");
+ }
+
output.MessageEvent(string.Format("Backup started at {0}", DateTime.Now));
output.PhaseChanged += (phase, previousPhase) =>
|