From 68e88efced88f05664ae9050f6888453cfe9cd30 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 22 Nov 2020 15:06:07 +0200 Subject: feat! use temporary files for SQLite databases The user should not have to specify filenames for the databases, since they don't actually care where they're stored. --- subplot/client.py | 5 ++--- subplot/client.yaml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'subplot') diff --git a/subplot/client.py b/subplot/client.py index 7556986..acdc48a 100644 --- a/subplot/client.py +++ b/subplot/client.py @@ -24,13 +24,12 @@ def configure_client(ctx, filename=None): yaml.safe_dump(config, stream=f) -def run_obnam_restore(ctx, filename=None, genid=None, dbname=None, todir=None): +def run_obnam_restore(ctx, filename=None, genid=None, todir=None): runcmd_run = globals()["runcmd_run"] genid = ctx["vars"][genid] runcmd_run( - ctx, - ["env", "RUST_LOG=obnam", "obnam", "restore", filename, genid, dbname, todir], + ctx, ["env", "RUST_LOG=obnam", "obnam", "restore", filename, genid, todir] ) diff --git a/subplot/client.yaml b/subplot/client.yaml index 80b69f2..63033c3 100644 --- a/subplot/client.yaml +++ b/subplot/client.yaml @@ -4,7 +4,7 @@ - given: "a client config based on {filename}" function: configure_client -- when: "I invoke obnam restore {filename} <{genid}> {dbname} {todir}" +- when: "I invoke obnam restore {filename} <{genid}> {todir}" function: run_obnam_restore - then: "backup generation is {varname}" -- cgit v1.2.1