|
|
|
@ -64,9 +64,10 @@ def list_remote_backups(members):
@@ -64,9 +64,10 @@ def list_remote_backups(members):
|
|
|
|
|
try: |
|
|
|
|
backups = clean_split(remote_call(["ls", remote_sub_dir])) |
|
|
|
|
result[member] = set(backups) |
|
|
|
|
except CalledProcessError: |
|
|
|
|
except subprocess.CalledProcessError: |
|
|
|
|
remote_call(["mkdir", remote_sub_dir]) |
|
|
|
|
result[member] = set() |
|
|
|
|
return result |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def backup_latest_snapshot(member, elab_snapshots, existing_backups): |
|
|
|
@ -125,4 +126,4 @@ def create_backups():
@@ -125,4 +126,4 @@ def create_backups():
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
|
es = elab_snapshots() |
|
|
|
|
print(list_remote_backups(es.keys()) |
|
|
|
|
print(list_remote_backups(es.keys())) |
|
|
|
|