Skip to content

Commit a377be4

Browse files
committed
possible bug fix on ubuntu 22 upgrade
1 parent 8b6efb3 commit a377be4

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎plogical/Backupsv2.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ def InitiateBackup(self):
244244
self.website.BackupLock = 0
245245
self.website.save()
246246

247-
248247
def BackupDataBases(self):
249248

250249
### This function will backup databases of the website, also need to take care of database that we need to exclude
@@ -316,7 +315,7 @@ def BackupEmails(self):
316315
command = f'chown vmail:vmail {destination}'
317316
ProcessUtilities.executioner(command)
318317

319-
command = f'rsync -av {exclude} {source}/ {destination}/'
318+
command = f'rsync -av {source}/ {destination}/'
320319
ProcessUtilities.executioner(command, 'vmail')
321320

322321
return 1

‎requirments.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ python-dateutil==2.8.1
6666
pytz==2020.4
6767
pyudev==0.22.0
6868
pyxattr==0.7.1
69-
PyYAML==5.4.1
7069
requests==2.26.0
7170
requests-file==1.5.1
7271
requests-oauthlib==1.3.0

‎serverStatus/views.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ def refreshLicense(request):
452452

453453
from plogical.Backupsv2 import CPBackupsV2
454454
cpbuv2 = CPBackupsV2(
455-
{'domain': 'cyberpanel.net', 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1})
455+
{'domain': 'cyberpanel.net', 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1,
456+
'BackupEmails': 1})
456457
cpbuv2.InitiateBackup()
457458

458459
final_dic = {'status': 1}

0 commit comments

Comments
 (0)