chg: inlined Manager._backup_dataset
This commit is contained in:
@@ -47,14 +47,8 @@ class Manager:
|
||||
finally:
|
||||
self._external_pool.export()
|
||||
|
||||
def send(self, local_pool: Pool, external_pool: ExternalPool):
|
||||
pass
|
||||
|
||||
def _backup_all_datasets(self):
|
||||
for local_dataset in self._local_pool.datasets_to_backup:
|
||||
self._backup_dataset(local_dataset)
|
||||
|
||||
def _backup_dataset(self, local_dataset: Dataset):
|
||||
remote_dataset = self._external_pool.search_dataset_like(local_dataset)
|
||||
last_common_snapshot = get_last_common_snapshot(remote_dataset, local_dataset)
|
||||
last_local_snapshot: Snapshot = local_dataset.last_snapshot
|
||||
|
||||
Reference in New Issue
Block a user