Skip to content

Instantly share code, notes, and snippets.

@miracle2k
Forked from mdigital/tarsnap-install.sh
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save miracle2k/9124615 to your computer and use it in GitHub Desktop.

Select an option

Save miracle2k/9124615 to your computer and use it in GitHub Desktop.

Revisions

  1. miracle2k revised this gist Feb 20, 2014. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions tarsnap-install.sh
    Original file line number Diff line number Diff line change
    @@ -19,13 +19,16 @@
    # ./tarsnap-install.sh robin@mdigital.co.nz prod2

    apt-get install -y curl libssl-dev zlib1g-dev e2fslibs-dev build-essential
    mkdir ~/src
    cd ~/src
    curl https://www.tarsnap.com/download/tarsnap-autoconf-1.0.32.tgz | tar -zxvf -
    cd tarsnap-autoconf-1.0.32
    mkdir /tmp/tarsnap-src
    cd /tmp/tarsnap-src
    curl https://www.tarsnap.com/download/tarsnap-autoconf-1.0.35.tgz | tar -zxvf -
    cd tarsnap-autoconf-1.0.35
    ./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

    pip install

    echo "Don't forget to take a copy of /root/tarsnap.key and store it somewhere really safe!"
  2. @mdigital mdigital created this gist Apr 18, 2012.
    31 changes: 31 additions & 0 deletions tarsnap-install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    #!/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 robin@mdigital.co.nz prod2

    apt-get install -y curl libssl-dev zlib1g-dev e2fslibs-dev build-essential
    mkdir ~/src
    cd ~/src
    curl https://www.tarsnap.com/download/tarsnap-autoconf-1.0.32.tgz | tar -zxvf -
    cd tarsnap-autoconf-1.0.32
    ./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!"