mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-12 08:45:38 +00:00
16 lines
285 B
Bash
16 lines
285 B
Bash
#!/usr/bin/env bash
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
TEMPDIR=$(mktemp -d)
|
|
|
|
function cleanup {
|
|
echo "Removing temp dir: $TEMPDIR"
|
|
rm -rf $TEMPDIR
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
echo "Temp dir: $TEMPDIR"
|
|
|
|
go run $BASEDIR/../../cmd/backrest --config-file=$TEMPDIR/config.json --data-dir=$TEMPDIR/data
|