Linux serverNETWORK ADMINISTRATIONS

Tutorial on Amanda Backup- Installation & Configuring on Centos 7

In this Video, Detailed Step by Step Instructions are being done on Installing & Configuring Amanda Backup on Centos 7 Server.

Website:

www.amanda.org

Steps to Install and Configure Amanda Backup Server & Client on Centos 7 Server are as follows:

Setting up Amanda Backup Server on Centos 7

A. Install and Configure Amanda Backup Server
B. Set Backup Parameters
C. Verify the Configuration and Verify the Backup
D. Install and Configure the Amanda Linux Clients
for Backup

Install EPEL repository
#yum install epel-release

Step 1: Installing Amanda on Centos 7

Setting up the hostname
#hostnamectl set-hostname amanda-server
#vi /etc/hosts
ip address amanda-server amanda-server.centos.com

Update the Centos OS fully
#yum update

Install Amanda Server
#yum install amanda*

Install Add on Packages
# yum install xinetd gnuplot perl-ExtUtils-Embed

Step 2. Starting Xinetd Service
#service xinetd restart
#service xinetd status

Verify the Amanda Installation
#amadmin –version

Step 3: Amanda Configurations Setup

Make some directories
#mkdir -p /amanda /etc/amanda
#chown amandabackup /amanda /etc/amand

Now switch to your ‘amandabackup’ user
and run the following commands.
# su amandabackup
# mkdir -p /amanda/vtapes/slot{1,2,3,4}
# mkdir -p /amanda/holding
# mkdir -p /amanda/state/{curinfo,log,index}
# mkdir -p /etc/amanda/MyConfig

Editing Amanda.conf file
#vi /etc/amanda/MyConfig/amanda.conf

Add the following lines as such

org “MyConfig”
infofile “/amanda/state/curinfo”
logdir “/amanda/state/log”
indexdir “/amanda/state/index”
dumpuser “amandabackup”

tpchanger “chg-disk:/amanda/vtapes”
labelstr “MyData[0-9][0-9]”
autolabel “MyData%%” EMPTY VOLUME_ERROR
tapecycle 4
dumpcycle 3 days
amrecover_changer “changer”

tapetype “TEST-TAPE”
define tapetype TEST-TAPE {
length 100 mbytes
filemark 4 kbytes
}

define dumptype simple-gnutar-local {
auth “local”
compress none
program “GNUTAR”
}

holdingdisk hd1 {
directory “/amanda/holding”
use 50 mbytes
chunksize 1 mbyte
}

Next, we will add a ‘disklist’ file with a single
disk list entry (DLE). The ‘disklist’ file
determines which disks will be backed up by Amanda.
The file contains includefile directive or
disklist entry. General usage was to
describe a DLE as a partition, or file system.

#vi /etc/amanda/MyConfig/disklist
Type the following

localhost /etc simple-gnutar-local

Save and close the file

Step 4: Check Amanda Configuration
# amcheck MyConfig

Step 5: Run Test Backup
#amdump MyConfig
It will take some seconds but no output would be there

#echo $?

You will get “0” as output”

#amreport MyConfig

Step 6: Amanda Backup Scheduling
#crontab -e

Type the following
0 17 * * * amandabackup /usr/sbin/amcheck -m MyConfig
15 2 * * * amandabackup /usr/sbin/amdump MyConfig

Exit from User
#exit

Step 7: Amanda Backup Client Installation
#yum install amanda-client xinetd

Amanda is Configured Properly…

source

centos 7

Leave a Reply

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