mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-13 01:05:48 +00:00
16 lines
285 B
Bash
Executable File
16 lines
285 B
Bash
Executable File
#!/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
|