diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2019-05-07 06:13:03 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2019-05-07 06:13:03 +0300 |
commit | 8f19322657524d84309575478f1cb0c5574894e4 (patch) | |
tree | b6433db6627e5ee06afca9fc7f812f010b04107a /Duplicati/GUI | |
parent | bc1ac322f8cfb664567ed180c51bc067cddf4b58 (diff) |
Revert "Remove unused RunBackup method."
This reverts commit 3dd4132af1ed863a1529a4762a1f36925f02f509.
Diffstat (limited to 'Duplicati/GUI')
-rw-r--r-- | Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs index 2ebee62d4..016918ddb 100644 --- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs +++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs @@ -491,6 +491,14 @@ namespace Duplicati.GUI.TrayIcon ExecuteAndNotify("POST", "/serverstate/resume", req);
}
+ public void RunBackup(long id, bool forcefull = false)
+ {
+ var req = new Dictionary<string, string>();
+ if (forcefull)
+ req.Add("full", "true");
+ ExecuteAndNotify("POST", string.Format("/backup/{0}/start", Library.Utility.Uri.UrlPathEncode(id.ToString())), req);
+ }
+
public void DismissNotification(long id)
{
var req = new Dictionary<string, string>();
|