summaryrefslogtreecommitdiff
path: root/subplot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-11-22 15:06:07 +0200
committerLars Wirzenius <liw@liw.fi>2020-11-22 16:58:52 +0200
commit68e88efced88f05664ae9050f6888453cfe9cd30 (patch)
tree0484972dd085963e157de00f878d5f0e6d98a52a /subplot
parent0158bd9c06acae4245897e5e04681b4a1637bee9 (diff)
downloadobnam2-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.py5
-rw-r--r--subplot/client.yaml2
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}"