diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-11-22 15:06:07 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-11-22 16:58:52 +0200 |
commit | 68e88efced88f05664ae9050f6888453cfe9cd30 (patch) | |
tree | 0484972dd085963e157de00f878d5f0e6d98a52a /subplot | |
parent | 0158bd9c06acae4245897e5e04681b4a1637bee9 (diff) | |
download | obnam2-68e88efced88f05664ae9050f6888453cfe9cd30.tar.gz |
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.
Diffstat (limited to 'subplot')
-rw-r--r-- | subplot/client.py | 5 | ||||
-rw-r--r-- | subplot/client.yaml | 2 |
2 files changed, 3 insertions, 4 deletions
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}" |