mirror of
https://github.com/restic/restic.git
synced 2026-05-24 19:15:30 +00:00
Add decrypt, refactor
This commit is contained in:
@@ -11,6 +11,7 @@ prepare() {
|
||||
export BASE="$(mktemp --tmpdir --directory khepri-testsuite-XXXXXX)"
|
||||
export KHEPRI_REPOSITORY="${BASE}/khepri-backup"
|
||||
export DATADIR="${BASE}/fake-data"
|
||||
export KHEPRI_PASSWORD="foobar"
|
||||
debug "repository is at ${KHEPRI_REPOSITORY}"
|
||||
|
||||
mkdir -p "$DATADIR"
|
||||
|
||||
+2
-2
@@ -3,6 +3,6 @@ set -e
|
||||
prepare
|
||||
run khepri init
|
||||
run khepri backup "${BASE}/fake-data"
|
||||
run khepri restore "$(khepri list ref)" "${BASE}/fake-data-restore"
|
||||
dirdiff "${BASE}/fake-data" "${BASE}/fake-data-restore"
|
||||
run khepri restore "$(khepri snapshots)" "${BASE}/fake-data-restore"
|
||||
dirdiff "${BASE}/fake-data" "${BASE}/fake-data-restore/fake-data"
|
||||
cleanup
|
||||
|
||||
Reference in New Issue
Block a user