bug fix: add incremental destination

This commit is contained in:
Usman Nasir
2020-04-29 04:46:01 +05:00
parent 6a9c774fcb
commit 3f1468c673
6 changed files with 13 additions and 4 deletions

View File

@@ -196,6 +196,9 @@ class backupSchedule:
command = "sudo scp -o StrictHostKeyChecking=no -P "+port+" -i /root/.ssh/cyberpanel " + backupPath + " " + user + "@" + IPAddress+":~/backup/" + ipAddressLocal + "/" + time.strftime("%a-%b") + "/"
subprocess.call(shlex.split(command), stdout=writeToFile)
if os.path.exists(ProcessUtilities.debugPath):
logging.CyberCPLogFileWriter.writeToFile(command)
## Remove backups already sent to remote destinations
os.remove(backupPath)