1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-25 15:22:42 +00:00

Fixed: No longer tries to backup database when using Postgres

This commit is contained in:
Robin Dadswell 2022-12-27 21:18:05 +00:00 committed by Qstick
parent 2b510c61e5
commit 28a3e0ba1a

View file

@ -184,9 +184,12 @@ private void Cleanup()
private void BackupDatabase()
{
_logger.ProgressDebug("Backing up database");
if (_maindDb.DatabaseType == DatabaseType.SQLite)
{
_logger.ProgressDebug("Backing up database");
_makeDatabaseBackup.BackupDatabase(_maindDb, _backupTempFolder);
_makeDatabaseBackup.BackupDatabase(_maindDb, _backupTempFolder);
}
}
private void BackupConfigFile()