aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/ShareService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-09-29 08:27:31 -0500
committerJP Dillingham <jp@dillingham.me>2022-09-29 08:27:31 -0500
commit0727a46658b6de94edcedbb1e496b08d2737ca31 (patch)
tree3b49e75f05024428ce0368595c7bbb92c8bc741f /src/slskd/Shares/ShareService.cs
parentbf3e8790af148e5c9cb48ebc16308ce926dba8f5 (diff)
downloadslskd-0727a46658b6de94edcedbb1e496b08d2737ca31.tar.gz
move backup and restore
Diffstat (limited to 'src/slskd/Shares/ShareService.cs')
-rw-r--r--src/slskd/Shares/ShareService.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/slskd/Shares/ShareService.cs b/src/slskd/Shares/ShareService.cs
index d5fd417e..e11e59e9 100644
--- a/src/slskd/Shares/ShareService.cs
+++ b/src/slskd/Shares/ShareService.cs
@@ -265,9 +265,7 @@ namespace slskd.Shares
Log.Debug("Share cache backup located. Attempting to restore...");
- Sqlite.Restore(
- sourceConnectionString: Program.ConnectionStrings.SharesBackup,
- destinationConnectionString: Program.ConnectionStrings.Shares);
+ Repository.Restore(sourceConnectionString: Program.ConnectionStrings.SharesBackup);
Log.Debug("Share cache successfully restored from backup");
}