Last active
February 21, 2019 08:38
-
-
Save jk/1aa5fbd11e83d54d7039f04d27917c8c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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