diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-03-05 22:24:51 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-03-05 22:24:51 +0000 |
commit | f1ce9640f043f5b91d1965cdbb698862da38de78 (patch) | |
tree | b66da96b2de54616837ef79e852b88b4de759ce1 /verification-test | |
parent | 5bdf1ee2512e1334d2489360a65cbab48979b64b (diff) | |
download | obnam-f1ce9640f043f5b91d1965cdbb698862da38de78.tar.gz |
Allow access to backup repository via sftp
Separate the URL for obnam's access to the repository,
and the directory pathname for the test scripts' access.
Diffstat (limited to 'verification-test')
-rwxr-xr-x | verification-test | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/verification-test b/verification-test index 208de90a..d645e9f5 100755 --- a/verification-test +++ b/verification-test @@ -65,10 +65,9 @@ backup() local client=$(awk '/client-name/ { print $3 }' "$conf") local genids=$(mktemp) - ./obnam --no-default-configs --config="$conf" -r "$repo" backup "$dir" + ./obnam --no-default-configs --config="$conf" backup - while ! ./obnam --no-default-configs --config="$conf" -r "$repo" genids \ - > "$genids" + while ! ./obnam --no-default-configs --config="$conf" genids > "$genids" do : done @@ -96,12 +95,12 @@ verify() local tempdir="$(mktemp -d)" local client=$(awk '/client-name/ { print $3 }' "$conf") - ./obnam --no-default-configs --config="$conf" -r "$repo" genids \ + ./obnam --no-default-configs --config="$conf" genids \ > "$tempdir"/gens || exit 42 while read gen do rm -rf "$tempdir/$gen" - ./obnam --no-default-configs --config="$conf" -r "$repo" \ + ./obnam --no-default-configs --config="$conf" \ restore --to="$tempdir/$gen" --generation="$gen" || \ exit 42 summain "$tempdir/$gen/$dir" -r --output="$tempdir/summain.$gen" @@ -114,12 +113,11 @@ verify() rm -rf "$tempdir" } -[ "$#" = 3 ] || [ "$#" = 4 ] || die "Bad usage, read source!" +[ "$#" = 4 ] || die "Bad usage, read source!" -case "$#" in - 3) repo="$2"; root="$3"; conf="/dev/null" ;; - 4) repo="$2"; root="$3"; conf="$4" ;; -esac +repo="$2" +root="$3" +conf="$4" case "$1" in backup) |