How to Install and Configure Tarsnap to safely backup your sites

First thing is to create an account and add funds (at least 5USD) to your account in the official site.

To use Tarsnap in Ubuntu, you’ll need deb packages and set up apt-get to trust the official signed packages:

wget https://pkg.tarsnap.com/tarsnap-deb-packaging-key.asc
gpg --show-key tarsnap-deb-packaging-key.asc

Verify the key’s authenticity by checking its fingerprint and key IDs.
Prepare the Key:

gpg --dearmor tarsnap-deb-packaging-key.asc
mv tarsnap-deb-packaging-key.asc.gpg tarsnap-archive-keyring.gpg

Add Key and Repository:

sudo cp tarsnap-archive-keyring.gpg /usr/share/keyrings/
echo "deb [signed-by=/usr/share/keyrings/tarsnap-archive-keyring.gpg] http://pkg.tarsnap.com/deb/$(lsb_release -s -c) ./" | sudo tee -a /etc/apt/sources.list.d/tarsnap.list

Update the apt database and install the tarsnap program:

sudo apt-get update
sudo apt-get install tarsnap

Now tie everything with:

sudo tarsnap-keygen \
    --keyfile /root/tarsnap.key \
    --user **@*****le.com \
    --machine mybox

You can edit the file /etc/tarsnap.conf according to your needs, but in most cases there’s no need to do it.

Tarsnap is mean to be mostly automated and this is the case here at Raybeam. If you need to use it in other way, follow this guide: https://www.tarsnap.com/simple-usage.html

Was this page helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *