From cf2cfa4853944ce0af6b6c22a089b937dd59ccaf Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 14 Jun 2020 22:18:25 +0800 Subject: feat(back): Add backup service and run it when start. --- Timeline/Services/PathProvider.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Timeline/Services/PathProvider.cs') diff --git a/Timeline/Services/PathProvider.cs b/Timeline/Services/PathProvider.cs index ac7cd800..1baba5c0 100644 --- a/Timeline/Services/PathProvider.cs +++ b/Timeline/Services/PathProvider.cs @@ -8,6 +8,7 @@ namespace Timeline.Services { public string GetWorkingDirectory(); public string GetDatabaseFilePath(); + public string GetDatabaseBackupDirectory(); } public class PathProvider : IPathProvider @@ -32,5 +33,10 @@ namespace Timeline.Services { return Path.Combine(_workingDirectory, ApplicationConfiguration.DatabaseFileName); } + + public string GetDatabaseBackupDirectory() + { + return Path.Combine(_workingDirectory, ApplicationConfiguration.DatabaseBackupDirectoryName); + } } } -- cgit v1.2.3