|
|
|
@ -21,13 +21,13 @@ TMP_BACKUP_FOLDER = "/mnt/Datenspeicher/snap-backup-dataset/temporary-backups"
@@ -21,13 +21,13 @@ TMP_BACKUP_FOLDER = "/mnt/Datenspeicher/snap-backup-dataset/temporary-backups"
|
|
|
|
|
def get_local_backup_members(): |
|
|
|
|
tmp_folder = pathlib.Path(TMP_BACKUP_FOLDER) |
|
|
|
|
backups = (i for i in tmp_folder.iterdir() if i.suffix==".gz") |
|
|
|
|
return (get_member_name(b) for b in backups) |
|
|
|
|
return (get_member_name(b.name) for b in backups) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_remote_checksums(): |
|
|
|
|
result = {} |
|
|
|
|
for member in get_local_backup_members(): |
|
|
|
|
remote_path = f"{REMOTE_PATH}/{member}" |
|
|
|
|
remote_path = f"{REMOTE_PATH}/{member}/\*" |
|
|
|
|
cmd_result = remote_call(["sha256sum", remote_path]) |
|
|
|
|
print(cmd_result) |
|
|
|
|
|
|
|
|
|