📝 restic is an awesome 📦 backup utility, this is an script that installs it quickly on different platforms.
Tested on: MacOS, Raspbian 32 bits (not tested on 64 bits but should work), CentOS, Ubuntu, Debian, Turris Omnia (OpenWRT).
- Checks if restic exists, if it exists, asks the user to update it.
- If restic is not installed, it goes to github, checks for the lastest release and tries to insrtall the corresponding version.
2.5 It triest to install it in
/usr/bin
but if it's not possible (MacOS ) tries to install it into/usr/local/bin
- If the instalations is successfully it will
begask to add an entry to/etc/crontab
to update restic every night.
rastic can be installed in 4 (that's right, four) ways: via git clone
, curl
, wget
or plain old copy paste.
bash -c "$(curl -L https://github.com/necenzurat/restic-installer/raw/master/restic-installer.sh)"
bash -c "$(wget -O - https://github.com/necenzurat/restic-installer/raw/master/restic-installer.sh)"
git clone https://github.com/necenzurat/restic-installer/
cd restic-installer
bash restic-installer.sh
install-rastic.sh, copy, ssh to server, paste to server, save file, then run file.
wget is required