This commit is contained in:
2025-01-11 00:10:55 +01:00
parent 54b26aeb75
commit f24eddd3f0

View File

@ -386,11 +386,7 @@ if _BACKUP:
#status, output = subprocess.getstatusoutput(cmnd) #status, output = subprocess.getstatusoutput(cmnd)
proc = subprocess.Popen(cmnd,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE,cwd = "/myapps/",shell=True) proc = subprocess.Popen(cmnd,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE,cwd = "/myapps/",shell=True)
time.sleep(10)
while True:
outs, errs = proc.communicate()
print(outs)
time.sleep(10)
cmnd = f"rm -rf {FULL_BACKUP_LATEST}" cmnd = f"rm -rf {FULL_BACKUP_LATEST}"
print(cmnd) print(cmnd)