2014-08-06 18:09:51 +00:00
|
|
|
set -e
|
|
|
|
|
2014-08-05 21:13:19 +00:00
|
|
|
prepare
|
2014-09-23 19:16:54 +00:00
|
|
|
run khepri init
|
2014-08-06 18:09:51 +00:00
|
|
|
run khepri backup "${BASE}/fake-data"
|
2014-11-24 21:17:49 +00:00
|
|
|
run khepri restore "$(basename "$KHEPRI_REPOSITORY"/snapshots/*)" "${BASE}/fake-data-restore"
|
2014-09-23 20:39:12 +00:00
|
|
|
dirdiff "${BASE}/fake-data" "${BASE}/fake-data-restore/fake-data"
|
2014-11-30 22:18:58 +00:00
|
|
|
|
|
|
|
SNAPSHOT=$(run khepri list snapshots)
|
|
|
|
run khepri backup "${BASE}/fake-data" $SNAPSHOT
|
|
|
|
run khepri restore "$(basename "$KHEPRI_REPOSITORY"/snapshots/*)" "${BASE}/fake-data-restore-incremental"
|
|
|
|
dirdiff "${BASE}/fake-data" "${BASE}/fake-data-restore-incremental/fake-data"
|
|
|
|
|
2014-11-30 21:43:34 +00:00
|
|
|
run khepri fsck all
|
2014-08-05 21:13:19 +00:00
|
|
|
cleanup
|