diff --git a/plogical/Backupsv2.py b/plogical/Backupsv2.py index 1327db6e3..775c31d66 100644 --- a/plogical/Backupsv2.py +++ b/plogical/Backupsv2.py @@ -244,7 +244,6 @@ class CPBackupsV2: self.website.BackupLock = 0 self.website.save() - def BackupDataBases(self): ### This function will backup databases of the website, also need to take care of database that we need to exclude @@ -316,7 +315,7 @@ class CPBackupsV2: command = f'chown vmail:vmail {destination}' ProcessUtilities.executioner(command) - command = f'rsync -av {exclude} {source}/ {destination}/' + command = f'rsync -av {source}/ {destination}/' ProcessUtilities.executioner(command, 'vmail') return 1 diff --git a/requirments.txt b/requirments.txt index 6be2adf65..9bf6d5d9e 100755 --- a/requirments.txt +++ b/requirments.txt @@ -66,7 +66,6 @@ python-dateutil==2.8.1 pytz==2020.4 pyudev==0.22.0 pyxattr==0.7.1 -PyYAML==5.4.1 requests==2.26.0 requests-file==1.5.1 requests-oauthlib==1.3.0 diff --git a/serverStatus/views.py b/serverStatus/views.py index 182659920..85ef9bad9 100755 --- a/serverStatus/views.py +++ b/serverStatus/views.py @@ -452,7 +452,8 @@ def refreshLicense(request): from plogical.Backupsv2 import CPBackupsV2 cpbuv2 = CPBackupsV2( - {'domain': 'cyberpanel.net', 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1}) + {'domain': 'cyberpanel.net', 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1, + 'BackupEmails': 1}) cpbuv2.InitiateBackup() final_dic = {'status': 1}