Tarsnap backups on Amazon S3, Ubuntu Linux

Tarsnap is a backup utility good for Unix systems administrators.

See http://tarsnap.com

Tarsnap has detailed installation instructions here.

This page has instructions tailored to Ubuntu Linux.

Download tarsnap files

The application: tarsnap-autoconf-1.0.25.tgz

The security signature: tarsnap-sigs-1.0.25.asc

Verify tarsnap files

Run this:
  $ sha256sum tarsnap-autoconf-1.0.25.tgz
Output should have a line like:
  SHA256 (tarsnap-autoconf-1.0.25.tgz)
  = 086787dd9d9985590c17848454e7b4e31327c3a70065c5f2611b1e0a1fddb087
Run this:
  $ gpg --decrypt tarsnap-sigs-1.0.25.asc
Output should have a line like:
  SHA256 (tarsnap-autoconf-1.0.25.tgz) 
  = 086787dd9d9985590c17848454e7b4e31327c3a70065c5f2611b1e0a1fddb087
Compare the SHA256 results. They must match.

Install tarsnap

To install tarnsnap, use these commands as root:
  $ apt-get install e2fslibs-dev
  $ tar -zxvf tarsnap-autoconf-1.0.25.tgz
  $ cd tarsnap-autoconf-1.0.25
  $ ./configure
  $ make all install clean
  $ cd /usr/local/etc/
  $ cp tarsnap.conf.sample tarsnap.conf

Now read getting started with tarsnap.

Use tarsnap

To use tarsnap to create a backup archive of a directory:
  $ tarsnap -c -f mybackup /home/foo/bar/
Output will look something like this:
                   Total size  Compressed size
  All archives     22947496    21348511
    (unique data)  22777512    21190548
  This archive     22947496    21348511
  New data         22777512    21190548
To show a list of your archives:
  $ tarsnap --list-archives



What's Next?

blog comments powered by Disqus