Last active
June 1, 2019 16:55
-
-
Save DeepInThought/6177833534d9d6ac5d12184cc934ef1b to your computer and use it in GitHub Desktop.
Restic installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p ${HOME}/.scripts | |
sudo useradd -m restic | |
sudo mkdir -p ~restic/bin | ls -lat --color=always ~restic/bin || exit 1 | |
curl -L https://github.com/restic/restic/releases/download/v0.9.3/restic_0.9.3_linux_amd64.bz2 | bunzip2 > ~restic/bin/restic | |
sudo chown root:restic ~restic/bin/restic | |
sudo chmod 750 ~restic/bin/restic | |
setcap cap_dac_read_search=+ep ~restic/bin/restic | |
#sudo -u restic /home/restic/bin/restic --exclude={/dev,/media,/mnt,/proc,/run,/sys,/tmp,/var/tmp} -r /tmp | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment