diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-01-25 21:46:17 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-01-25 21:46:17 +0000 |
commit | ca69a5ced17d7fb7126f4ea7b82ee61d3c7de924 (patch) | |
tree | 7b92189833bb1454431b3831ea53cf3cdb52916d /yarns/9000-implements.yarn | |
parent | 50aa0bdf8c7e13a7fd76db4c2236c14ba7c4b861 (diff) | |
download | obnam-ca69a5ced17d7fb7126f4ea7b82ee61d3c7de924.tar.gz |
Convert restores-single-file to a yarn
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r-- | yarns/9000-implements.yarn | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn index ccead253..65a6f2f3 100644 --- a/yarns/9000-implements.yarn +++ b/yarns/9000-implements.yarn @@ -216,6 +216,14 @@ to fail. attempt run_obnam "$MATCH_1" restore -r "$DATADIR/$MATCH_2" \ --to "$DATADIR/$MATCH_3" +We may need to restore only a single file. + + IMPLEMENTS WHEN user (\S+) restores file (\S+) to (\S+) from their latest generation in repository (\S+) + run_obnam "$MATCH_1" ls -r "$DATADIR/$MATCH_4" + run_obnam "$MATCH_1" restore -r "$DATADIR/$MATCH_4" \ + --to "$DATADIR/$MATCH_3" "$DATADIR/$MATCH_2" + + Removing (forgetting) generations --------------------------------- |