Blog

The Quick Setup Guide – Amanda Open-Source Backup

Amanda- an open-source backup and recovery solution that stores all your important, encrypted and compressed backups on local storage and remote file servers. Amanda is designed to back up a large amount of data on servers and workstations running on multiple versions of Linux/ Unix and Windows.
Review this user guide to install Amanda backup server and Amanda backup client.

1. STEPS TO INSTALL AMANDA BACKUP SERVER ON CENTOS 7

1.1 INSTALL AMANDA BACKUP SERVER

  1. Run through Dependencies for Amanda backup server and ensure all the dependencies are installed before proceeding.
  2. Login/ssh into the server as user with admin privileges
  3. To download the install package using ‘wget https://www.zmanda.com/downloads/community/Amanda/3.5.1/Redhat_Enterprise_7.0/amanda-backup_server-3.5.1-1.rhel7.x86_64.rpm’
  4. Run the install package by using the command ‘rpm -ivh amanda-backup_server-3.5.1-1.rhel7.x86_64.rpm’
  5. Reload the xinetd service by running ‘service xinetd reload’
  6. Logout of the server
NOTE: Run through the additional checks for Amanda backup server to make sure the setup is completed successfully.

2 STEPS TO INSTALL AMANDA BACKUP CLIENT ON CENTOS 7

2.1 INSTALL AMANDA BACKUP CLIENT

  1. Run through Dependencies for Amanda backup client and ensure all the dependencies are installed before proceeding.
  2. Login/ssh into the client as user with admin privileges
  3. To download the install package using ‘wget https://www.zmanda.com/downloads/community/Amanda/3.5.1/Redhat_Enterprise_7.0/amanda-backup_client-3.5.1-1.rhel7.x86_64.rpm’
  4. Run the install package by using the command ‘rpm -ivh amanda-backup_client-3.5.1-1.rhel7.x86_64.rpm’
  5. Run command ‘vi /etc/xinetd.d/amandaclient’ and paste the following contents:
    # default: on
    #
    # description: Amanda services for Amanda server and client.
    #
    service amanda
    {
    disable         = no
    socket_type     = stream
    protocol        = tcp
    wait            = no
    user            = amandabackup
    group           = disk
    groups          = yes
    server          = /usr/lib/amanda/amandad
    server_args     = -auth=bsdtcp amdump amindexd amidxtaped
    }
  6. Reload the xinetd service by running ‘service xinetd reload’
  7. Logout of the client

2.2 UNLOCK THE AMANDABACKUP USER

  1. Login/ssh into the client as user with admin privileges
  2. Unlock the amandabackup user using ‘passwd -u amandabackup’
  3. Assign a password for the amanddabackup user using ‘passwd amandabackup’
  4. Logout of the client

2.3 CONFIGURE AMANDA BACKUP CLIENT

  1. Login /ssh into the server as amandabackup user
  2. Add the location of the server using the command ‘echo IP_ADDRESS_OF_SERVER amandabackup amdump >> /var/lib/amanda/.amandahosts’
  3. Specify appropriate permissions for the file using ‘chmod 700 /var/lib/amanda/.amandahosts’

3. APPENDIX

3.1 DEPENDENCIES FOR AMANDA BACKUP SERVER

  1. Login/ssh into the server as user with admin privileges
  2. Update the packages using “yum update” (optional). If it gives error as “Cannot find a valid baseurl for repo” then run the following command “dhclient”. This should re-generate a file “/etc/resolv.conf”.
  3. Install wget to fetch the install packages using ‘yum install wget’
  4. Install the required dependencies using ‘yum install glib* xinetd perl-Data-Dumper perl-Encode-Locale perl-JSON perl-URI-Escape perl-XML-Simple’
  5. Logout of the server

3.2 ADDITIONAL CHECKS FOR AMANDA BACKUP SERVER

  •  After installing amanda-backup_server rpm, if “service xinetd reload” is giving any error, then do the following:

                     a.   Uninstall “amanda-backup_server” using command:

                          “rpm -e amanda-backup_server-3.5.1-1.rhel7.x86_64.rpm”

                     b.   Then uninstall xinetd package using command:

                          “rpm -e <xinetd package name>”.

                     c.     To get the exact name of xinetd package use the command:

                          “rpm -qa | grep xinetd”

                     d.    Install xinetd package using command:

                          “yum install xinetd”d. 

                          Start xinetd service using command:

                           “service xinetd start”

                     e.    Install Amanda server package using command:

                          “rpm –ivh  amanda-backup_server-3.5.1-1.rhel7.x86_64.rpm”

                     f.    Reload xinetd service using command:

                         “service xinetd reload”

  • Check the hostname of the server system is set correctly.
    Use “hostname” command to set
  • Check the permission of file “/etc/amanda/amanda-security.conf”.
    The permission should be “644”. Use the following command to change   the permission:
    “chmod 644 /etc/amanda/amanda-security.conf”

 3.3 DEPENDENCIES FOR AMANDA BACKUP CLIENT

  1. Login/ssh into the server as user with admin privileges
  2. Update the packages using ‘yum update’ (optional)
  3. Install wget to fetch the install packages using ‘yum install wget’
  4. Install the required dependencies using ‘yum install glib* xinetd perl-Data-Dumper perl-Encode-Locale perl-JSON perl-URI-  Escape perl-XML-Simple’
  5. Install the perl using ‘yum install perl’

CONCLUSION:

Amanda is designed to be accessible and easy-to-use even for the novice user.
A one-stop solution that solves all the data protection challenges.
Get Started! Don’t Wait-Install Today!

Leave a Reply