Install Amanda Server on a RedHat/CentOS/Fedora host
Install Amanda Server Using Yum
This operation is pretty easy with YUM and should be done on the server only.
or
- Install the pre-requisites
[root@server ~]# yum install xinetd tar dump mtx mt-st* sharutils gnupg*
- xinetd : the eXtended InterNET Daemon is a secure replacement for inetd. Amanda is working as a service (amandad).
- tar : tar command is short for "tape archiving". It allows to store onto magnetic tape or on files. Amanda can be set up for backing up using tar.
- dump : dump command is another way of backing up the files. Again, Amanda can be set up for backing up using dump.
- mtx : The MTX program controls the robotic mechanism in most autoloaders and tape libraries.
- mt-st : The mt-st package contains the mt and st tape drive management programs. Mt (for magnetic tape drives) and st (for SCSI tape devices) can control rewinding, ejecting, skipping files and blocks and more.
- sharutils : sharutils is a set of tools for encoding and decoding packages of files.
- gnupg : GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and creating digital signatures. Amanda uses gpg for encrypting the backups. This is very useful for raising the level of security of your backups especially when they are vaulted outside of your company.
- Install amanda and amanda-server
[root@server ~]# yum install amanda amanda-server
- In most cases, the server who hosts the amanda server will be saved as well. In that case, you need to install amanda-client.
[root@server ~]# yum install amanda-client
- Configure amanda in xinetd
- the package amanda provides a file called /etc/xinetd.d/amanda. This service is disable by default. Edit the file /etc/xinetd.d/amanda and replace the line "disable = yes" by "disable = no". The file /etc/xinetd.d/amanda should look like this :
# default: off
# description: The client for the Amanda backup system.\
# This must be on for systems being backed up\
# by Amanda.
service amanda
{
socket_type = dgram
protocol = udp
wait = yes
user = amandabackup
group = disk
server = /usr/sbin/amandad
# Configure server_args for the authentication type you will be using,
# and the services you wish to allow the amanda server and/or recovery
# clients to use.
#
# Change the -auth= entry to reflect the authentication type you use.
# Add amindexd to allow recovery clients to access the index database.
# Add amidxtaped to allow recovery clients to access the tape device.
server_args = -auth=bsd amdump
disable = no
}
# description: The client for the Amanda backup system.\
# This must be on for systems being backed up\
# by Amanda.
service amanda
{
socket_type = dgram
protocol = udp
wait = yes
user = amandabackup
group = disk
server = /usr/sbin/amandad
# Configure server_args for the authentication type you will be using,
# and the services you wish to allow the amanda server and/or recovery
# clients to use.
#
# Change the -auth= entry to reflect the authentication type you use.
# Add amindexd to allow recovery clients to access the index database.
# Add amidxtaped to allow recovery clients to access the tape device.
server_args = -auth=bsd amdump
disable = no
}
- Restart the service xinetd
[root@server ~]# /etc/init.d/xinetd restart
or
[root@server ~]# service xinetd restart
- Congratulations! You installed Amanda!