From 31e059c3ca9e05eb72e9e20afba6959e62a465a8 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sun, 26 Dec 2021 13:20:28 +0500 Subject: [PATCH] bug fix: delete database during inc backups --- IncBackups/IncBackupsControl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IncBackups/IncBackupsControl.py b/IncBackups/IncBackupsControl.py index e3bbe56eb..815c02f73 100644 --- a/IncBackups/IncBackupsControl.py +++ b/IncBackups/IncBackupsControl.py @@ -677,8 +677,9 @@ class IncJobs(multi.Thread): return 0 try: - os.remove('/usr/local/CyberCP/tmp/%s.sql' % (items.dbName)) - os.remove(dbPathNew) + dbPath = '/usr/local/CyberCP/tmp/%s.sql' % (items.dbName) + command = 'rm -f %s' % (dbPath) + ProcessUtilities.executioner(command, self.externalApp) except BaseException as msg: logging.statusWriter(self.statusPath, 'Failed to delete database: %s. [IncJobs.backupDatabases.456]' % str(msg), 1)