Source
Installation from source
You can download the source code and compile it, it’s actually very easy! all you need to have on your machine is:
git(withgit-bashon Windows)- go compiler
GNU Makewhich is installed by default on many unix boxes. On debian based distributions (Ubuntu included) the package is calledbuild-essential.
To compile from sources:
git clone https://github.com/creativeprojects/resticprofile.git
cd resticprofile
make buildYour compiled binary (resticprofile or resticprofile.exe) is available in the current folder.
To install the binary in your user path:
make installTo build all common platforms (build-mac, build-linux, build-pi & build-windows):
make build-allAlternatively, a go-only build (without GNU Make) is accomplished with:
git clone https://github.com/creativeprojects/resticprofile.git
cd resticprofile
go mod download
go generate ./...
go build -o resticprofile . Note
The build step go generate ./... installs additional binaries github.com/zyedidia/eget and github.com/vektra/mockery into $GOPATH/bin.
See generate.go, Makefile and go.mod for details on additional dependencies.