How to Install Amanda on Ubuntu Server


Prerequisites

Before installing Amanda, make sure your Ubuntu Server is up-to-date and you have root access.

Step 1: Add Amanda Repository

To install Amanda, you first need to add the Amanda repository to your system. Follow the below commands to add the Amanda repository to your system:

$ sudo apt install curl
$ curl https://raw.githubusercontent.com/zmanda/amanda/v3.5.1/utils/keys/zmanda-packaging-key-9.asc | sudo apt-key add -
$ echo "deb https://packages.zmanda.com/apt/ubuntu `lsb_release -cs` contrib" | sudo tee /etc/apt/sources.list.d/amanda.list

Step 2: Update APT

Once the repository has been added, the next step is to update APT packages:

sudo apt update

Step 3: Install Amanda

After APT has been updated, you can now install Amanda by running the following command:

sudo apt install amanda-server

Step 4: Initialize Amanda

Once Amanda has been installed, you need to initialize it. To do this, run the following command:

sudo /etc/amanda/scripts/amtapetype --reset-gnutar

Step 5: Configure Amanda

After initializing Amanda, you need to configure it.

  • To back up the home directory, run the following command:

    sudo amadmin -p
    

    This will open the Amanda administration console. In the console, run the following commands to configure Amanda:

    sethostname <hostname>
    setorg <organization name>
    settape <tape server name>
    setdisk /home user-tar
    

    Press Ctrl+D to exit the console.

  • To edit Amanda's configuration file directly, run the following command:

    sudo nano /etc/amanda/DailySet1/disklist
    

    In this file, add the directories you want Amanda to back up.

Step 6: Start Amanda

After configuring Amanda to your liking, you can now start it by running the following command:

sudo service amanda-server start

Conclusion

After following the above steps, you have successfully installed and configured Amanda on your Ubuntu Server.