Bug fix to Backup Engine

This commit is contained in:
usmannasir
2018-07-29 01:20:46 +05:00
parent c971e8412f
commit 4922284fe0
18 changed files with 53 additions and 10 deletions

View File

@@ -83,6 +83,11 @@ class backupSchedule:
writeToFile = open(backupLogPath, "a")
command = "sudo scp -o StrictHostKeyChecking=no -P "+port+" -i /root/.ssh/cyberpanel " + backupPath + " root@"+IPAddress+":/home/backup/" + ipAddressLocal + "/" + time.strftime("%a-%b") + "/"
subprocess.call(shlex.split(command), stdout=writeToFile)
## Remove backups already sent to remote destinations
os.remove(backupPath)
except BaseException, msg:
logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [startBackup]")