mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-09 23:06:16 +01:00
bug fix: config issue
This commit is contained in:
@@ -110,7 +110,13 @@ pass = {ObsecurePassword}
|
||||
#command = f'chown cyberpanel:cyberpanel {self.FinalPathRuctic}'
|
||||
#ProcessUtilities.executioner(command)
|
||||
|
||||
command = f'chown {self.website.externalApp}:{self.website.externalApp} {self.FinalPathRuctic}/config.json'
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
command = f'rustic -r {self.repo} backup {self.FinalPathRuctic}/config.json --password "" --tag {parent}'
|
||||
ProcessUtilities.executioner(command, self.website.externalApp)
|
||||
|
||||
command = f'chown cyberpanel:cyberpanel {self.FinalPathRuctic}/config.json'
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
def InitiateBackup(self):
|
||||
|
||||
@@ -455,9 +455,11 @@ def refreshLicense(request):
|
||||
{'domain': 'cyberpanel.net', 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1,
|
||||
'BackupEmails': 1, 'BackendName': 'testremote'})
|
||||
RcloneData = {"name":'testremote', "host":"staging.cyberpanel.net", "user": "abcds2751", "port": "22", "password":"hosting",}
|
||||
cpbuv2.SetupRcloneBackend(CPBackupsV2.SFTP, RcloneData)
|
||||
#cpbuv2.SetupRcloneBackend(CPBackupsV2.SFTP, RcloneData)
|
||||
cpbuv2.InitiateBackup()
|
||||
|
||||
|
||||
|
||||
#cpbuv2.InstallRustic()
|
||||
|
||||
final_dic = {'status': 1}
|
||||
|
||||
Reference in New Issue
Block a user