Skip to content

Commit

Permalink
Add skeleton for backup module
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Oct 28, 2023
1 parent 2fba59e commit cd2b8ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pydatalab/backup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from pathlib import Path


def make_snapshot(output_path: Path):
"""Make a snapshot of the entire datalab deployment that
can be restored from with sufficient granularity, e.g., including
config files.
"""
pass
2 changes: 1 addition & 1 deletion pydatalab/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def generate_random_startingmaterial_id():
def create_backup(_, config: BackupConfig):
from fabric import Connection, Transfer

from pydatalab.utils import make_snapshot
from pydatalab.backup import make_snapshot

print(f"Initialising backup procedure for {config.label=}")
connection = Connection(config.hostname)
Expand Down

0 comments on commit cd2b8ed

Please sign in to comment.