Removed pulling status

This commit is contained in:
2023-05-03 11:40:16 +02:00
parent 39c7a735a6
commit 26b0061faf
2 changed files with 1 additions and 14 deletions

View File

@@ -35,7 +35,6 @@ for host_backup_directory_name in os.listdir(args.backups_folder_path):
print_used_disc_space()
for version in versions:
version_path=os.path.join(versions_directory, version)
version_status_pulling_path=os.path.join(versions_directory, version, ".pulling")
print("Checking directory %s ..." % (version_path))
if version == versions[-1]:
print("Directory %s contains the last version of the backup. Skipped." % (version_path))
@@ -54,10 +53,5 @@ for host_backup_directory_name in os.listdir(args.backups_folder_path):
print("{:6.2f} %% of drive freed".format(difference_percent))
continue
if os.path.exists(version_status_pulling_path):
print("Deleting %s due to unfinished pull." % (version_path))
shutil.rmtree(version_path)
continue
print_used_disc_space()
print("Cleaning up finished.")