mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
possible bug fix on ubuntu 22 upgrade
This commit is contained in:
@@ -244,7 +244,6 @@ class CPBackupsV2:
|
|||||||
self.website.BackupLock = 0
|
self.website.BackupLock = 0
|
||||||
self.website.save()
|
self.website.save()
|
||||||
|
|
||||||
|
|
||||||
def BackupDataBases(self):
|
def BackupDataBases(self):
|
||||||
|
|
||||||
### This function will backup databases of the website, also need to take care of database that we need to exclude
|
### 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}'
|
command = f'chown vmail:vmail {destination}'
|
||||||
ProcessUtilities.executioner(command)
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
command = f'rsync -av {exclude} {source}/ {destination}/'
|
command = f'rsync -av {source}/ {destination}/'
|
||||||
ProcessUtilities.executioner(command, 'vmail')
|
ProcessUtilities.executioner(command, 'vmail')
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ python-dateutil==2.8.1
|
|||||||
pytz==2020.4
|
pytz==2020.4
|
||||||
pyudev==0.22.0
|
pyudev==0.22.0
|
||||||
pyxattr==0.7.1
|
pyxattr==0.7.1
|
||||||
PyYAML==5.4.1
|
|
||||||
requests==2.26.0
|
requests==2.26.0
|
||||||
requests-file==1.5.1
|
requests-file==1.5.1
|
||||||
requests-oauthlib==1.3.0
|
requests-oauthlib==1.3.0
|
||||||
|
|||||||
@@ -452,7 +452,8 @@ def refreshLicense(request):
|
|||||||
|
|
||||||
from plogical.Backupsv2 import CPBackupsV2
|
from plogical.Backupsv2 import CPBackupsV2
|
||||||
cpbuv2 = 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()
|
cpbuv2.InitiateBackup()
|
||||||
|
|
||||||
final_dic = {'status': 1}
|
final_dic = {'status': 1}
|
||||||
|
|||||||
Reference in New Issue
Block a user