sh Debian / Ubuntu Tarsnap安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Debian / Ubuntu Tarsnap安装相关的知识,希望对你有一定的参考价值。

#!/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!"

以上是关于sh Debian / Ubuntu Tarsnap安装的主要内容,如果未能解决你的问题,请参考以下文章

sh ubuntu debian备份恢复包

sh Debian / Ubuntu Tarsnap安装

sh 如何在Debian / Ubuntu上安装PhantomJS

sh 使用checkinstall为Debian / Ubuntu创建rkt包

sh 在Debian / Ubuntu Linux上安装Azure CLI

sh 适用于Linux Debian / Ubuntu的Drupal安装脚本