Skip to content

Instantly share code, notes, and snippets.

@jk
Last active February 21, 2019 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jk/1aa5fbd11e83d54d7039f04d27917c8c to your computer and use it in GitHub Desktop.
Save jk/1aa5fbd11e83d54d7039f04d27917c8c to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# Official binaries: https://github.com/borgbackup/borg/releases
# ARM binaries: https://borg.bauerj.eu/
wget https://dl.bintray.com/borg-binary-builder/borg-binaries/borg-1.1.9-armv6 -O /usr/bin/borg
chmod a+x /usr/bin/borg
apt install -y python3-pip
# https://github.com/witten/borgmatic
pip3 install borgmatic
borg --version
echo "borgmatic" $(borgmatic --version)
chmod go-w $HOME
chmod 700 $HOME/.ssh
chmod 644 $HOME/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment