Before installing Amanda, make sure your Ubuntu Server is up-to-date and you have root access.
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
Once the repository has been added, the next step is to update APT packages:
sudo apt update
After APT has been updated, you can now install Amanda by running the following command:
sudo apt install amanda-server
Once Amanda has been installed, you need to initialize it. To do this, run the following command:
sudo /etc/amanda/scripts/amtapetype --reset-gnutar
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.
After configuring Amanda to your liking, you can now start it by running the following command:
sudo service amanda-server start
After following the above steps, you have successfully installed and configured Amanda on your Ubuntu Server.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!