diff --git a/omv_backup_v2.py b/omv_backup_v2.py index 5a1ec63..1f22106 100644 --- a/omv_backup_v2.py +++ b/omv_backup_v2.py @@ -386,11 +386,7 @@ if _BACKUP: #status, output = subprocess.getstatusoutput(cmnd) 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}" print(cmnd)