mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 23:36:11 +01:00
bug fix" backup engine
This commit is contained in:
@@ -469,10 +469,12 @@ class backupUtilities:
|
||||
|
||||
logging.CyberCPLogFileWriter.statusWriter(status, "Backing up email accounts..\n")
|
||||
|
||||
try:
|
||||
|
||||
emailPath = '/home/vmail/%s' % (domainName)
|
||||
|
||||
if os.path.exists(emailPath):
|
||||
copy_tree(emailPath, '%s/vmail' % (tempStoragePath))
|
||||
copy_tree(emailPath, '%s/vmail' % (tempStoragePath), preserve_symlinks=True)
|
||||
|
||||
## shutil.make_archive. Creating final package.
|
||||
|
||||
@@ -505,6 +507,8 @@ class backupUtilities:
|
||||
|
||||
logging.CyberCPLogFileWriter.statusWriter(status, "Completed\n")
|
||||
os.remove(pidFile)
|
||||
except BaseException as msg:
|
||||
logging.CyberCPLogFileWriter.statusWriter(status, '%s. [511:BackupRoot][[5009]]\n' % str(msg))
|
||||
|
||||
@staticmethod
|
||||
def initiateBackup(tempStoragePath, backupName, backupPath):
|
||||
|
||||
Reference in New Issue
Block a user