The purpose of this chapter is to give a brief technical overview of Amanda. We want you to understand how Amanda works, how it is different from other backup software, and how it can help you solve your data protection requirements. On the other hand, we don’t want to overwhelm you with technical details that could be very specific to a particular setup or backup policy. Throughout this section we provide links to the websites where you can find up-to-date …
#!/bin/sh
# must run as root
# assumes bind is installed on a linux box
# this script has very few sanity checks
# files modified are :
# /etc/named.conf $PZPATH$DOMAIN
# see http://www.ripserve.com/gpl/ for latest version
# the following variables need to be set
PROVIDER=”pearlin.info”
PZPATH=”/etc/named/pz/”
NS1=”darling”
NS2=”blofeld”
MX=$NS2
IP=”62.25.97.28″
TXT=”Ripserve Ltd. London”
if [ $# -lt 1 ]; then
echo “Usage: $0 domain1 domian2 …”
exit 1
fi
USER=$(id | grep root | wc -l)
if [ $USER -eq 0 ]
then
echo “Run this as root to add domains to DNS”
exit 1
fi
mainfunction () {
#create pz file
cat <<EOF > …
#!/bin/sh
# must run as root
# only tested on linux using /etc/passwd
# files modified are :
# /etc/passwd , /etc/shadow & /etc/group
# /etc/passwd.md5 for integrity checking
# /home/$USERNAME , and quota file (if it exists)
# /etc/postfix/virtual , $ACCESS & db’s if they exist
# $SQUIRREL/$USERNAME.* if they exist
# the following variables are user-modifiable
#default virtual host
VHOST=”ripserve.com”
#where to mail new account info (to sysadmin)
MAIL=”root@$VHOST”
#path to squirrelmail data, & postfix access file, both optional
SQUIRREL=”/var/lib/squirrelmail/prefs”
ACCESS=”/etc/postfix/sender_access”
PROVIDER=”$VHOST”
QUOTA=”500000 520000 500000 6000000″
function newusermail()
{
cat <<EOF | mail -s “Welcome to $PROVIDER” $USERNAME@$VHOST
$REALNAME, welcome …
#!/bin/sh
# Released under the GPL
# Assumes you’re running linux, bsd will generate less info
# BUGS: bsd produces weird df output
# The following variable is who to email the output to
MAIL=root
HOST=$(hostname)
DATE=$(date +%d/%m/%Y)
USER=$(id | grep root | wc -l)
if [ $USER -eq 0 ]
then
echo “Unless you’re root you won’t get the full reports”
fi
{
echo -e “\n Uptime & load info\n”; w
echo -e “\n\n Disk usage\n”; df -h
df -l | grep dev | awk ‘{t += $2; u += $3} END { printf(“%d MB, …