From ae4a3a64dc61d9a7291ae2c658f522fef89d1873 Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Thu, 16 Mar 2023 10:20:25 +0500 Subject: [PATCH] remove undeeded code --- serverStatus/views.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/serverStatus/views.py b/serverStatus/views.py index 39b0f0783..29906e7e3 100755 --- a/serverStatus/views.py +++ b/serverStatus/views.py @@ -448,20 +448,6 @@ def refreshLicense(request): installUtilities.reStartLiteSpeed() - ## for testing - - from plogical.Backupsv2 import CPBackupsV2 - cpbuv2 = CPBackupsV2( - {'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.InitiateBackup() - - - - #cpbuv2.InstallRustic() - final_dic = {'status': 1} final_json = json.dumps(final_dic) return HttpResponse(final_json)