Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
# Installs tarsnap client on Debian and Ubuntu
#
# You'll need to setup an account at
# http://www.tarsnap.com
# and load it with some funds
#
# Make sure you run this as root
#
# Once installed you can start backing up with something useful like
#
# tarsnap -c -f mybackup /var/www
#
# Usage:
# ./tarsnap-install.sh <email> <server name>
#
# eg
# ./tarsnap-install.sh bob@foo.com server1
apt-get install -y curl libssl-dev zlib1g-dev e2fslibs-dev build-essential
mkdir ~/src
cd ~/src
# *******************************************
# CHECK on tarsnap.com for the latest version
# *******************************************
curl https://www.tarsnap.com/download/tarsnap-autoconf-XXXX.tgz | tar -zxvf -
cd tarsnap-autoconf-XXXX
./configure
make all install clean
tarsnap-keygen --keyfile /root/tarsnap.key --user $1 --machine $2
mkdir /usr/local/tarsnap-cache
cp /usr/local/etc/tarsnap.conf.sample /usr/local/etc/tarsnap.conf
echo "Don't forget to take a copy of /root/tarsnap.key and store it somewhere really safe!"
@xxdesmus

This comment has been minimized.

Copy link
Owner Author

@xxdesmus xxdesmus commented Jul 25, 2014

updating to mention you should get the most recent build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment