Skip to content
Permalink
Browse files
bug fix: inc backups: email bypass
  • Loading branch information
usmannasir committed Jan 9, 2020
1 parent 4f98526 commit 0047beb6f92f351ae423213418d8b736d3cf7842
Showing with 7 additions and 6 deletions.
  1. +7 −6 IncBackups/IncBackupsControl.py
@@ -631,12 +631,13 @@ def emailBackup(self):

backupPath = '/home/vmail/%s' % (self.website.domain)

if self.backupDestinations == 'local':
self.localFunction(backupPath, 'email')
elif self.backupDestinations[:4] == 'sftp':
self.sftpFunction(backupPath, 'email')
else:
self.awsFunction('backup', backupPath, '', 'email')
if os.path.exists(backupPath):
if self.backupDestinations == 'local':
self.localFunction(backupPath, 'email')
elif self.backupDestinations[:4] == 'sftp':
self.sftpFunction(backupPath, 'email')
else:
self.awsFunction('backup', backupPath, '', 'email')

logging.statusWriter(self.statusPath,
'Emails for %s backed to %s.' % (self.website.domain, self.backupDestinations), 1)

0 comments on commit 0047beb

Please sign in to comment.