Amanda is an open-source backup and recovery software that allows you to create and manage backup strategies for your Linux and Unix machines. In this tutorial, we will walk you through the steps to install Amanda on Fedora Server Latest.
Before installing Amanda, you need to ensure that your system is up-to-date. To update your Fedora Server, run the following command:
sudo dnf update -y
Run the following command to install the Amanda packages:
sudo dnf install amanda-server amanda-client -y
Once the packages are installed, you need to configure Amanda. The configuration files are located in the /etc/amanda
directory. The main configuration file is the amanda.conf
file.
Open the amanda.conf
file with a text editor:
sudo nano /etc/amanda/amanda.conf
In this file, you need to modify the following parameters:
For example, you can modify these parameters as follows:
org "My Organization"
mailto "backup-admin@example.com"
tpchanger "chg-disk"
tapedev "file:/backup/mydisk"
dumpcycle 1 week
runspercycle 5
tapecycle 5
Amanda uses backup sets to define what files need to be backed up. You can create backup sets by adding them to the amanda.conf
file.
For example, you can create a backup set for the /home
directory as follows:
define home-backup {
comment "Backup for home directory"
plugin "tar"
program "GNUTAR"
maxdumps 5
holdingdisk no
index yes
priority medium
taperalgo first
exclude list "/etc/amanda/home-exclude.list"
include "/home"
}
When creating backup sets, you can exclude certain files or directories from the backup. You can do this by creating an exclude file.
Create an exclude file for the /home
directory as follows:
sudo nano /etc/amanda/home-exclude.list
Add the following lines to the file to exclude certain directories:
/home/*/.cache
/home/*/.mozilla
/home/*/.gvfs
Save and close the file.
Now that Amanda is configured, you can start the Amanda services:
sudo systemctl enable amanda # Enable the Amanda service at boot time
sudo systemctl start amanda # Start the Amanda service
To test your backups, run the following command:
sudo amcheck DailySet # Replace "DailySet" with the name of your backup set
This command will check for errors in your backup configuration and perform a trial backup.
Congratulations! You have now installed Amanda on your Fedora Server Latest, configured it, and tested your backups. You can now use Amanda to create and manage backup strategies for your Linux and Unix machines.
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!