From 76250685a7fbadf2c3ecd9312b7faed53f87796f Mon Sep 17 00:00:00 2001 From: Hassan Hashmi <75794688+habbi-hb@users.noreply.github.com> Date: Tue, 28 Jun 2022 13:52:29 +0500 Subject: [PATCH] restoreremotebackupdone1 --- plogical/applicationInstaller.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 5cd605bf9..87349b100 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -2770,12 +2770,8 @@ $parameters = array( with pysftp.Connection(HostName, username=Username, password=Password, cnopts=cnopts) as sftp: logging.statusWriter(self.tempStatusPath, 'Downloading Backups...,15') - # with sftp.cd(Path): - loaclpath = "/home/cyberpanel/%s.tar.gz" % BackUpFileName - # command = "sudo -u cyberpanel touch %s"%loaclpath - # result, stdout = ProcessUtilities.outputExecutioner(command, None, None, None, 1) - remotepath = "/home/a.com/%s.tar.gz" % BackUpFileName + remotepath = "%s/%s.tar.gz" % (Path, BackUpFileName) logging.writeToFile("Downloading start") sftp.get(str(remotepath), str(loaclpath))