mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Removed pulling status
This commit is contained in:
@@ -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.")
|
Reference in New Issue
Block a user