Linux
Installation via a script
Here’s a simple script to download the binary automatically. It works on mac OS X, FreeBSD and Linux:
curl -sfL https://raw.githubusercontent.com/creativeprojects/resticprofile/master/install.sh | shIt should copy resticprofile in a bin directory under your current directory.
If you need more control, you can save the shell script and run it manually:
curl -LO https://raw.githubusercontent.com/creativeprojects/resticprofile/master/install.sh
chmod +x install.sh
sudo ./install.sh -b /usr/local/binIt will install resticprofile in /usr/local/bin/
Installation with homebrew for Linux
There’s a Linux homebrew tap for resticprofile:
brew tap creativeprojects/tap
brew install resticprofileYou can also install restic at the same time with --with-restic flag:
brew install resticprofile --with-resticYou can test that resticprofile is properly installed (make sure you have restic installed or the test will fail):
brew test resticprofileUpgrading resticprofile installed via homebrew is very easy:
brew update
brew upgrade resticprofileThe resticprofile command self-update is not available when installed via homebrew.
Note on installing on Linux via Homebrew
When testing homebrew after spinning new Linux virtual machines, I noticed resticprofile wouldn’t install without a compiler installed on the machine. Even though resticprofile is distributed as a binary, it looks like homebrew needs access to a compiler.
Depending on your distribution you will need to install gcc:
sudo yum install gccsudo apt install gcc