Skip to content

Instantly share code, notes, and snippets.

@jk
Last active Feb 21, 2019
Embed
What would you like to do?
#!/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